I'm working on a ppc based embedded system, and am using a compact
flash based filesystem.
When I created the filesystem I ran: tune2fs -c 1 <device location>
My /etc/fstab looks like this:
# <file system> <mount point> <type> <options> <dump> <pass>
rootfs / rootfs rw 0 1
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
tmpfs /dev/shm tmpfs rw 0 0
But for some reason I keep getting: "EXT2-fs warning: mounting
unchecked fs, running e2fsck is recommended"
and my filesystem doesn't auto-run the fsck (e2fsck) utiliy - WHY?
WHAT AM I DOING WRONG?
Thanks in advance,
Lenny.
How should the filesystem itself do that?
jbe
You need to do a 'tune2fs -c 0' (I think) on the CF after you do a
mke2fs, to turn off checking.
G
OK, I guess I understand the problem...
But, alas, how can I force the auto-check to run every XXX mounts?
The warning is received before the root fs is mounted - so there must
be a way:
"EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 132k init"
Thanks again,
Itamar.
shutdown -F is supposed to force fsck on the next reboot.
> On Aug 11, 4:34 pm, Juergen Beisert <jbeis...@netscape.net> wrote:
>> lennyk430 wrote:
>> > I'm working on a ppc based embedded system, and am using a compact
>> > flash based filesystem.
>> > When I created the filesystem I ran: tune2fs -c 1 <device location>
>> > My /etc/fstab looks like this:
>> > # <file system> <mount point> <type> <options> <dump> <pass>
>> > rootfs / rootfs rw 0 1
>> > proc /proc proc defaults 0 0
>> > sysfs /sys sysfs defaults 0 0
>> > devpts /dev/pts devpts defaults 0 0
>> > tmpfs /dev/shm tmpfs rw 0 0
>>
>> > But for some reason I keep getting: "EXT2-fs warning: mounting
>> > unchecked fs, running e2fsck is recommended"
>> > and my filesystem doesn't auto-run the fsck (e2fsck) utility
>>
>> How should the filesystem itself do that?
>>
>> jbe
>
> OK, I guess I understand the problem...
> But, alas, how can I force the auto-check to run every XXX mounts?
Run always (every boot) e2fsck on this partition. If the filesystem is clean
it returns immediately, if not it will check and repair it. After XXX
mounts (using the tune2fs tool to setup this count) it forces a whole check
automatically, even if the filesystem is was marked clean.
Don't forget to mount the rootfilesystem as *read only* from kernel's side,
to run e2fsck on it. After e2fsck has done its job, remount "/" with write
permissions.
> The warning is received before the root fs is mounted - so there must
> be a way:
Not "before", this warning occures while mounting.
jbe
well, hope this helps
ys