Operating System - Linux
1832262 Members
2881 Online
110041 Solutions
New Discussion

Re: xfs bad block error....

 
K.C. Chan
Trusted Contributor

xfs bad block error....

All,
I am getting this:

xfs_repair: read failed: Input/output error
cannot read inode 3346368, disk block 1673184, cnt 32

Is there a way to mark this as bad block and move on?
Reputation of a thousand years can be determined by the conduct of an hour
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: xfs bad block error....

XFS does not support badblocks, SCSI disks should mark bad blocks automatically, but IDE disks won't do that.

From the xfs_repair man page:

xfs_repair aborts on most disk I/O errors. Therefore, if you are trying to repair a filesystem that was damaged due to a disk drive failure, steps should be taken to ensure that all blocks in the filesystem are readable and writeable before attempting to use xfs_repair to repair the filesystem. A possible method is using dd(8) to copy the data onto a good disk.


If you are using IDE dissk, ext3 is better. Ext3 supports badblocks.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
K.C. Chan
Trusted Contributor

Re: xfs bad block error....

fyi, this is a firewire drive.
Reputation of a thousand years can be determined by the conduct of an hour
Florian Heigl (new acc)
Honored Contributor

Re: xfs bad block error....

K.C. - the interface iis firewire, but the disk inside surely is IDE ;)
yesterday I stood at the edge. Today I'm one step ahead.
Raj D.
Honored Contributor

Re: xfs bad block error....

Hi Chan ,

Seems your disk got few bad blocks.
any luck running ./xfs_repair .

Cheers,
RajD.
" If u think u can , If u think u cannot , - You are always Right . "