Lilo not booting slackware correctly. Errors listed inside.
I'm fairly new to Linux so I'm going to need a step-by-step guide to get me out of this rut. The install of Linux was fine but when I booted up I got this error.
VFS: Cannot open root device "302" or unknown-block (3,2) Please append a correct "root=" boot option; here are the available partitions; 0800 78150744 sda driver:sd 0801 47428608 sda1 <-- this is my Windows partition 0802 30719552 sda2 <-- this is my Linux partition 0b00 1048575 sr0 driver:sr 0b01 1048575 sr1 driver:sr Kernel panic - not syncing:VFS:Unable to mount root fs on unknown-block (3,2) I guessed from reading this error Lilo isn't pointing to the right partition to boot from? How will I fix this? I read another thread about boot problems on these forums and a guy said to do this: #mkdir /slacktemp #mount /dev/device /slacktemp #chroot /slacktemp #cd /slacktemp/etc <-- for me it told me that doesn't exist #vi lilo.conf <-- couldn't do nothing and was frozen #lilo -v -t -b /dev/device #lilo -v -b /dev/device The above solution did not work for me. Can anyone shed a light on a Linux rookie? |
put the output of
# cat /etc/lilo.conf for this simply mount the /dev/sda2 on /mnt then use the command. for mounting use #mount /dev/sda2 /mnt also put the output of #fdisk -l |
I think things just got interesting W34p0n-X. First off, thanks for the speedy response. These are the results from my last adventure.
#cat /etc/lilo.conf cat: can't open '/ect/lilo.conf' : No such file or directory #fdisk -l Disk /dev/hda : 80.0GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065*512=8225280 bytes Disk identifier : 0xc4b3c4b3 Device Boot Start End Blocks ID System /dev/hda1 * 1 5905 47428608+ 7 HPFS/NTFS /dev/hda2 * 5905 9729 30719552+ 83 Linux |
Well... I guess those commands shouldn't work quite right. Can you try the following:
Code:
mkdir /slacktemp Code:
ls /slacktemp/etc Code:
cd /slacktemp Find the section which loads your kernel. Something like: Code:
image = /boot/vmlinuz Press Esc (it usually works) after you're done with editing. Type ':w' (yes, with a colon), then press Enter. Vi will tell you the file is saved. Then type ':q', Enter. Vi will exit after that. Code:
lilo -v -t -b /dev/hda2 After all above actions are performed, a few commands are left: Code:
exit |
The error you are getting
cat: can't open '/ect/lilo.conf' : No such file or directory (check the filename here,it's /etc/lilo.conf not the /ect/lilo.conf) use the correct syntax and post the output #cat /etc/lilo.conf |
Alright Prehistorik, I'll be back shortly with results.
|
Hi,
Quote:
:hattip: |
vi has shown me
image = /boot/vmlinuz label = Linux root = /dev/hda2 so it is pointing to the right direction. also to the people saying that i actually typed in mounting on device i didn't, i did it correct lol. |
Also I'm about to post that output of lilo.conf for you weapon.
Uh no matter how I spelled it it doesn't exist it says. |
Any new suggestions?
|
Did you do a full install?
Did you install lilo in the install sequence. I would boot using the install DVD, following the instructions on the splash screen, then as root install lilo. Then run lilo. Then reboot. samac |
yeah i did a full install and installed lilo after it was done like it guided me too. let me try this again then.
|
Did you install to the MBR?
samac |
Yes. I'm about to just quit on slack and lilo. Probably the worst bootloader I ever dealt with. I have installed Gentoo easier than I had with slack and Gentoo is a horrid distro that breaks with every update. Can I installed GRUB and make this work? Lilo seems to be the worse damn bootloader I have ever dealt with.
|
Lilo is wonderful, it is elegant and simple and works, but if you are happier with grub you can install it. I would however point out that grub is a 32-bit program and you will have to install 32-bit extensions if you are using Slackware64.
Best of luck with whatever you choose. samac |
All times are GMT -5. The time now is 06:45 PM. |