Summary: | fsck requires fsck.vfat to check ext3 file system. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jakob Schiotz <schiotz> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | minor | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jakob Schiotz
2005-02-08 02:03:40 UTC
*** Bug 81239 has been marked as a duplicate of this bug. *** does it work with e2fsprogs-1.38 ? Unfortunately, yes: # fsck -t ext3 /dev/sda1 fsck 1.38 (30-Jun-2005) fsck: fsck.vfat: not found fsck: Error 2 while executing fsck.vfat for /dev/sda1 # e2fsck /dev/sda1 e2fsck 1.38 (30-Jun-2005) LinuxBackup: clean, 1603786/15826944 files, 21780668/31631977 blocks I just reread the man page of fsck[*], and the -t option does not specify the type of the file system, but limits fsck to only check file systems of this type. fsck gets the file system type from /etc/fstab, if no line is found in fstab it uses -t to guess the type of the filesystem. In my case I have these two lines in my /etc/fstab, the first for my USB memory stick, the second for the external harddisk I use for backup: /dev/sda1 /mnt/usb vfat noauto,user,sync 0 0 LABEL=LinuxBackup /mnt/usb_backup ext3 noauto,user 0 0 But still, fsck should not call fsck.vfat, as the -t ext3 should prevent it from testing a vfat file system. /Jakob [*] Quoting the man page: Normally, the filesystem type is deduced by searching for filesys in the /etc/fstab file and using the corresponding entry. If the type can not be deduced, and there is only a single filesystem given as an argument to the -t option, fsck will use the specified filesystem type. If this type is not available, then the default file system type (currently ext2) is used. well the manpage actually indicates that the behavior you're seeing is correct ... it says it will use the /etc/fstab value and *only* if nothing can be found in /etc/fstab to match the request will -t be honored ... Yep, after rereading the man page, I am forced to agree. It is broken as designed. :-) |