Hi --
--- In "Anouk Ahamitet" <>
wrote:
>
> Every time I cycle power (or disconnect the USB memory stick) it
seems
> to reset the time of the last fsck to over 49,000 days ago (that's
> sometime in the late 1800s, by the way). It seems that everything
> I
> write to the disk is saved (and yes, I'm always careful to either
> shutdown the system, or at least umount the USB before
disconnecting it).
This is correct, if you do not have a battery backed RTC (although
usually it goes to something like 1-Jan-1969). When the drive is
fsck'd on startup, you don't have a valid system time/date yet, so
the wrong (earlier) 'last checked' date is written to the FS at the
end of the fsck.
Check this, and fix it, with the tune2fs command. You could, for
example, do: "tune2fs -T now /dev/yourdevice" after you unmount the
USB stick, when you _do_ have a valid system date. This will write
the valid time in the ext2 metadata.
Or you could simply do: "tune2fs -i 0 /dev/yourdevice", which will
disable the time based fsck'ing on mount. If you do this, you
should still keep a fsck trigger based on number of mounts though,
instead.
> Also, while I'm here, I see these three mysterious 'find' warnings
> when I run "sh loadUSB.sh" and am wondering if anyone can point me
> the right place to fix them:
>
> find: warning: you have specified the -maxdepth option after a
> non-option argument -perm, but options are not positional
(-maxdepth
> affects tests specified before it as well as those specified after
> it). Please specify options before other arguments.
Sorry, no idea. Maybe start by looking at loadUSB.sh, and see what
is called 3 times?
Regards, ....... Charlie
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|