Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!mailrus!ames!killer!vector!rpp386!pigs!haugj From: haugj@pigs.UUCP (John F. Haugh II) Newsgroups: comp.unix.xenix Subject: Re: SCRATCH FILE [for fsck] Message-ID: <434@pigs.UUCP> Date: 27 Sep 88 17:16:11 GMT References: <7188@well.UUCP> <88@infopro.UUCP> <574@vector.UUCP> Reply-To: haugj@pigs.UUCP (John F. Haugh II) Distribution: na Organization: Precision Information, Dallas, TX Lines: 30 In article <574@vector.UUCP> chip@vector.UUCP (Chip Rosenthal) writes: >In article <88@infopro.UUCP> david@infopro.UUCP (David Fiedler) writes: >>From article <7188@well.UUCP>, by dave@well.UUCP (Dave Hughes): >>> How can I get [fsck] to automatically get past the prompt for a SCRATCHFILE >>How about changing the appropriate entry in /etc/default/filesys to add >>something like "-t /tmp/scratch"? > >Be careful. This won't work when you fsck the filesystem which contains >/tmp/scratch. Assuming that /tmp isn't a seperate filesytem and your >root filesystem isn't large, then /tmp/scratch will work. Otherwise, a >better way would be to create a small device with divvy called /dev/scratch >and use that instead. what about the RAM disks? you can use one of the non-lingering RAM disks for this function. the manual describes how to create the device node for a ram disk of the desired size and lifetime. you don't want one of the "forever" ramdisks since you presumably want the memory when fsck is done with it ... > Unfortunately, I don't remember how large this i believe a good rule of thumb is 1K (two xenix blocks) per MB. this changes if you have a large number of inodes in the file system, such as a news partition might have. -- =-=-=-=-=-=-=-The Beach Bum at The Big "D" Home for Wayward Hackers-=-=-=-=-=-= Very Long Address: John.F.Haugh@rpp386.dallas.tx.us Very Short Address: jfh@rpp386 "ANSI C: Just say no" -- Me