Debian This forum is for the discussion of Debian 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.
|
|
08-27-2004, 08:31 AM
|
#1
|
Member
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424
Rep:
|
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.
|
|
|
08-27-2004, 09:00 AM
|
#2
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
08-27-2004, 11:39 AM
|
#3
|
Member
Registered: Aug 2004
Location: Canada
Distribution: Debian
Posts: 87
Rep:
|
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.
|
|
|
08-27-2004, 08:03 PM
|
#4
|
Member
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424
Original Poster
Rep:
|
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
|
|
|
08-28-2004, 12:02 AM
|
#5
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi
so did these work for u ??
in what entries are u having problem????
regards
|
|
|
08-28-2004, 05:07 AM
|
#6
|
Member
Registered: Jun 2004
Distribution: Ubuntu
Posts: 185
Rep:
|
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.
|
|
|
08-28-2004, 08:21 PM
|
#7
|
Member
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424
Original Poster
Rep:
|
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?
|
|
|
08-28-2004, 11:41 PM
|
#8
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
08-29-2004, 03:03 AM
|
#9
|
Member
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:40 PM.
|
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
|
|