[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#767471: [initramfs-tools] / formatted as ext3 but mounted as ext4 not fsck-able



I ran into the inverse situation: my /etc/fstab said ext3, but at runtime the initramfs looked for /sbin/fsck.ext4, and couldn't find it.

Perhaps instead of special-casing ext3/ext4, it might be better to make it use 'fsck -N' (or equivalent) to discover which fsck backend will be used at runtime?

In the event my system booted successfully anyway, apparently due to other things being broken:

[    1.849317] sr0: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    1.851592] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.860545] sr 1:0:0:0: Attached scsi generic sg0 type 5
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... [ 2.406902] device-mapper: uevent: version 1.0.3 [ 2.408440] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/mapper/deodand2-droot2
fsck exited with status code 8
done.
Failure: An automatic file system check (fsck) of the root filesystem failed.
A manual fsck must be performed, then the system restarted.
The fsck should be performed in maintenance mode with the
root filesystem mounted in read-only mode.
Warning: The root filesystem is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance, press CONTROL-D
to terminate the maintenance shell and restart the system.
sulogin: cannot open password database!
[ 4.700827] sulogin[132]: segfault at 4 ip 080491f6 sp bfcec4b0 error 4 in sulogin[8048000+3000]
Segmentation fault
Failure: Attempt to start maintenance shell failed.
Will restart in 5 seconds.
[ 9.730265] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[ 9.970645] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    9.975644] systemd[1]: Detected virtualization 'kvm'.
[    9.977548] systemd[1]: Detected architecture 'x86'.

Welcome to Debian GNU/Linux 8 (jessie)!

[   10.054678] systemd[1]: Inserted module 'autofs4'
[   10.059954] systemd[1]: Set hostname to <deodand>.
[ 10.142457] systemd-default-display-manager-generator[158]: No default display manager unit service enabled, setup is manual or a sysvinit file [ 10.384669] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   10.391105] systemd[1]: Expecting device dev-ttyS0.device...
         Expecting device dev-ttyS0.device...

ttfn/rjk


Reply to: