Kernel panic - not syncing: VFS: unable to mount root fs on uknown-block(253,0)
SLACKWARE LINUX 14.0
/dev/sda1 = /boot /dev/sda2 = LVM Partition /dev/lvfelix/swap = swap /dev/lvfelix/var = /var /dev/lvfelix/root = / /dev/lvfelix/usr = /usr /dev/lvfelix/opt = /opt /dev/lvfelix/home = /home After the installation finished and i boot the operating system this message shows up(see link below) (picture) http://postimg.org/image/3nvdh48ex/ |
Hello fjur94, welcome to LQ,
I suppose you're using a generic kernel? Seems your missing either the driver for the filesystem (ext4?) or the disk (ahci or ide?) in your initrd. In general your errormessage means that the kernel cannot mount the / partition due to missing drivers. I'd recommend to post Slackware-related issues in the Slackware-forums at LQ. I'll report this thread and ask for moving to the Slackware-Forums. Markus |
/var on a separate partition might not have been a good idea but I cannot locate the document I vaguely remember recommending against it so I cannot be sure.
Did you build an initrd? How? Did you include the entry for initrd it in /etc/lilo.conf? Did you run lilo -v after editing /etc/lilo.conf |
http://www.linuxquestions.org/questi...9/#post5103222
Please don't double post your problem in the forum again. |
Sorry Richard
Chris, no i have not done that :S |
No problem, it's just slightly annoying to have to post a reply in two different places.
|
i made this vídeo during the installation, the most important part is when it is installing packages
See link below http://www.youtube.com/watch?v=CsXP3Lb54ao Note: i'm speaking spanish in the video |
Hi,
at least one problem is quite obvious. You use a partition with only 1 GB of size for your /usr directory, this is way too small. I don't know how lvm comes into play, but there are errormessages about "no space left on device". But I would recommend to create only three partitions, /, /home and /swap (if necessary) and you should know that after a complete installation, there are about 7GB used on / Markus |
One of your disk partitions filled up during the install. At that point, your system is insane. See which of the partitions is close to full, make it larger and reinstall from scratch.
(By the way, I've been there and done that.) I've installed other things on this Slackware64 14.1 machine, but my current partition use is Code:
~$ df -h |
i resized the /usr partition, everything seems to be well with the installation but while booting another message appeared
See link below http://postimg.org/image/o7ggy2zij/ |
Please boot your install-CD and post the ouput of
Code:
fdisk -l Code:
mkdir /mnt/tmp/ Code:
cat /mnt/tmp/etc/fstab Code:
ls -lh /mnt/tmp/boot Markus |
The OP will have to run
Code:
/sbin/vgchange -ay --ignorelockingfailure I would also like to know the mkinitrd command used to create the initrd. |
3 Attachment(s)
mkinitrd command:
chroot $( /usr/share/mkinitrd/mkinitrd_command_generator.sh -r ) Changed lilo.conf Code:
image = /boot/vmlinuz-generic-smp-3.2.29-smp (pictures shows fdisk -l and df -h) |
1 Attachment(s)
markush /mnt/tmp already exist
note: Have not rebooted yet, the system will be damaged again if i start it :s picture shows (ls -lh /mnt/tmp/boot) and (cat /mnt/tmp/etc/fstab) |
Don't forget to run lilo again after creating a new initrd!
I use to have a "failsafe" option in my lilo.conf which means that I have also the huge-kernel available. This helps when there is something wrong with the initrd or the modules. Here the lines of my lilo.conf Code:
# Linux bootable partition config begins Markus |
Markus why you dont put your Root lvm path on LILO root option
mine: root = dev/lvfelix/root yours: root: dev/sda5 :s |
Well, I don't use lvm ;)
That's the reason why I can't help with lvm, I don't have any experience. I posted the part of my lilo.conf to show you how I use the huge kernel in a case of kernel-panic with the generic kernel. Markus |
i get it
|
What is the output of
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh |
1 Attachment(s)
Code:
mkinitrd -c -k 3.2.29-smp -f ext4 -r /dev/lvfelix/root -m mbcache:jbd2:ext4 -L -u -o /boot/initrd.gz |
Quote:
Code:
image = /boot/vmlinuz Quote:
If you execute this after installation, it will write initrd.gz to /boot of Slackware install CD (it will disappear after reboot). You want to execute it within your newly installed linux, so Lilo can pick it up. I assume that you did full install or have at least on kernel in /boot. Just to make sure, could you mount your boot partition and see if kernel is actually there? Look what is mounted right now (just to get clear picture what's going on). Code:
$ mount Code:
$ mount /dev/sda1 /mnt/boot I'll stop now and wait for output of commands above, then we can move further. |
3 Attachment(s)
i execute the mkinitrd command after installation without rebooting.
(/mnt/boot) didnt exist, so i created it. Pictures shows (mount) and (ls -l /mnt/boot) Note: i have not rebooted after i did the installation. |
Quote:
Your approach seems quite odd. I'd strongly recommend that you put the huge kernel into your lilo.conf and boot with it (don't forget to rerun lilo). Then, when Slackware with the huge kernel is running, you may create the initrd, rerun lilo again and reboot then with the generic kernel. Thanks to Richard Cranium for pointing me to this. I found this manual from Alien Bob, hope this helps. Markus |
Quote:
I'm running a 14.0 install on a virtual machine right now to see what state the installer should be in when it finishes. |
Quote:
|
I recommend that you skip installing lilo as part of running setup. Then do the following immediately after setup exits:
Code:
mount -R /proc /mnt/proc Select standard for "CONFIGURE LILO TO USE FRAME BUFFER CONSOLE?" No optional parameters. Select "No" for "Use UTF-8 TEXT CONSOLE?" Select MBR for "SELECT LILO TARGET LOCATION" You'll get a message indicating that lilo didn't install. Press enter. Then run... Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-smp-3.2.29-smp >>/etc/lilo.conf Next, run... Code:
lilo Code:
exit |
1 Attachment(s)
62 to 67, even the 'image' option ?
|
Don't know why ours are that different, but from the screen shot you provided, it's lines 59-64.
|
1 Attachment(s)
I made a video because this is unexplainable
see link below http://www.youtube.com/watch?v=qPFkQA4lkSc |
I don't know if there is difference between selecting <Cancel> or actually using the Exit menu option to leave setup. I used the exit menu option.
Other than that, I'd have to run the installer under VM player. My tests were run in a VM running under libvirt. |
let me install it one more time, but this time using 'exit' option.
|
Quote:
|
OK, I'll have to try it under VM player.
|
My VM player version worked as expected.
What options did you select when you created the VM? |
The system tries to mount the root-device to /mnt, this is wrong!. lilo or mkinitrd seem not to have been running from a chroot-environment. Or Maybe there's a problem with the fstab.
Sorry for pointing you the wrong way, the error-messages looked too familiar to me ;) Markus |
Quote:
The initrd init code mounts stuff in /mnt and then (essentially) does a chroot. Code:
# Switch to real root partition: |
When I installed my VM player version, there were more modules found by mkinitrd than the OP appears to have:
Code:
# This is a script used to load the kernel modules. |
VM options
*i will install the operating system later, next *guest operating system (other), version (other), next *Virtual machine name (Slackware), next *maximum disk size 30gb, split disk into multiple files, next *customize hardware, *memory (512) *procesor (4 cores) *new cd/dvd (use an iso image file) *network adapter(bridged), close *Finish |
Try setting the guest operating system to Linux and the version to 3.x kernel.
|
Hi,
today I had with my Slackware running on VMware also an Error "no /sbin/init found". Problem was that the initscript ran with wrong kernel (3.10.17 vs 3.10.17-smp). You should check that the kernel (uname -r) for which the initrd is created, is the same which will run on your system. Markus |
*shrugs* I ran the steps that I outlined in post #26 when I set up my VM in VMPlayer and the system booted just fine.
|
I'd recommend to check /lib/modules if there is really a directory 3.2.29-smp and that the modules are really being build into the initrd (look at the output when the initrd is created).
Markus |
It finally worked, the problem was: setting guest operating system to other, then i did what Richard said...
Quote:
Also... i installed again without running these steps below from "POST #26" and it worked. Code:
mount -R /proc /mnt/proc Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-smp-3.2.29-smp >>/etc/lilo.conf btw, this guide works too ftp://ftp.slackware.com/pub/slackwar...README_LVM.TXT Note: i installed Slackware 19 times and the problem was VM option "linux version 3.x" |
Thanks Richard and Markush for all your help.!!
|
1 Attachment(s)
Thanks guys, :D:D:D:D:D:D
|
Quote:
Have fun with your running system. |
All times are GMT -5. The time now is 10:46 AM. |