shevett@mccc.uucp (dave shevett) (09/05/89)
Grumble, grr growl - Remember a while back when John Hood mentioned a HD problem? Well, that was my hd that went out. We reformatted and piled all 45 meg or so back on, and now I got another problem. Symptoms: At poweron, the ol 'Main board P3..P5' comes up just fine, BUT, just after that, the drive makes a sound like HALF a calibration. The head sounds like it homes, but does not return to the original track. I've NEVER heard that happen. Anyway, I start figuring a bad sector right in th the kernel, so I bring up my floppy system, and take a look at the HD. I can read everything, run things, etc - BUT - 'df' reports something like 11875 blocks, 0 i-nodes. Great. So I delete some files (rm rm rm rm rm) and do another 'df'. NOTHING happens (the # prompt returns). I reboot, using the floppies, and do a df again. 14772 blocks, 0 i-nodes. (!!!!) I figure the superblock is trashed, and I'd like to run an fsck on it, forcing a rebuild of the freelist - HOW DO I DO IT? I can't just do fsck -(cant remember option) /dev/fp002 - it says 'Mounted file system. Ignored'). I can't umount it - don't have fsck on a workable floppy (I think). I have TONS of stuff on this drive i need to get onto disk. Misc info: Upc, 1.5 meg RAM, Combo board, external 67meg Miniscribe HD (DEC RD53). /------------\ /-----------------\ /---------------------\ Dave Shevett shevett@mccc.UUCP Mercer County College
jcm@mtunb.ATT.COM (was-John McMillan) (09/06/89)
In article <1989Sep5.163304.12673@mccc.uucp> shevett@mccc.UUCP (Dave Shevett) writes: : >can read everything, run things, etc - BUT - 'df' reports something like >11875 blocks, 0 i-nodes. Great. So I delete some files (rm rm rm rm rm) >and do another 'df'. NOTHING happens (the # prompt returns). I reboot, >using the floppies, and do a df again. 14772 blocks, 0 i-nodes. (!!!!) > >I figure the superblock is trashed, and I'd like to run an fsck on it, >forcing a rebuild of the freelist - HOW DO I DO IT? I can't just do >fsck -(cant remember option) /dev/fp002 - it says 'Mounted file system. >Ignored'). I can't umount it - don't have fsck on a workable floppy (I >think). : Puzzlement: it sounds like you booted floppy FS then examined disk, but don't know how to FSCK that disk? I think I'm missing something, but I'll presume not... so... 1) Boot from Floppy. (DELETE-key out of installation script upon 1st question.) 2) ls /mnt a) If /mnt directory is empty, then mount HD. mount /dev/fp002 /mnt b) If /mnt directory is NOT empty, then presumably the HD is mounted. (Some releases left it one way, some the other.) 3) Run FSCK: /mnt/etc/fsck -y -s /dev/rfp002 <-my style: I hate typing 'y' - or - /mnt/etc/fsck -s /dev/rfp002 <-for those not trusting -y ^ +--- note the RAW disk reference. 4) reboot w/o synch-ing Note: you shoulda run: df -t <- rather than 'df' 'df -t' woulda toldja how MANY inodes were declared to exist on disk -- a question when you're wondering about a corrupted HD. Please inform us of the results -- we're inquiring mynds... john mcmillan -- att!mtunb!jcm -- speaking for SELF, not AT&T