Frage

I have been trying to find out fsck code. I cannot find it in the coreutils package in Ubuntu. Could someone please let me know, where I would be able to take a look at the fsck code?

War es hilfreich?

Lösung

fsck has several implementations depending on used file system. For ext2/ext3/ext4 you need "e2fsprogs" package in Ubuntu.

Try:

sudo apt-get source e2fsprogs

Andere Tipps

fsck utility is a part of "util-linux" package. The sources of "util-linux" can be downloaded from https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/

fsck calls specific utility dependent on fs type: fsck.minix, fsck.ext4, fsck.nfs, fsck.exfat, fsck.ext4dev, fsck.cramfs, fsck.ext3, fsck.fat, fsck.vfat, fsck.msdos, fsck.ext2.

e2fsprogs package includes fsck.ext2, fsck.ext3, fsck.ext4 and multi-utility fsck. If fsck checks vfat fs and fsck.vfat is not presented in system, fsck can not work.

dosfs package includes fsck.fat and symlinks: fsck.msdos and fsck.vfat to fsck.fat

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top