You are viewing illiterat

James Antill - Fedora Kernel update causes: mkrootdev expected fs options

Apr. 24th, 2007

12:14 am - Fedora Kernel update causes: mkrootdev expected fs options

Previous Entry Share Next Entry

I'm mainly dropping this somewhere so other people can find it, I recently did a kernel update and when I rebooted I got:

mkrootdev expected fs options
mount: missing mount point
setuproot: moving /dev/failed no such file or directory
setuproot: error mounting /proc
setuproot: error mounting /sys
switchroot: mount failed No such file or directory
kernel panic

...it turns out this was because I'd somehow got two / entries in /etc/fstab, as I found from this posting. The only thing you need to be aware of is that you also have a copy of /etc/fstab in the initrd, so after fixing /etc/fstab you'll want to re-run the postinstall scriptlet (rpm -q --scripts kernel), Ie. /sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install <kernel version>

Comments:

From:(Anonymous)
Date:January 7th, 2008 04:27 pm (UTC)

Thank you

(Link)
Thank you. This was a very helpful posting.

I just upgraded my FC7 kernel from 2.6.22.9-91 to 2.6.23.12-52 and had exactly the same symptoms you report here. Your remedies worked just as well:

1) remove the extra "/" entry from /etc/fstab
2) re-run the post install script

The question becomes: why doesn't the kernel upgrade perform the necessary postinstall script?

From:(Anonymous)
Date:February 13th, 2010 10:23 pm (UTC)

A second thank you

(Link)
An aside: it is unnecessary to rerun the rpm install scripts after fixing /etc/fstab. One only needs to run mkinitrd on the updated kernel module that was installed in /lib/module e.g.

$ /sbin/mkinitrd /boot/initrd-#.#.##-##.fc#.i586 #.#.##-##.fc#.i586