Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
|
 |
02-16-2007, 04:07 PM
|
#1
|
Member
Registered: Apr 2003
Posts: 47
Rep:
|
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.
|
|
|
02-18-2007, 04:23 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
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?
|
|
|
02-18-2007, 05:25 AM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392
|
Put your update after the "### END DEBIAN AUTOMAGIC KERNELS LIST" line.
Then they won't get changed.
Gawd I hate auto-updaters - Debians included.
|
|
|
02-18-2007, 06:37 AM
|
#4
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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.
|
|
|
02-18-2007, 06:38 AM
|
#5
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
I like the debian autoinstaller for kernels! What's wrong with it?
|
|
|
02-18-2007, 06:47 AM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392
|
Ask the OP - QED.
|
|
|
02-18-2007, 08:25 AM
|
#7
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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.
|
|
|
02-18-2007, 07:46 PM
|
#8
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
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.
|
|
|
02-19-2007, 09:05 AM
|
#9
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:18 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
|
|