Wednesday, December 9, 2009

Homberos De Paco Theme Song

[Tutorial] Recover Grub boot or 2 in Ubuntu 9.10

Recover Grub boot or 2 in Ubuntu 9.10 Lost

boot or grub in ubuntu 9.10

Note: Ubuntu 9.10 comes with 2 installed GRUB by default, whenever you have installed from scratch.
for those who have upgraded from Ubuntu 9.04 to 9.10 will not be changed and will remain the same Grub we had and all the Grub theme will work in Ubuntu 9.04 as


Grub2 is important to note that does not have its own , as before (Grub), in / boot / grub / menu.lst, but found in another file: / etc / grub.d and / etc / default / grub
So, to change the settings (such as timeout and boot options), you must edit the file with the following command:
sudo gedit / etc / default / grub

2
Recover GRUB in Ubuntu 9.10 (installed from scratch)

can ever happen to lose the boot or grub of our beloved Ubuntu, this can happen for various reasons, but one of The most common is usually that:
running Windows on one partition and ubuntu on another.
windows suddenly fails and we have to format it to install it again (what a surprise).
Or have we realized that we do not need windows for anything (Congratulations) and delete it from our PC.



Well, to format the Windows partition is usually lost Ubuntu boot.
No problem, we take our installation disk Ubuntu 9.10 (live cd) and we put it.
Start the Pc and choose Try Ubuntu without changing the PC, open a terminal and follow the following steps:
  • 1, we know the partition where you have installed Ubuntu. If not we can use the command:
sudo fdisk-l

We will look something like this:


where we locate the Linux partition that has the Id: 83. In this case:
/ dev/sda3 60801 49732___ __ 83 ___ ___ ___ 88919775 Linux
and hard drive with an asterisk * Start, it is hosting the grub ( sda), no partition is needed ( 1).
  • 2 ° We set up the Ubuntu partition you have (in this case / dev/sda3 ) in / mnt with the following command (if you have it on another partition, cambiadlo):
sudo mount / dev/sda3 / mnt
  • 3 º then edited the rest of the devices with the following command:
sudo mount - bind / dev / mnt / dev
  • 4 º execute the chroot command so that root access to the system Ubuntu file: sudo
chroot / mnt
  • 5 º Now load the Grub in the MBR with the following command:
grub-install - Recheck / dev / sda

Note: sda is the hard disk where you installed the grub ( * ) and must not set the partition (sda1), only the hard disk. It can happen to have 2 hard drives.
  • 6 º Restart, we get the live CD and when you reboot ubuntu, to appear in the boot menu the new operating system we deleted the MBR, run the following command:
sudo update-grub2

And we will have our Grub 2 again.


Recover GRUB in Ubuntu 9.04

This method works with Grub and that changing the location of Grub2 not work for Ubuntu 9.10 installed from scratch, but IT WORKS FOR UPDATES Ubuntu 9.04 to 9.10 as this is not Grub
changes
We take our installation disk (live cd) and we put it.
Start the Pc and choose Try Ubuntu without changing the PC, and follow the following steps:

1. We know that we have installed Ubuntu partition if you do not know, open a terminal and write:

sudo fdisk-l

We will look something like this:


where we locate the Linux partition that has the Id: 83. In this case:
/ dev/sda3 60801 49732___ ___ __ ___ 88919775 83 Linux
___ and the partition with an asterisk * in the beginning, it is hosting the grub.

2. We know that to the Grub is another classification as we have to replace later. Would be:

For Ubuntu the first hard drive would be / dev / sda that Grub is (hd0 )

and partitions:

For Ubuntu / dev/sda1 would be for the Grub (hd0 , 0 )
For Ubuntu / dev/sda2 would be for the Grub ( hd0, 1 )
For Ubuntu / dev/sda3 would be for the Grub ( hd0, 2 )
For Ubuntu / dev/sda4 would be for the Grub ( hd0, 3 )
To Ubuntu / dev/sda5 would be for the Grub ( hd0, 4 )
For Ubuntu / dev/sda6 would be for the Grub ( hd0, 5 ) and so on.

3. Open the putting Grub in terminal: sudo grub



We will look something like this: (takes a bit)

HTML Code:
end_request: I / O error, dev 02:00 (floppy), sector 0 GRUB version 0.5.96.1 (640K lower / 3072K upper memory)
grub>

Since I have Ubuntu installed on / dev/sda3 , me to the Grub (hd0, 2) You put the matches down to you (all three sites): We

after grub> grub

> install ( hd0, 2 ) / boot/grub/stage1 (hd0) (hd0 , 2 ) / boot/grub/stage2 p ( hd0, 2 ) / boot / grub / menu.lst

4. We left the terminal, Ubuntu closed, we get the live cd and reboot the PC. VIDEO TUTORIAL


ACA AS EXPLAINED

0 comments:

Post a Comment