Boot grub menu list is accidentally removed from Ubuntu Jaunty and sysem boots to gru
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.