[The Computer Kid] How To Fix Grub From a Live CD / USB

0 views
Skip to first unread message

Conrad Sykes

unread,
Jun 19, 2013, 6:02:27 PM6/19/13
to the-comp...@googlegroups.com
Grub can break for a variety of reasons and since it typically prevents you from starting your system, fixing it requires the use of Live CD.  Once you have a live Linux CD or USB follow the instructions below to reinstall Grub on your system.

Note: Before starting make sure that the live CD/USB you are using is the same sort of architecture as the system you are trying to rescue. In other words if the system is 32 bit then use a 32 bit live cd or if it's 64 bit then use a 64 bit live cd or else when you try to chroot you will get a “Exec format error”.

Sudo mount -t ext4 /dev/sdaX /mnt
You can replace "ext4" with the appropriate file system type

sudo mount -t proc none /mnt/proc
sudo mount -o bind /dev /mnt/dev
Allows the chrooted system to find your system partitions

sudo chroot /mnt
chroots into the system we have mounted and bound

sudo grub-install /dev/sda
installs grub to the hard drive

Now restart your computer. Remove the live CD/USB, and grub should be fixed.

--
Posted By Conrad Sykes to The Computer Kid at 6/19/2013 03:02:00 PM
Reply all
Reply to author
Forward
0 new messages