Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to erase corrupt files?

Status
Not open for further replies.

svar

Programmer
Aug 12, 2001
349
GR
I am left with some files that even root cannot access as a result of some probably HW problem.(Linux 2.4.0)
The question is how to get rid of them?
even root does not have permissions to even ls -l them
I tried fsck -t reiserfs /var/lib/mysql
but no luck (fsck.reiserfs not found)
Thanks, svar

Oct 19 21:59:56 quality4 /usr/sbin/cron[746]: (CRON) STARTUP (fork ok)
.....
Oct 19 22:00:32 quality4 PAM-unix2[1063]: session started for user root, service su
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956701 0x0 SD]
Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956701) not found
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956700 0x0 SD] Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956701) not found
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956700 0x0 SD]
Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956700) not found
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-5657: reiserfs_do_truncate: i/o failure occured trying to truncate [41 956699 0xffffffff DIRECT]
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956704 0x0 SD]
Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956704) not found
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956703 0x0 SD]
Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956703) not found
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956702 0x0 SD]
Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956702) not found
Oct 19 22:01:57 quality4 kernel: is_tree_node: node level 29543 does not match to the expected one 1
Oct 19 22:01:57 quality4 kernel: vs-5150: search_by_key: invalid format found in block
251193. Fsck?
Oct 19 22:01:57 quality4 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [41 956705 0x0 SD]
Oct 19 22:01:57 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956705) not found
Oct 19 22:05:00 quality4 /USR/SBIN/CRON[1107]: (root) CMD ( test -x /usr/sbin/texpire && /usr/sbin/texpire)
Oct 19 22:06:13 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956701) not found
Oct 19 22:06:18 quality4 kernel: vs-13048: reiserfs_iget: bad_inode. Stat data of (41 956701) not found
Oct 19 22:13:26 quality4 PAM-unix2[1063]: session finished for user root, service su
Oct 19 22:13:29 quality4 PAM-unix2[801]: session finished for user spiros, service xdm
Oct 19 22:13:30 quality4 kernel: apm: set display: Power management disabled
Oct 19 22:13:36 quality4 kerne
 
Hi,

Its actually /sbin/reiserfsck so you can create a symlnk as follows & try again :

ln -s /sbin/reiserfsck /sbin/fsck.reiserfs

Regards
 
Thanks, this worked, but fsck seems to have failed
I tried

reiserfsck --rebuild-tree /dev/vg0/varnew

and after a long time of printing
[fccc000] etc to the screen it stopped

I rebooted and it sais that fsck.reiserfs on /dev/sdc6 (i.e. /)
failed(status ff) Run it manually

froot is mounted read only
use bash# mount -n -o reount,rw /

then I tried fsck -t reiserfs /dev/sdc6
and it always says this contais a mounted fs,
that fsck.reiserfs on /dev/sdc6 (i.e. /)
failed(status ff) Run it manually

and run it manually
fsck.

what should I do?

Thanks, svar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top