Fsck on fs-in-file

I have a filesystem in a file (data.4fs). I would like to run (need to run!) fsck on it but cannot work out how.

I can mount the file manually by creating a directory as a mount mount and then mounting it to there. But when mounted, I can’t run fsck. When unmounted, if I type

fsck data.4fs

I get the standard usage message.

How can I pass the filesystem to fsck in a way it understands?

1 Like

Use the full path to the file.

1 Like

Thanks. That works correctly.

It would really help the community if you could share with us which specific command you used to resolve this issue.

Additionally, please mark the relevant post as the solution since this also helps other users.

Thanks

2 Likes