booting Slackware with existing Grub
Hello,
I've just installed SW 10.2 on third partition of ide hard disk (mounted on /dev/hdc). During installation, it proposed to install lilo on mbr, but since i have already debian on the first partition, i didn't install lilo. i try now to load SW from Grub command line: Code:
root (hd0,3) Well, it loads a lot of staff, but then it freezes after messages: Code:
INIT: Id "1" respawning too fast Thank you. |
Quote:
|
Do you have 3 disks in your machine? According to your stanza, your boot partition is on /dev/hda4:
root (0,3). cwwilson721 has already mentioned your root partition, so I won't mention it again :). Also, are you sure those are the correct values for the kernel image and initrd? Did you use a different kernel to the default in Slack? Which filesystem are you using on your root partition? |
Also,
Code:
kernel /boot/vmlinuz-1.6.15-1-486 root=/dev/hdc4 ro What you can also do is install Slackware's LILO into the root sector of the Slackware partition (i.e. not in the MBR) and then add this to the Grub menu: Code:
title Slackware You will have to use a bootable CD or boot into your Debian to be able to install LILO. Eric |
i am not familiar with grub but i think u have to
Quote:
Quote:
1. do wee need the initrd line? 2. are u sure u installed the kernel? from where u get this kernel "vmlinuz-1.6.15-1-486" a custom one?;) 3. Quote:
4.as Nylex mentioned are u sure ur disk is /dev/hdc? 5.go through the deb menu.lst or grub.conf and see the entry for root like "root (hd0,0)" get the "hd0" one, make sure that U CAN TRY ANY OF THESE(i am a slacker and uses lilo only)2 mor options. add these options and check which one works 6.i will suggest u to install lilo to the root partition (/)of slack(from slack), when it asks(liloconfig) and add an entry in grub like Code:
title Slack Code:
title Slack best of luck |
while i was typing "Alien Bob " wrote one but i think that entry is wrong for 3rd partition
Quote:
but it is good if u write "rootnoverify " this one best suit for windows like things where linux cant have a marked access for linuxxs it can get the kernel from other partition, i think anyway i am glad that we both thought in same way |
Quote:
if u want to install lilo to root partition of slack, as "Alien Bob" said 2 ways 1.if u want to get into slack ? use slack 1st cd, simple and best choice at teh boot prompt type boot: bare.i root=/dev/hdc3 noinitrd ro (assumed u used bare.i for install) 2.boot into your Debian ? u need to chroot into slack partition then only we can installl lilo(it is not grub;)) so u can't simply edit lilo.conf but u need to run "lilo" so from other os u cant do this why all this first try the second choise of me (so no need for install lilo if it works :)) best of luck and thank u Alien Bob |
thank you everybody for replies
1. i forgot swap which is mounted on second partition (it was done by debian). and i have hurd on third partition. so SW is on the fourth partition - /dev/hdc4. why hdc, and not hda ? because cdrom is on hda (it'd be bios' decision, i think). 2. it was my mistake in the first post. the correct files are: Code:
/boot/vmlinuz-2.6.15-1-486 3. i did install lilo, not on mbr, but on the boot sector of SW's partition, so when from grub i make Code:
rootnoverify (hd0,3) Code:
VFS: cannot open root device "1604" or unknown-block(22,4) 4. in debian, when i mount SW Code:
mount -t ext2 /dev/hdc4 /mnt/data but what bothers me is that i also see /mnt/data/grub/menu.lst with debian's content, which is impossible thing. and this is what i don't understand - how is it possible that on a mounted partition one can see content of another partition ? Thank you |
Why all this hassle? I easily managed to boot Slackware directly from Grub without even installing LILO.
I would never recommend chainloading unless you have an incompatible OS which uses its own loader. I think it would be best to remove the boot partition of Slackware and reinstall Slackware without LILO and use grub directly to do the loading. It works because I did it that way. The other way is to simply use LILO in the MBR if you're more comfortable with it and configure it to load Debian after booting into Slackware. Always keep the list of partitions handy in your notebook so that you can easily refer which partition refers to which os. |
Oh, another thing. When you edit Debian's /boot/grub/menu.lst, be sure to put all your own entries after this line
Code:
### END DEBIAN AUTOMAGIC KERNELS LIST Code:
### BEGIN AUTOMAGIC KERNELS LIST |
also /dev/hdc4 would be
root (hd2,3) I think. |
Quote:
thank you. |
Quote:
|
Quote:
Also I'm curious about initrd. Slackware doesn't use initrd AFAIK. How did you get that with a stock kernel? And secondly if you compiled your own kernel, that could be the problem as well. A badly configured kernel will not boot. Just trying to think of possibilities ;) And seeing your first post, it appears that you actually tried to boot into the Slackware partition using your Debian kernel. That would account for the cryptic message and freeze. (I know because I did this once - mismatching the kernel= and the root=) |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 11:06 AM. |