Re: confused Re: running fsck out of a script; drive never shows being checked

2004-06-09 Thread Silvan
On Wednesday 09 June 2004 10:59 am, Alvin Oga wrote: > > It isn't mounted normally. It isn't mounted before fscking it. > > good... but i'd add the umount to the script, just to make sure > nothing breaks We, I guess yes, that's not a bad plan, just in case. Instead of relying on the previ

Re: running fsck out of a script; drive never shows being checked

2004-06-09 Thread CW Harris
On Tue, Jun 08, 2004 at 08:51:51PM -0400, Silvan wrote: > I'm wondering if I'm missing the point of something somehow. > > I have a script that fscks hdb, then mounts it and makes a backup of hda. I > run this as a nightly cron job, and it mails me a report every morning. > > The associated bit

confused Re: running fsck out of a script; drive never shows being checked

2004-06-09 Thread Alvin Oga
hi ya silvan On Tue, 8 Jun 2004, Silvan wrote: > On Tuesday 08 June 2004 09:06 pm, Alvin Oga wrote: > > That's 'cuz it's fsck, not fdisk. :P aint it fun, dumb of me, to look at the man pages of fdisk and talk about e2fsck :-) .. had a good night sleep afterward tho > So I should swap fsck

Re: running fsck out of a script; drive never shows being checked

2004-06-09 Thread Michael Graham
Silvan wrote: > > So I'm thinking it's some side effect of running fsck inside that if > statement like that. Nope. > I'd like the technical explanation for what and why. It doesn't seem > to actually have any adverse effect, but it's mildly annoying. The technical explanation is: man e2fsck

Re: running fsck out of a script; drive never shows being checked

2004-06-08 Thread Silvan
On Tuesday 08 June 2004 09:06 pm, Alvin Oga wrote: > > if ! (fsck -n /dev/hdb2); then > > - i've never seen the -n option for fdisk .. That's 'cuz it's fsck, not fdisk. :P Ah. Actually, you could be onto something there. I call fsck in the script, relying on it to pass on control to e2fsck,