Fsck output does not match tutorials...

Jon LaBadie ubu at labadie.us
Sat Mar 26 19:29:49 UTC 2022


On Sat, Mar 26, 2022 at 08:16:33AM +0100, Bo Berglund wrote:
>On Tue, 22 Mar 2022 17:45:36 -0500, Keith <keith at caramail.com> wrote:
>
...
>>>
>>> sudo fsck -N /dev/sda2
>>> fsck from util-linux 2.33.1
>>> [/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 /dev/sda2
>>>
>>
>>sudo fsck.ext4 -n -v -f /dev/sda2
>>

Just an FYI regarding invoking fsck.  Fsck starts
by analyzing the type of file system on the device
you specify then calls another program to do the
actual work.  For example, on my system there are
these entries in /usr/sbin.

fsck
fsck.btrfs
fsck.cramfs
fsck.exfat
fsck.ext2
fsck.ext3
fsck.ext4
fsck.fat
fsck.hfs
fsck.hfsplus
fsck.minix
fsck.msdos
fsck.ntfs
fsck.vfat
fsck.xfs

While the specific fsck versions can be invoked
directly it is seldom necessary.

Fsck also checks that the options you specify
are valid for the FS type on the device.

-- Jon H. LaBadie                 ubu at labadie.us





More information about the ubuntu-users mailing list