Thursday, December 23, 2010

How Much Does Ceragem Bed Cost

Recover Grub Linux ext3, ext4, Another Way.

Using a Live distribution

It uses a LiveCD distribution mode to install GRUB again. We will use the LiveCD of Ubuntu 10.04 or higher (must be version Live or Desktop), but may be any other distribution GRUB2 use as your boot loader and not LILO or Grub 1.

first thing to do is start the live-cd and open a terminal. Then write the following to see the partitions of different hard drives:

$ sudo fdisk-l

Then we see which is the partition where Ubuntu and we got on / mnt (in most cases, this partition will sda1, the example I'll do with that partition but look what your partition with the fdisk command):

$ sudo mount / dev/sda1 / mnt

Now mount the other devices:

$ sudo mount - bind / dev / mnt / dev
$ sudo mount - bind / proc / mnt / proc


and running in a chroot command to log in as root file system from our old Ubuntu:

$ sudo chroot / mnt

Finally load the Grub in the MBR by running the following command:

# grub-install - Recheck / dev / sda

(sda it should be replaced by the hard disk use to boot operating systems is almost always sda. Ojo! not to the number of partition, only sda).

Reboot and when you reboot ubuntu (not the LiveCD), we can adjust the GRUB menu manually to display the boot menu the new operating system we deleted the MBR, or let it automatically make the the following command:

$ sudo update-grub2

If the command does not work, you may need to install the package grub2:

$ sudo aptitude install grub2

If you have a / boot on separate partition, after mounting the file system / Mnt (with the command sudo mount / dev/sda1 / mnt), you must also install the boot partition with the following command:

sudo mount / dev/sda2 / mnt / boot

0 comments:

Post a Comment