Results 1 to 4 of 4
I have been trying to repair the GRUB 2 Bootloader by using the LIVE Ubuntu Ultimate 2.7 DVD.
Basically I've been unable to boot Linux Ubuntu Ultimate 2.7 ( due ...
- 09-24-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 15
Is it possible to REPAIR GRUB 2 using Live CD
I have been trying to repair the GRUB 2 Bootloader by using the LIVE Ubuntu Ultimate 2.7 DVD.
Basically I've been unable to boot Linux Ubuntu Ultimate 2.7 ( due to a multi boot set up) & read that it is possible to repair the boot loader by re installing it from the live dvd.
I've already tried to load up the DVD & run the Terminal program - on the command line I type '# grub-restore' & the reply is GRUB not loaded??
I've tried other command lines that are on various other posts but non of them work.
Or are there certain Linux operating system discs that have the function to repair the boot loader from the live dvd.
Any help on the matter would be welcome.
- 09-24-2010 #2
The general process is to:
- Boot up off the rescue CD, get yourself dropped into a text-mode command line shell
- Create a temporary directory to act as your root, something like 'mkdir /mnt/mysystem'.
- Mount your root filesystem and your /boot partition into this directory, i.e. 'mount <root-filesystem-partition> /mnt/mysystem', then 'mount <boot-filesystem-partition> /mnt/mysystem/boot'
- use chroot to switch to your mounted filesystem, 'chroot /mnt/mysystem'.
- re-install your grub with 'grub-install' or 'grub-restore' or whatever your system uses
- Reboot and test out each of your boot options...
I don't use Ubuntu very often, but my Fedora rescue disk automatically tries to mount my real system to a temporary location when it boots from the rescue disk all ready for a 'chroot' in, which simplifies this process somewhat.
Good luck.Linux user #126863 - see http://linuxcounter.net/
- 09-24-2010 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
My wife had a similar problem with her multi-boot netbook. It turns out the problem was two-fold. Both the grub.cfg and /etc/fstab files were using /dev device IDs for the boot partitions instead of the UUID's or partition labels. Once she fixed that (specifying the partition UUID for system partitions) in both /boot/grub/grub.cfg and /etc/fstab, the system booted properly. Unfortunately, it took her a month to finally figure that out.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 09-25-2010 #4
Boot up from Ubuntu LiveCD, open Terminal and execute this
Replace X with Hard disk name and Y with partition number assigned to root partition.Code:sudo mount /dev/sdXY /mnt sudo sudo grub-install --root-directory=/mnt /dev/sdX sudo umount /mnt
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote