LinuxQuestions.org
Visit Jeremy's Blog.
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 03-05-2007, 07:19 AM   #1
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 284

Rep: Reputation: 30
Grub boot menu


I have recently installed a new version of the kernel ( Linux debian 2.6.18-4-686 #1 ) and the boot menu file (/boot/grub/menu.lst ) has been updated.

The bad thing is that i had to manually rewrite the entry for ms-windows ( that has been never recognized by debian installer ).

Code:
title           Windows XP
root            (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
Is there a way to not overwrite this entry whilst installing a new kernel?

Thank you in advance.
 
Old 03-05-2007, 09:31 AM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
I suggest making a backup like:

cp grub.conf grub.conf.bak

or

cp menu.lst menu.lst.bak

It won't overwrite the .bak files.
 
Old 03-05-2007, 10:16 AM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Most of the way down in the /boot/grub/menu.lst file you'll see a line that says
Code:
### END DEBIAN AUTOMAGIC KERNELS LIST
Anything you put below that line won't be touched during the next new kernel upgrade.

So simply make the bottom of your menu.lst look like this and the lines to boot windows will stay and work.

Code:
### END DEBIAN AUTOMAGIC KERNELS LIST

title           Windows XP
root            (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
Peace,
JimBass
 
Old 03-05-2007, 01:24 PM   #4
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 284

Original Poster
Rep: Reputation: 30
Thank you.

I have tried myself the second solution yesterday ( and backed up too the file ), now you confirm that it will work, so i'm happy. Great!
 
  


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
Help, Grub has taken over boot menu dude2k5 Linspire/Freespire 6 12-13-2005 04:50 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub Boot Menu avatar_58 Linux - General 2 05-20-2005 10:29 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM

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

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