LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-07-2004, 01:36 PM   #1
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Rep: Reputation: 15
Wink changing the boot order


I have Mandrake 10 and W2K. I would like to change the boot order. I did a search but didn't understand some and weren't sure if that are distro specific. (The poor wife needs W2K to boot first for her really important emails

Please keep it simple.
 
Old 06-07-2004, 01:39 PM   #2
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
Well I am asuming you mean you want to change the default from mandrake to windows when you power on the computer. If that is correct you will first have to tell us what bootloader you are using: Lilo or Grub?
 
Old 06-07-2004, 02:23 PM   #3
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Original Poster
Rep: Reputation: 15
Yes, I would like W2K to be default.

LILO
 
Old 06-07-2004, 02:31 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
log on as root.

Edit the /etc/lilo.conf file

Look for the line that says label=windows, dos or the like and change the line that says default= to the above label.

Then rerun lilo
/sbin/lilo

If in doubt post the /etc/lilo.conf file.
 
Old 06-07-2004, 02:40 PM   #5
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
I recommand that before you attempt any of this that you make a boot disk for your system to get back into linux. This is just incase anything goes wrong writting the MBR to the drive and your bootloader does not work. If you need help with a boot disk let me know.

Ok well all this will have to be done as root sosu to root at the shell
Then make a backup of /etc/lilo.conf
Quote:
cd /etc
cp lilo.conf lilo.conf.old
Go edit the file /etc/lilo.conf
At the top there is a line that says default=Linux Label (Sometime sometimes the kernel version)
Change that for the label of what you want to boot by default. The label will also be the same as what is shown on the boot menu when the computer starts, it will be something like DOS or Win2000. Just look in the entries in the file and find the right one, there should not be to many, only one for every entry you have on your boot menu.
Then save that file and at the shell type
Quote:
lilo -t -v
That will tell you what the lilo program is going to do in terms of writing to your MBR, if there are any errors STOP NOW and do not continue. You might have messed something up in your lilo config so just go back and take a look.
Once everything comes back alright at the shell type
Quote:
lilo -v -v
And this will write the new boot record to the MBR. If you get errors at this stage do not reboot, restore the original lilo and then do lilo -v -v and try to figure out what you did wrong.
I tell you to restore because if every your systems crashes with a bad MBR you might not be able to boot anymore.
If you need anymore help let me know and I will try my best.
 
Old 06-07-2004, 06:47 PM   #6
coopns
Member
 
Registered: Jan 2004
Location: Scituate, MA
Distribution: Mandrake 10
Posts: 94

Original Poster
Rep: Reputation: 15
Here is lilo.conf....

So what should change here?

Thanks, I really appreciate the help.# File generated by DrakX/drakboot


# WARNING: do not forget to run lilo after modifying this file

boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hdb5 splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hdb5"
read-only
image=/boot/vmlinuz-2.6.3-7mdk
label="263-7"
root=/dev/hdb1
initrd=/boot/initrd-2.6.3-7mdk.img
append="devfs=mount acpi=ht resume=/dev/hdb5 splash=silent"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb1
initrd=/boot/initrd.img
append="failsafe acpi=ht resume=/dev/hdb5 devfs=nomount"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe
 
Old 06-07-2004, 07:06 PM   #7
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
I am not sure what all of your labels are for, but ti get W2k to start change default="linux" (the third line excluding the comments) to default="windows"

Then just do the lilo stuff I said.
 
Old 06-07-2004, 10:57 PM   #8
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
does this work the same for grub?
 
Old 06-08-2004, 11:32 AM   #9
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
No grub is slightly different.
What distro are you running?
 
Old 06-08-2004, 11:59 AM   #10
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
grub usually uses a numbering system for the default. if you have the line:
Code:
default=0
then it would boot the first os listed as the default. if however, you had:
Code:
default=1
then it would boot the second, etc. this uses the computer science convention of counting starting with zero.

hope this helps.
 
Old 09-14-2004, 12:40 AM   #11
irishstu
LQ Newbie
 
Registered: Sep 2004
Location: Taiwan
Distribution: Mandrake 10
Posts: 2

Rep: Reputation: 0
Smile

Wow. This is fantastic! Exactly what I was looking for... Mandrake 10, Windows 2000. Need to leave Windows as the default OS for my wife. I'll try it out and report back. Thanks so much
 
Old 09-14-2004, 07:20 AM   #12
irishstu
LQ Newbie
 
Registered: Sep 2004
Location: Taiwan
Distribution: Mandrake 10
Posts: 2

Rep: Reputation: 0
Smile

Well, I said I'd let you all know....
Worked first time. Thank you so much. I think I'm going to like Linux.
 
  


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
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 12:53 PM
Changing boot order CornMaster Fedora 13 10-04-2005 10:13 AM
Changing start order of tasks at boot..? stellarmarine1 Linux - Enterprise 4 08-25-2004 07:20 AM
changing boot order vasu Mandriva 4 08-25-2003 02:24 PM
changing redhat 7.3 boot order CyberSteve Linux - Software 1 04-20-2003 08:14 PM


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