In Ubuntu Linux OS to edit the grub config u have to edit the below file only,
#vi /boot/grub/menu.lst
================================
To make a backup a copy of the
existing menu.lst file use:
#cp
/boot/grub/menu.lst /boot/grub/menu.lst.old
You
can try re-installing the grub using the Ubuntu Live CD, in two different ways.
GUI
- Boot your computer up with Ubuntu CD
- Go through all the process until you reach "Disk Partition"
- Select Manual Partition
- Mount your appropriate linux partions / /boot swap .....
- DO NOT FORMAT THEM.
- Finish the manual partition
- Say "Yes" when it asks you to save the changes
- It will give you errors saying that "the system couldn't install ....." after that
- Ignore them, keep select "continue" until you get back to the Ubuntu installation menu
- Jump to "Install Grub ...."
- Once it is finished, just restart your computer
Command
line
- Boot your computer up with Ubuntu CD
- Open a terminal window or switch to a tty.
- Go Super User (that is, type "sudo -s"). Enter root passwords as necessary.
- Type "grub"
- Type "find /boot/grub/stage1". You'll get a response like "(hd0,1)". Use whatever your computer spits out for the following lines.
- Type "root (hd0,1)", or whatever your hard disk + boot partition numbers are for Ubuntu.
- Type "setup (hd0)", to install GRUB to MBR, or "setup (hd0,1)" or whatever your hard disk + partition nr is, to install GRUB to a partition.
- Quit grub by typing "quit".
- Reboot and remove the bootable CD.
0 Comments