-   Linux - Software (
-   -   Cannot boot into Slax with grub... (

fannymites 08-10-2005 07:25 AM

Cannot boot into Slax with grub...
I'm trying out a few distros at the moment but I'm having problems booting up Slax.

My partitions are laid out like this so far-
hda1 - Ubuntu
hda5 - PCLinuxOS
hda6 - Slax

hdb1 - Windows XP
hdb5 - Arch

All other OS's are booting fine but I've just installed Slax to hard drive from the live cd. It booted fine from it's own lilo booter after install but I re-installed grub from ubuntu which is my main, permanant distro.
In Slax's boot directory it just has the files map, vmlinuz and a bitmap image and nothing I have tried in grub will even get it starting booting, I get various errors such as invalid format, file not found etc.
If I can get lilo in Slax to install to the hda6 partition, which I did with PCLinuxOS at first, I reckon it will work but I can't do that either.

J_K9 08-10-2005 07:46 AM


Could you please post your grub.conf file? /boot/grub/grub.conf, because that way we can analize the options/parameters... ;)


fannymites 08-10-2005 08:46 AM

I don't have a grub.conf but this is my menu.lst if it helps.


default                0
timeout                10


title                Ubuntu Linux
root                (hd0,0)
kernel                /boot/vmlinuz-2.6.10-5-386 root=/dev/hda1 ro quiet splash vga=792
initrd                /boot/initrd.img-2.6.10-5-386

title                PCLOS Linux
root                (hd0,4)
kernel                /boot/vmlinuz-2.6.11-oci12.mdk-i586-up-1GB root=/dev/hda5 vga=792
initrd                /boot/initrd-2.6.11-oci12.mdk-i586-up-1GB.img

title          Windows XP
root            (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader    +1

title                Slax 1
rootnoverify        (hd0,5)
chainloader +1

title                Slax 2
root                (hd0,5)
kernel                /vmlinuz root=/dev/hda6 vga=792

When I went to check my menu.lst I realised I had already deleted some of the slax related entries that didn't work and unfortunately, I can't remember what they were since all were copied from various forum searches. The 2 still listed don't work either.
I'm still very much in learning mode so please don't be too hard on me if I've missed something simple.

J_K9 08-10-2005 01:31 PM

OK, in Ubuntu, type (in terminal):

# sudo mkdir /media/slax
# sudo mount /dev/hda5 /media/slax

OK, once there, navigate to your /media/slax/boot directory. In there, you said there was a vmlinuz file - take the version number of that. In fact, copy the whole name. If there is an initrd, then copy that too. Then, in your menu.lst, put in the following entry:

title                Slax
root                (hd0,5)
kernel                /boot/vmlinuz-version root=/dev/hda5 vga=792
initrd                /boot/initrd-blahblah.img #There should be one


Does that work? Hope it does! ;)


fannymites 08-10-2005 03:50 PM

I thought the lack of an imitrd.img file may be a cause for problems booting.
The vmlinuz has no version number, it's just called vmlinuz and there is no imitrd.img file, I've been trying to make one but I'm not having much luck.

All times are GMT -5. The time now is 09:37 PM.