LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   There is no "menu.lst" in my Ubuntu "/boot/grub/" folder. (https://www.linuxquestions.org/questions/linux-newbie-8/there-is-no-menu-lst-in-my-ubuntu-boot-grub-folder-785767/)

EricTRA 01-30-2010 05:18 AM

Hi,

Open a terminal and execute the following commands:
Code:

cd /etc/grub.d
sudo nano 10_windows_xp

The last command will open a text editor. In it copy this:
Code:

#!/bin/sh -e
echo "Adding Windows XP to GRUB 2 menu"
cat << EOF
menuentry "Windows XP" {
set root=(hd0,1)
chainloader (hd0,1)+1
}
EOF

and type CTRL-O to save the file, next CTRL-X to exit the editor.

Next make the script executable with this command:
Code:

sudo chmod +x 10_windows_xp
As last run this command:
Code:

sudo update-grub
and reboot after that.

Post any result and/or errors here.

Kind regards,

Eric

msbstar 01-30-2010 05:31 AM

Hello EricTRA,

Ooh, Unbelievable.... it works...
This is the second time that you are doing miracle for me.
Thank you very much.

"You are like a savior in this forum".

Thanks alot again.
Good luck
And I send you my best regards,

Hassan.

EricTRA 01-30-2010 05:37 AM

Hello Hassan,

I'm glad it worked out. Have a nice weekend.

Kind regards,

Eric

davidcroda 09-15-2012 01:26 PM

The correct way is to edit /etc/default/grub and change the GRUB_DEFAULT variable. Then run sudo update-grub . You will find other settings that used to be in menu.lst in this file as well.


All times are GMT -5. The time now is 08:28 PM.