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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-05-2005, 06:45 PM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 6
Rep:
|
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.
|
|
|
09-05-2005, 07:11 PM
|
#2
|
Member
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Rep:
|
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.
|
|
|
09-05-2005, 07:42 PM
|
#3
|
LQ Newbie
Registered: Sep 2005
Location: CT, USA
Distribution: MEPIS
Posts: 2
Rep:
|
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
|
|
|
09-06-2005, 12:33 AM
|
#4
|
LQ Newbie
Registered: Aug 2005
Distribution: topologicolinux/knoppix/Mepis
Posts: 8
Rep:
|
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
|
|
|
01-16-2006, 07:28 PM
|
#5
|
Member
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54
Rep:
|
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
|
|
|
01-18-2006, 09:38 AM
|
#6
|
Member
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Rep:
|
Hrmmm... aint it easier to edit grub.conf?
|
|
|
01-18-2006, 04:13 PM
|
#7
|
Member
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170
Rep:
|
Quote:
Originally Posted by mebrelith
Hrmmm... aint it easier to edit grub.conf?
|
Agree. grub.conf is the file intended for customizations.
|
|
|
01-18-2006, 10:29 PM
|
#8
|
Member
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54
Rep:
|
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
|
|
|
01-19-2006, 03:27 AM
|
#9
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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"?
|
|
|
All times are GMT -5. The time now is 05:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|