fsck.ext2: Is a directory while trying to open /
Hi,all
I want to enable check root filesytem during boot ,the following code complete the task fsck -y -C / ( /dev/sda3 is root) it failed ,the log message: fsck.ext2: Is a directory while trying to open / The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> if i add /dev/sda3 / ext3 default 1 1 everything looks well why? thanks |
Two things:
|
Quote:
1) but /dev/sda3 already mounted / 2) before fsck filesystem,already mount filesystem ro in fact ,in most popular linux distro,the script is checkfs.sh |
So I don't understand what the problem is exactly.
If you just want to use the standard checks, set up fstab accordingly and use tune2fs or a similar tool to set the time between checks (or the number of mounts). If that's not it, how, when and from where are you running that fsck command? PS. I don't think that the fact that it's mounted in / is relevant. fsck still works over device nodes, and not over mountpoints/dirs. |
I'm not so sure you can run fsck.ext2 on an ext3 filesystem.
|
All the ext?.fsck are symlinks to e2fsck usually. Ext2/3 is basically the same fs, just that ext3 uses a journal to keep track of the operations.
|
Quote:
|
All times are GMT -5. The time now is 09:55 AM. |