09-16-2020 08:57 AM
I am trying to install fsck in order to repair the FS
I found Install fsck
but I get an error fsck: fsck.auto: No such file or directory;
Borad Type :The board is Zynq UltraScale+ MPSoC.
09-16-2020 10:52 AM
fsck.auto is a helper that determines the type of filesystem, and then calls a filesystem-specific checker. This is a convenience, but it is not actually necessary, if you know the type of filesystem.
eg. it may be FAT or VFAT for older DOS filesystem, NTFS for newer windows formatted partition, or it may be ext2/3/4 for a linux rootfilesystem. There are others of course.
For each there is a specific checker that you can call directly. Here are some possible examples:
09-16-2020 11:11 AM
Well, fsck (and fsck.auto) will eventually call the utilities I mentioned. So you'll need them one way or the other.
The fsck utility itself can be enabled with "petalinux -c rootfs" then Filesystem Packages --> base --> util-linux --> util-linux-fsck. I guess you have this, and it's the the one giving you the error about "fsck.auto missing".
The fsck.ext2 / fsck.ext3 / fsck.ext4 are part of the e2fsprogs-e2fsck package. Run "petalinux -c rootfs" and check in Filesystem Packages --> base --> e2fsprogs --> e2fsprogs-e2fsck
The ones for FAT/VFAT come from the dosfstools package... which for some reason does not seem to be in Petalinux (perhaps I missed it, or it is under a different name).
09-16-2020 12:20 PM
Right, for vfat you need to add the dosfstools package. I've not tried it, but there is an older post about this:
09-16-2020 12:44 PM
Oh, we've gone full circle
By "didn't work" do you mean: did you get an error building it? Or did it seem to succeed, but there was no fsck.vfat produced?
Also, which version of Petalinux are you using, might help so we can try and reproduce...
09-17-2020 05:49 AM