LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Boot grub menu list is accidentally removed from Ubuntu Jaunty and sysem boots to gru (https://www.linuxquestions.org/questions/ubuntu-63/boot-grub-menu-list-is-accidentally-removed-from-ubuntu-jaunty-and-sysem-boots-to-gru-746721/)

murtyvonna 08-11-2009 07:38 AM

Boot grub menu list is accidentally removed from Ubuntu Jaunty and sysem boots to gru
 
Sir,
I am not much experienced with Linux systems and commands. I have been searching with Goggle and trying to solve. Today I had accidentally removed the boot grub menu list. There is a backup file. Now my system boots to >grub command. I have tried all sorts of things from live CD to boot the system I have tried Super Grub also. I am no able to go to the directory where the back up boot menu list is available and change the name from the live CD. Can any one help me with commands to go to the directory and rename the file for booting . Thanks in advance.

pixellany 08-11-2009 07:49 AM

welcome to LQ!!

Boot up from a live CD and open a terminal. Then do this: (I am assuming the the Ubuntu /boot directory is on sda1 (ie the first partition of the first drive.) I'm also assuming that the backup file is "menu.lst.bak".

Code:

cd /mnt
mkdir ubuntu
mount /dev/sda1 ubuntu  ##change sda1 if required
cd ubuntu
cd boot/grub
ls    ##check the name of the backup file
cp menu.lst.bak menu.lst
reboot


murtyvonna 08-11-2009 12:19 PM

Quote:

Originally Posted by pixellany (Post 3639196)
welcome to LQ!!

Boot up from a live CD and open a terminal. Then do this: (I am assuming the the Ubuntu /boot directory is on sda1 (ie the first partition of the first drive.) I'm also assuming that the backup file is "menu.lst.bak".

Code:

cd /mnt
mkdir ubuntu
mount /dev/sda1 ubuntu  ##change sda1 if required
cd ubuntu
cd boot/grub
ls    ##check the name of the backup file
cp menu.lst.bak menu.lst
reboot


Sir,

I am very grateful for the solution. Since I am with Ubuntu Jaunty, my old Super Grub did not work. I have made a CD with the latest updated suitable for Ubuntu 9.04 with ext4 this had solved the problem. How ever for my knowledge improvement I have tried your solution with live CD. I have learnt to day : how to get into files with cd command from live CD. My backup menu.list is :menu.lst.backup". Let me thank you once again. Hope this thread will be helpful to many.
Regards


All times are GMT -5. The time now is 02:58 AM.