Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!tuvie!vmars!hp From: hp@vmars.tuwien.ac.at (Peter Holzer) Newsgroups: comp.os.minix Subject: Re: Desperate help needed with my hard disk Message-ID: <2365@tuvie.UUCP> Date: 6 Mar 91 09:46:45 GMT References: <45942@nigel.ee.udel.edu> Sender: news@tuvie.UUCP Lines: 30 cechew@sol1.cs.monash.edu.au (Earl Chew) writes: >greg@viewlogic.com (Gregory Larkin) writes: >>related question: say I have 3 HD partitions mounted. I log out. Is >> it safe to reboot at this time, or must all >> partitions be umounted first? >No. You must sync all file systems before rebooting. I also unmount all file >systems before sync(). If I remember correctly the main loop of init contains a sync () just after the wait (). So the disks are synced every time you log out (and also every time a process exits whose parent does not exist anymore). That reminds me of a problem I recently had (well I still have it, but I am ignoring it). When I ran fsck on my root partition, it discovered a few inodes with NLINKS != COUNT. The inodes are not referenced in any directory, and when I ran fsck repeatedly with -a, both NLINKS and COUNT were decremented by 24 (mod 256) each time. Any ideas? -- | _ | Peter J. Holzer | Think of it | | |_|_) | Technical University Vienna | as evolution | | | | | Dept. for Real-Time Systems | in action! | | __/ | hp@vmars.tuwien.ac.at | Tony Rand |