[kwlug-disc] Media errors on a USB disk

Khalid Baheyeldin kb at 2bits.com
Sat Oct 23 21:14:19 EDT 2010


So, here is an update.

I ran the e2fsck -c -y on the the disk (1TB), still in its USB enclosure.

One thing I noticed is that it complained about the bad blocks inode being
shared by another file. Should I be concerned about this? Or has it been
fixed by fsck?

Also, it took a long time. I know I can take the disk out of the enclosure
(with some tinkering, this USB enclosure is not designed to be opened), but
I have reasons not to for the time being.

real    894m38.018s
user    0m24.200s
sys     2m0.580s

Output follows:

# time e2fsck -c -y /dev/sdb1
e2fsck 1.40.8 (13-Mar-2008)
Checking for bad blocks (read-only test): done
/dev/sdb1: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes

Running additional passes to resolve blocks claimed by more than one
inode...
Pass 1B: Rescanning for multiply-claimed blocks
Multiply-claimed block(s) in inode 24584: 22131200 22131202 22131203
22131204 22131205 22131206 22131207 22131209 22131210 221
31211 22131212 22131213 22131214 22131215 22131217 22131218 22131219
22131220 22131221 22131222 22131223 22131225 22131226 221
31227 22131228 22131229 22131230 22131231 22135426 22135616
Pass 1C: Scanning directories for inodes with multiply-claimed blocks
Pass 1D: Reconciling multiply-claimed blocks
(There are 1 inodes containing multiply-claimed blocks.)

File /blah.tar.gz (inode #24584, mod time Sun Oct 17 03:33:27 2010)
  has 30 multiply-claimed block(s), shared with 1 file(s):
        <The bad blocks inode> (inode #1, mod time Fri Oct 22 09:32:48 2010)
Clone multiply-claimed blocks? yes

Error reading block 22131207 (Attempt to read block from filesystem resulted
in short read).  Ignore error? yes

Force rewrite? yes

.....

Error reading block 22131230 (Attempt to read block from filesystem resulted
in short read).  Ignore error? yes

Force rewrite? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #1 (30120, counted=30090).
Fix? yes

Free blocks count wrong for group #675 (12, counted=42).
Fix? yes


/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdb1: 41454/61054976 files (1.5% non-contiguous), 86439039/244190008
blocks

The other disk is still running the same procedure above, on another PC with
less cores and lower speed.
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20101023/30c7ead7/attachment.htm>


More information about the kwlug-disc mailing list