LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-27-2004, 08:31 AM   #1
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Question New Kernels No XP in Grub


Another question for those out there linux savy. I've been compiling a few kernels lately (actually lost count by now!) Strange thing happened when I was trying to add a bootsplash to my kernel. At least thats when I think it started happening. Anyway, during all of these compiles, trying this and that, all of a sudden, my xp partition dissapeared. After re-editing grub menu list without success, I tried to reload grub off, of the install cd and things got even nastier. Anyway, got it sorted once again editing grub menu list and could load xp So, after that it was back to square one making a new kernel, which went well after re-installing a lot of stuff that disappeared (such as qt3 and mod-init-tolls etc) after new kernel is installed, once again xp is wiped from the menu list. No problem, put it back and it works. But the big question is, why all of a sudden is grub wiping the xp part off of the menu? Also, if I install stuff through apt, on one kernel, is it wiped when I go back to an older kernel? Just not sure whats going on, because I had downloaded a lot of stuff and when this all happened I went back to the kernel that was installed when the system was installed and tried to compile a new one, and it didnt work because all this stuff wasnt installed anymore. Is there an apt command that re-installs everything in the cache? That would be handy because it takes a while to remember everything that I installed to get certain things working.
 
Old 08-27-2004, 09:00 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

could u please tell us that after comliling ur kernel how were u editing ur grub.conf
and what ur grub.conf entries are

regards
 
Old 08-27-2004, 11:39 AM   #3
towjamb
Member
 
Registered: Aug 2004
Location: Canada
Distribution: Debian
Posts: 87

Rep: Reputation: 15
A way to edit grub in GUI is to apt-get install grubconf. All of your kernels and alt operating systems (XP too) will show up in the menu for you to manipulate.
 
Old 08-27-2004, 08:03 PM   #4
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
I was just installing the kernels with dpkg and it would automatically edit grug for me. This worked about 8 times and then all of a sudden it stopped working. So then I just opened it up with kedit and manually put the entry in for xp. heres the entries.


title Debian GNU/Linux, kernel 2.6.7
root (hd0,1)
kernel /boot/vmlinuz-2.6.7 root=/dev/hda2 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.7 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.7 root=/dev/hda2 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.4.26-1-386
root (hd0,1)
kernel /boot/vmlinuz-2.4.26-1-386 root=/dev/hda2 ro
initrd /boot/initrd.img-2.4.26-1-386
savedefault
boot

title Debian GNU/Linux, kernel 2.4.26-1-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.4.26-1-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.4.26-1-386
savedefault
boot

title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST
 
Old 08-28-2004, 12:02 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

so did these work for u ??
in what entries are u having problem????

regards
 
Old 08-28-2004, 05:07 AM   #6
TLV
Member
 
Registered: Jun 2004
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Quote:
Originally posted by short101
title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1

### END DEBIAN AUTOMAGIC KERNELS LIST
IMHO, it's better to add the XP entry outside the "AUTOMAGIC" part. This way, the XP entry won't disappear whenever a new kernel is installed. Debian may have "fixed" that problem, but by having it outside you'll know that it is always there...

T.
 
Old 08-28-2004, 08:21 PM   #7
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
I think that might be the problem actually. I'll try moving it outside the magic bit and see what happens next recompile. Dont know why it went missing to start with though.
Masand: Not having any problems now, was just wondering if anyone knew why it got deleted. Any ideas about the apt thing with the programs dissapearing?
 
Old 08-28-2004, 11:41 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
did the post above ur post didn't solve ur query, i haven't used apt-get for this

so it may be right that the automagic parts needs to be kept diferent from other parts(windows parts) that might have got the entry delted because it could
not fine any file/kernel for windows in ur /boot directory

i haven't used this , so I may be wrong tooooo.

regards
 
Old 08-29-2004, 03:03 AM   #9
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
Just tried the apt-get install grubconf thing to see what it does and had to download a heap of packages which would take about 2 hours on my internet connection (way slow) so I'll have to leave it for when I can get on a broadband connection
 
  


Reply



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 boot with 2 kernels installed philnk Linux - Software 2 07-07-2005 07:47 PM
multiple 2.6 kernels using GRUB DeltaXFX Linux - Newbie 7 02-03-2005 06:10 AM
removing kernels from grub buffed317 Fedora 8 07-08-2004 09:55 AM
now i have 2 Grub kernels why? pleasehelp Linux - Newbie 2 03-31-2004 09:59 AM
Grub with two Kernels gr33ndata Linux - Software 3 09-24-2003 04:23 PM

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

All times are GMT -5. The time now is 02:04 PM.

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