LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-05-2009, 10:22 AM   #1
PC caf
LQ Newbie
 
Registered: Mar 2004
Location: SOUTH AMERICA
Distribution: DEBIAN 5.0
Posts: 29

Rep: Reputation: 15
Smile Need to change DEBIAN 5.0 & WINDOWS 2k/xp boot order on GRUB


I Need to change two computers' boot order on GRUB. I want windows to boot first.

At this moment the boot order is:

First computer

-Debian 5.0. Boots first
-Windows XP. Boots Second

boot.ini

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn /usepmtimer


Second Computer


-Debian 5.0. Boots first
-Windows 2kserver. Boots Second

boot.ini

[boot loader]

timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows 2000 Server" /fastdetect

How can I modify the boot.ini on both computers acording to this explanation above ?

Hope 4 answer
 
Old 04-05-2009, 10:36 AM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
You quoted the contents of the boot.ini file in your Windows partition. But you are apparently booting with grub, so the relevent file is the boot.lst file used by grub, probably /boot/grub/menu.lst in your Linux filesystem.

Since I don't recall exact details, I googled your question and the first hit seems to be perfect:

http://boff.wordpress.com/2007/01/17...rub-boot-menu/

If that doesn't make it clear, quote your menu.lst file to this thread so someone can tell you exactly what to change.

Last edited by johnsfine; 04-05-2009 at 10:38 AM.
 
Old 04-14-2009, 01:27 PM   #3
PC caf
LQ Newbie
 
Registered: Mar 2004
Location: SOUTH AMERICA
Distribution: DEBIAN 5.0
Posts: 29

Original Poster
Rep: Reputation: 15
ok job done. I post the way I did it.

Changing boot order on Debian

if you already have windows running on your computer and during Debian's installation you have chosen grub to boot, you're likely to get the following order to boot:

-debian
-windows

Your might be interested on changing this order, and make windows first boot, and also expand the time it takes to boot. By default is 5sec.

Make this steps:

1-Cd / boot/grub
dir

default fat_stage1_5 menu.lstitle Debian GNU/Linux, kernel 2.6.26-1-amd64
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sdb2 ro quiet
initrd /boot/initrd.img-2.6.26-1-amd64

title Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sdb2 ro single
initrd /boot/initrd.img-2.6.26-1-amd64

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root t~ stage1
device.map jfs_stage1_5 minix_stage1_5 stage2
e2fs_stage1_5 menu.lst reiserfs_stage1_5 xfs_stage1_5

2- make a copy of menu.lst to your home directory or mkdir whaterver you want

cp /boot/grub/menu.lst /home/your own directory

3- edit file

4-gedit /boot/grub/menu.lst

or

vi menu.lst

5-set a timeout in SECs


## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5 ( default )


change it for 10 secs

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10




6- You will find at the bottom by default the boot order:


title Debian GNU/Linux, kernel 2.6.26-1-amd64
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sdb2 ro quiet
initrd /boot/initrd.img-2.6.26-1-amd64

title Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sdb2 ro single
initrd /boot/initrd.img-2.6.26-1-amd64

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1



7-put the last windows'portion first

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1


title Debian GNU/Linux, kernel 2.6.26-1-amd64
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sdb2 ro quiet
initrd /boot/initrd.img-2.6.26-1-amd64

title Debian GNU/Linux, kernel 2.6.26-1-amd64 (single-user mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sdb2 ro single
initrd /boot/initrd.img-2.6.26-1-amd64

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


8-save or replace your “menu.lst” file on /boot/grub

9-reboot and see changes

I hope this works for everybody

pc caf
 
  


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 01:53 PM
How to Change Grub Boot Order Johnny Faster Ubuntu 15 02-05-2010 01:14 PM
How to change the order of OSs in the grub boot menu? lifeisgood Linux - Newbie 3 10-17-2008 12:15 PM
Change boot order in grub.conf file lmcilwain Fedora 3 07-12-2006 01:33 AM
Change the boot order in grub buster_balz Linux - Newbie 2 12-23-2004 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration