LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-16-2007, 04:07 PM   #1
JamboUK
Member
 
Registered: Apr 2003
Posts: 47

Rep: Reputation: 15
Grub - Operating System Boot Priority


Hello,

Was wondering if anyone can help with this little niggle.

I have a dual booting base unit running Ubuntu and XP. I predominately want it to boot into XP so in Grub this is the default OS for boot up.

I have set this up following the guide on the Ubuntu Guide website. Works no problem.

BUT whenever the Ubuntu kernel is update a new Grub Menu is created and my old one overwritten and thus taking the Windows XP entry with it. I then have to go back in via and re-enter the XP entry at the top of the list.

Anyone got a better method so the XP entry remains intact despite a new kernel download. Thanks in advance.
 
Old 02-18-2007, 04:23 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
sure - if you look in /boot/grub/menu.lst, you will see some lines like this:
Code:
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
... that last line looks suggestive doesn't it? What happens when you uncomment it?
 
Old 02-18-2007, 05:25 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Put your update after the "### END DEBIAN AUTOMAGIC KERNELS LIST" line.

Then they won't get changed.
Gawd I hate auto-updaters - Debians included.
 
Old 02-18-2007, 06:37 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Simon Bridge
What happens when you uncomment it?
Quote:
Originally Posted by /boot/grub/menu.lst
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs
If you uncommented it, it will get overwritten by default configuration.
You have to replace false by true and leave the leading #

Last edited by nx5000; 02-18-2007 at 08:22 AM.
 
Old 02-18-2007, 06:38 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I like the debian autoinstaller for kernels! What's wrong with it?
 
Old 02-18-2007, 06:47 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Ask the OP - QED.
 
Old 02-18-2007, 08:25 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
How to disable the autoinstaller:
Comment the line postinst_hook and postrm_hook from /etc/kernel-img.conf
This way, update-grub won't be launch.
 
Old 02-18-2007, 07:46 PM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by nx5000
If you uncommented it, it will get overwritten by default configuration.
You have to replace false by true and leave the leading #
Ah - I stand corrected: excuse me.

When I provide minimal information, I should remember not to be misleading.
 
Old 02-19-2007, 09:05 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Simon Bridge
Ah - I stand corrected: excuse me.

When I provide minimal information, I should remember not to be misleading.
These commented thing are misleading also

Anyway, for the OP, just follow what syg00 said previously.
 
  


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
"Error booting operating system" Repairing GRUB. SUSE 10.2 and XP dual boot Arma12 SUSE / openSUSE 11 01-28-2007 04:26 PM
How to boot dual operating systems from grub shahz Linux - Server 5 09-19-2006 02:42 PM
How to set the default boot operating system at the boot menu Niceman2005 Linux - General 2 04-12-2006 09:46 PM
Changing priority of Dual Boot System LinuxVirgIan Linux - Newbie 5 07-02-2004 05:45 PM
RAID1 and GRUB - error loading operating system kenji1903 Linux - General 3 06-06-2004 10:27 PM

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

All times are GMT -5. The time now is 02:18 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
Open Source Consulting | Domain Registration