Thursday, December 4, 2008

Coby Tf-dvd1023 10.2-inch Widescreen

Repair: Lost Grub after installing Windows

are many users who migrate from Windows to Linux platform, and Ubuntu mostly. Have long helped in ubuntu-es.org and to the huge amount of times I've had to repeat this, I decided to create an entry just for this. Yes, here I will explain in chapter and verse. What has happened to our Ubuntu (or GNU / Linux)? Well do not be scared, because nothing happened at all, is still intact (wherever you are ...)

Solution: Reinstalling Grub in the MBR of the hard disk.

need: A Live CD of Ubuntu.

1 - Introduce the Ubuntu LiveCD in the drive, turn on your machine and boot from the LiveCD, let it all flow quietly until you see the classic desktop of a pristine Ubuntu.





2 - Open a console
Theory:

Before typing anything on the console as an organization must understand GNU / Linux drives and partitions.

Each unit that detects USB or SATA, is released into the devices directory "/ dev". Under the name "sd" + a letter. The letter corresponds to the number of unity, "a" for the first, "b" for the second ... etc.

addition, the above is assigned a number for each partition detected in the unit, so that the first partition on the disk will be "sda1" The second partition of first disk will be 2 (sda2) the second partition second disk will be "sdb2." I guess you imagine where the shots go.

And all these units are located files in / dev. "



3 - Identify where you installed Ubuntu:
Write in console: sudo fdisk-l You should have something like this: (quietly, in your machine will have two or three lines, alo most)






Well how do we know which device is our record of ubuntu? Easy, the first of which is Linux file system. In this case it is / dev/sda5. In yours will be 1 or 2 or 3, it depends. In console write: sudo mount / dev/sda5 / mnt (do not return anything)
4 - Restoring Grub

In the same console type: sudo grub-install - root-directory = / mnt / dev / sda





And everything ready, no more history, restart your computer and enjoy GNU !

0 comments:

Post a Comment