LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-05-2005, 06:45 PM   #1
jjf
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
Post Dual-booting MEPIS and WinXP, I want Grub to default to WinXP


Woohoo! Looks like I just pulled off my first Linux installation without fragging WinXP. I love that QTPartition is free, and all the Windows partition managers want to charge $40 to $120.

I installed SimplyMEPIS 3.3.1, which comes with Grub.

One minor annoyance: I have a wireless USB mouse/keyboard combo. Linux apparently loads Grub before it loads any USB drivers, so I can't use my keyboard to select different options in the boot menu. I have a PS/2 adapter, but I sure wish Grub worked with USB.

But here's my real question: I want to change the Grub options so that WindowsXP is the default selection. That is, after 10 seconds of no key pressing it will launch XP rather than launching MEPIS. How can I do this?

Thanks.
 
Old 09-05-2005, 07:11 PM   #2
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Look for /boot/grub/grub.conf (or simply for grub.conf). Take notice of which option is your WinXP, if there are only 2 entries and Mepis is your first one (that would be 0) then WinXP would be 1. Right? At the beginning of the file theres a line that reads "default 0" change it to 1 or whatever number WinXP is. Thats it.
 
Old 09-05-2005, 07:42 PM   #3
sprintman
LQ Newbie
 
Registered: Sep 2005
Location: CT, USA
Distribution: MEPIS
Posts: 2

Rep: Reputation: 0
jjf, You'll need to edit the file boot/grub/menu.lst as root. Here's what mine looks like. You need to move the Windows section up above the Mepis section. Just cut and paste the Windows section in above the Mepis section. Your hard drive setup may be different than mine, so just use mine as an example, edit your own menu.lst file. Make a backup copy before you have at it, so you can repair it easily if something goes wrong. The post by mebrelith is correct for some distros, Fedora works this way, but Mepis is different. Good luck!

Chris

timeout 5
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message

title Windows at hda1
rootnoverify (hd0,0)
chainloader +1

title MEPIS at hdb6, kernel 2.6.10
kernel (hd1,5)/boot/vmlinuz-2.6.10 root=/dev/hdb6 nomce quiet splash=verbose vga=791
initrd (hd1,5)/boot/initrd.splash


title MEMTEST
kernel /boot/memtest86.bin
 
Old 09-06-2005, 12:33 AM   #4
jammeramd64
LQ Newbie
 
Registered: Aug 2005
Distribution: topologicolinux/knoppix/Mepis
Posts: 8

Rep: Reputation: 0
I agree with sprintman, my file path is:hda2 root; file:/boot/grub
look for menu.1st, open it and cut and paste just the whole section for your windows , and put it on top of the mepis section that will change the boot screen to read windows partition first, dont forget you need to login as root to change this...hope this helps...


timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message

title Windows at hda1
rootnoverify (hd0,0)
chainloader +1

title MEPIS at hda2, kernel 2.4.29
kernel (hd0,1)/boot/vmlinuz-2.4.29 root=/dev/hda2 nomce quiet splash=verbose vga=791 hdc=ide-scsi hdd=ide-scsi
initrd (hd0,1)/boot/initrd.splash


title MEMTEST
kernel /boot/memtest86.bin
 
Old 01-16-2006, 07:28 PM   #5
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Rep: Reputation: 15
I also agree with sprintman. In my system - my file path is:hda2 root; file:/boot/grub. Log-in as 'root' FIRST - look for menu.1st, open it and edit it - you really only need to add the following as shown in my example below - 'default = 1' and 'savedefault'

------------------------------

timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1
splashimage /boot/grub/boot.xpm.gz
default = 0

title MEPIS, kernel 2.6.10
kernel (hd1,0)/boot/vmlinuz-2.6.10 root=/dev/hdb1 nomce nopcmcia vga=788 psmouse.proto=imps quiet splash=verbose
initrd (hd1,0)/boot/initrd.splash
savedefault

title Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
savedefault

title Windows 98
rootnoverify (hd0,1)
chainloader +1
savedefault

--------------------------------
Hope this helps!

Oz-Rod
 
Old 01-18-2006, 09:38 AM   #6
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Hrmmm... aint it easier to edit grub.conf?
 
Old 01-18-2006, 04:13 PM   #7
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Quote:
Originally Posted by mebrelith
Hrmmm... aint it easier to edit grub.conf?
Agree. grub.conf is the file intended for customizations.
 
Old 01-18-2006, 10:29 PM   #8
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Rep: Reputation: 15
Quote:
Originally Posted by wpn146
Agree. grub.conf is the file intended for customizations.
Well yes - but it depends on what distro you run - mine is Debian based so the relevant 'boot' file is - menu.lst.

For Redhat based - it probably is different - someone maybe able to clarify.

Oz-Rod
 
Old 01-19-2006, 03:27 AM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
grub.conf is generally a symlink to menu.lst. Either way you are editing the same file.

Quote:
open it and cut and paste just the whole section for your windows , and put it on top of the mepis section that will change the boot screen to read windows partition first
That is ridiculous. Do you not think it is easier to simply change "default 0" to "default 1"?
 
  


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
GRUB error -- dual booting Linux and WinXP j3nnifers Linux - Software 4 06-27-2006 02:13 PM
Grub gives "Invalid disk" when dual booting WinXP Archeantus Linux - General 12 06-02-2005 08:47 PM
Dual Booting WinXP/MDK with Lilo and Grub StealthSpectar Mandriva 5 11-09-2004 01:02 PM
GRUB: Dual booting Linux and WinXP with SCSI involved Judicator Linux - General 1 07-29-2003 03:58 PM


All times are GMT -5. The time now is 08:28 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