W hen you configure a computer to dual boot between Linux and Windows, we must remember that Windows is installed first, because, while Linux from what democratic system recognizes the presence of another OS, but it beats Windows and overwrites the 'MBR, making it impossible to choose dell'alltro os. If this happens, everything can be solved using a live CD. Once booted from the live CD, we mount the partition on which you installed Linux. If you do not know what it is, use:

fdisk-l

then montiamola with

mount-t ext3 / dev/hda1 / mnt

clearly replace hda1 with its corresponding partition. If you had a separate partition for / boot, you must also install the

mkdir / mnt / boot mount-t ext3 / dev/hda2 / mnt / boot

even the file system mount / dev and proc

mount-bind / dev / / mnt / dev mount-t proc proc / mnt / proc

now we chrooted

chroot / mnt

then we go into Grub and we give the following commands

grub root (hd0, 1) setup (hd0) quit

where hd0, 1 and hd0 refers to the first partition of first disk. To avoid this procedure may make up the 'MBR, follow these steps. Another very useful tool, is to use Super Grub Disk, and as a downloadable floppy image, both as cd-rom.

Post similar (or almost):

  1. Super Grub Disk on a USB stick Super Grub Disk is very useful as we know, is one ...
  2. Mount Images (ISO, BIN, CUE, NRG, MDF, IMG / CCD, DAA) in Debian Having the ability to mount an image file without ...
  3. Super Grub Disk Italian A few days ago I "met" adrian15, dad ...

Tags:

5 Responses to "Restore Grub from a live CD"

  1. adrian15 writes

    If you want to translate into Italian SGD just contact me on the mailing list or at SGD adrian15sgd THEROUNDTHING gmail DOT com.

    Thank you.

    adrian15

  2. U.S. Debian IceWeasel IceWeasel 2.0.0.7 with Debian Debian GNU / Linux Debian GNU / Linux
  3. Edmond writes

    With much pleasure. I used SGD, and it is good.

  4. U.S. Debian IceWeasel IceWeasel 2.0.0.6 with Debian Debian GNU / Linux Debian GNU / Linux
  5. EDMOND'S WEBLOG »Super Grub Disk on usb pen writes:

    [...] Always has on hand, because sooner or later it happens to have to use, thus avoiding the manual procedure. E 'available as an ISO image, floppy and USB. It can be very handy to keep it in a [...]

  6. U.S. WordPress WordPress 2.3.2
  7. Andrea writes

    Help me ... not the most views I installed Ubuntu on external HD and now it says error 21 I never: andreaschett@hotmail.com

  8. U.S. Firefox Mozilla Firefox 3.0.3 with Ubuntu Linux Ubuntu Linux
  9. Edmond writes

    Sorry but you tried to use Super Grub Disk? I think not ... otherwise you would have solved ;)

  10. U.S. Debian IceWeasel IceWeasel 3.0.5 with Debian Debian GNU / Linux Debian GNU / Linux

Write a Comment

Optimized for Mozilla Firefox