Re: What causes bad inodes?



On Sun, Mar 09, 2008 at 03:59:45PM +0000, postid wrote:
For the second time in a month I got an error message
indicating bad inodes and had to fsck manually.

I've had bad inodes before not long after a failure to load
my PCMCIA modem (which resulted in endless error messages on
boot) and before I knew alt sysrq-r -s -e -i -u -b and had
shut down by shutting down the power. I've had the modem
problem once about a week ago and rebooted with RSEIUB.
Oh yes, and about a week ago I was trying a USB stick and
the machine froze and I did an RSEIUB.

This time the machine froze in KDE, so I did RSEIUB. Upon
rebooting, I got "Inodes that were part of a corrupted orphan linked
list found" and got the suggestion to run fsck manually.
That resulted in "Inode 820174 was part of the orphan inode
link. Fix?" and a few saying the same for some other inodes.

It then asked permission to fix a deleted inode with zero
dtime, clear an unattached zero-length inode, fix inode bitmap
differences, and fix a wrong inodes count for group #50.

Any ideas as to what causes such problems? Is it that PCMCIA
loading problem, my hard drive dying, an OS problem or
a software problem?

The magic keystrokes just sync the disks, they do not unmount the
filesystems. Thus, things can become corrupted. If it were me, after
such a reboot, I'd come up in init=/bin/sh and run fsck manually.

Ideally, you'd use ext3 with data=journal. That way, syncing the disks
will get the data _somewhere_ on the disk so that replaying the journal
in a normal boot fsck would set things right.

Well, ideally, the system should be stable enough not to need a reboot.
If this is Etch, check for bug reports.

If the hard drive is dying, there should be some errors in
/var/log/syslog. Also, install smartmontools so that you can check the
S.M.A.R.T. data on the drives. If smart tells you that the drive is
failing then believe it. If it tells you that everything is fine, take
it with a grain of salt. Always have good backups.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • find issue led to possible fsck bug
    ... in your filesystem driver. ... I recommended they run fsck on the file systems to identify and fix any ... Free inodes count wrong ...
    (Fedora)
  • Testing 6.10 Beta CD -- Problem resizing EXT3 partition
    ... How can I fix this? ... Scanning directories for inodes with multiply-claimed blocks ... needed is more progress info like a text box showing ...
    (Ubuntu)
  • Re: 2.6.18-mm2: ext3 BUG?
    ... Checking inodes, blocks, and sizes ... Fix? ... Pass 5: Checking group summary information ... Free blocks count wrong for group #3 ...
    (Linux-Kernel)
  • Raid 10 Problems?
    ... Created a software raid 10 array. ... fix. ... Checking inodes, blocks, and sizes ...
    (Linux-Kernel)
  • Re: 2.6.18-mm2: ext3 BUG?
    ... The usual diagnosis for this sort of thing is "your disk shat ... Checking inodes, blocks, and sizes ... Fix? ... Free blocks count wrong for group #3 ...
    (Linux-Kernel)