Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    15

    Question 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.

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,393
    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/

  3. #3
    Linux Guru Rubberman's Avatar
    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!

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Boot up from Ubuntu LiveCD, open Terminal and execute this
    Code:
    sudo mount /dev/sdXY /mnt
    sudo sudo grub-install --root-directory=/mnt /dev/sdX
    sudo umount /mnt
    Replace X with Hard disk name and Y with partition number assigned to root partition.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...