[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tune2fs ext2 -> ext3



On Sat, Jan 25, 2003 at 09:08:50AM +0000, Dave Selby wrote:
[...]
| I dont get the bit about
| 
| touch /forcefsck ????
| 
| touch changes the file timestamps ?

Yes, that's right.  (and it creates the file if it doesn't exist)

| I cant find a reference to forcefsck in its man or info pages. Is it
| a switch of some kind ?

Read the source :-).  (/etc/rcS.d/S30checkfs.sh)

# near beginning
    if [ -f /forcefsck ]
    then
        force="-f"
    else
        force=""
    fi


# at end
rm -f /forcefsck

| I can understand doing a fsck, but this command sequence has thrown me !!
| 
| Can anyone shed light ??

The startup script that runs fsck if necessary will set the "force"
flag if that file exists.  Then it removes the file so a check isn't
forced at the next reboot.

-D

-- 
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.
        Albert Einstein
 
http://dman.ddts.net/~dman/

Attachment: pgprXfxCtBgzG.pgp
Description: PGP signature


Reply to: