Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Saturday, July 10, 2010

Repair your GRUB loader

Repair your GRUB loader

GRUB is the bootloader of choice for Ubuntu, it is flexible and can be edited to load windows partitions if needed. Every once in a while windows may have the inclination to overwrite your bootloader with its own. This will make accessing your Ubuntu box a mission – fear not, I have a quick solution ;) Follow these steps to repair your GRUB loader:
Boot your PC with an Ubuntu Live CD in the drive
Open a shell (Terminal)
Type the following to re-configure GRUB
sudo grub
Type the following followed by the TAB key
root (hd
This will provide you with a list of possible physical drives eg:
hd0 or hd1
Type the number of the drive you installed ubuntu on, not to worry if you unsure, the next step with tell you if you on the right path. Add a ‘,‘ after the number and press the TAB key again:
root (hd0,
You will see something similar to the following:

Edit The Grub Boot Sequence In Ubuntu / Mint

edit the grub boot sequence in Ubuntu / Mint

installed ubuntu 7.04 day before yesterday. this will be my 3rd or 4rth attempt at migrating to linux.

first thing, was to either write enable my other windows partitions, so i can continue my torrents from linux..

.. since i couldnt manage that, i decided to edit the grub loader and make windows vista the default os...

that wasnt as easy. i'd forgotten how i did it the last few times...

so for future reference am putting this here:

1) to edit the boot sequence, you need to edit the menu.lst file under root/boot/grub/

2) the file is of course write protected, the only way to edit it is with "root" priviledges. for the linux nooby, Root is like the default Administrator account on Win xp.
so log out and try to log in as root.....
didn't work? well thats coz the guys behind ubuntu realised, that allowing us noobs to log in as root was like giving a 2 year-old a stick of dynamite and a blowtorch.