LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-30-2010, 05:18 AM   #16
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290

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
 
1 members found this post helpful.
Old 01-30-2010, 05:31 AM   #17
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
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.
 
Old 01-30-2010, 05:37 AM   #18
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello Hassan,

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

Kind regards,

Eric
 
Old 09-15-2012, 01:26 PM   #19
davidcroda
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 7 01-30-2010 11:05 AM
grub boot to "1" "S" or "single" chakkerz Linux - Newbie 2 12-09-2009 12:35 AM
[SOLVED] Dual boot, grub doesn"t show vista, no menu.lst mike11 Linux - Newbie 4 11-22-2009 07:56 PM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration