# fsck.ext4 -fn tmp/deploy/images/custom-image-custom.ext4.ext4
e2fsck 1.42.7 (21-Jan-2013)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'mtd7' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd4' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'fb0' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd5' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty6' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'random' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd1' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'urandom' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'zero' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'null' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'kmsg' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'kmem' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd6' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty7' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty4' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'apm_bios' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty5' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd0' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty0' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'ttySA0' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mem' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd2' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty8' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'console' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'ttyS0' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty2' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'mtd3' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty1' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Entry 'tty3' in /dev (2739) has an incorrect filetype (was 4, should be 3).
Fix? no
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Inode 774 ref count is 9, should be 10. Fix? no
Pass 5: Checking group summary information
tmp/deploy/images/custom-image-custom.ext4.ext4: ********** WARNING: Filesystem still has errors **********
tmp/deploy/images/custom-image-custom.ext4.ext4: 3899/21336 files (0.5% non-contiguous), 131042/169656 blocks
# dmesg | grep EXT4-fs
EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-machine: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-machine: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-journal: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs (sda2): re-mounted. Opts: (null)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-journal: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-journal: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-journal: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #883: comm systemd-journal: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #810: comm login: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
EXT4-fs error (device sda2): ext4_ext_check_inode:467: inode #810: comm sshd: bad header/extent: invalid magic - magic 0, entries 0, max 0(0), depth 0(0)
# systemctl --failed | cat
UNIT LOAD ACTIVE SUB DESCRIPTION
machineid.service loaded failed failed Machine ID first boot configure
systemd-journald.service loaded failed failed Journal Service
systemd-journald.socket loaded failed failed Journal Socket
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
3 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
I am booting kernel with rootfstype=ext4. IMAGE_FSTYPES = "ext4".