[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: disconnected drive: Data corruption using a 2.6 kernel



Hey there,

tried to reformat the disk using parted's mkpartfs (ext3 this time) today. Didn't work, though -- at least not on the 2.6 kernel. When parted said it couldn't read/write to the drive, I had a look at dmesg and it resemble yesterday's errors (see below). I figured the drive is seriously damaged, as in... broken sectors. But here comes the interesting part: After rebooting the Qube to 2.4.27, I did the same procedure as described above -- and, well, parted formatted the drive without any complaints.
Any ideas?

Thanks,
Daniel


Daniel Rheinbay schrieb:
Hey guys,

during the course of the day *somebody* disconnected the USB2 drive from my qube. I couldn't remount it, so I rebooted the Qube and tried again. It worked at first, but while SFTPing data off the disk, the drive was unexpectedly unmounted. Here comes the relevant stuff from dmesg piped thru uniq:
---snip---
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
usb 3-1: reset high speed USB device using ehci_hcd and address 2
usb 3-1: device not accepting address 2, error -145
usb 3-1: USB disconnect, address 2
sd 0:0:0:0: scsi: Device offlined - not ready after error recovery
sd 0:0:0:0: SCSI error: return code = 0x10000
end_request: I/O error, dev sda, sector 710135
sd 0:0:0:0: rejecting I/O to device being removed
sd 0:0:0:0: SCSI error: return code = 0x10000
end_request: I/O error, dev sda, sector 710279
sd 0:0:0:0: rejecting I/O to device being removed
Buffer I/O error on device sda1, logical block 18
lost page write due to I/O error on sda1
usb 3-1: new high speed USB device using ehci_hcd and address 3
0:0:0:0: rejecting I/O to dead device
usb 3-1: device not accepting address 3, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 5
usb 3-1: device not accepting address 5, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 7
usb 3-1: device not accepting address 7, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 9
0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT2-fs error (device sda1): ext2_get_inode: unable to read inode block - inode=13, block=18
usb 3-1: device not accepting address 9, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 11
usb 3-1: device not accepting address 11, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 13
0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT2-fs error (device sda1): ext2_readdir: bad page in #2
usb 3-1: device not accepting address 13, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 15
usb 3-1: device not accepting address 15, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 17
usb 3-1: device not accepting address 17, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 19
0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT2-fs error (device sda1): ext2_get_inode: unable to read inode block - inode=2, block=18
usb 3-1: device not accepting address 19, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 21
usb 3-1: device not accepting address 21, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 23
usb 3-1: device not accepting address 23, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 25
usb 3-1: device not accepting address 25, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 27
usb 3-1: device not accepting address 27, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 29
usb 3-1: device not accepting address 29, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 31
usb 3-1: device not accepting address 31, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 33
usb 3-1: device not accepting address 33, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 35
usb 3-1: device not accepting address 35, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 37
usb 3-1: device not accepting address 37, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 39
usb 3-1: device not accepting address 39, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 41
usb 3-1: device not accepting address 41, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 43
usb 3-1: device not accepting address 43, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 45
usb 3-1: device not accepting address 45, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 47
0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT2-fs error (device sda1): ext2_readdir: bad page in #2
usb 3-1: device not accepting address 47, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 49
usb 3-1: device not accepting address 49, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 51
0:0:0:0: rejecting I/O to dead device
Buffer I/O error on device sda1, logical block 0
lost page write due to I/O error on sda1
EXT2-fs error (device sda1): ext2_get_inode: unable to read inode block - inode=2, block=18
usb 3-1: device not accepting address 51, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 53
usb 3-1: device not accepting address 53, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 55
usb 3-1: device not accepting address 55, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 57
usb 3-1: device not accepting address 57, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 59
usb 3-1: device not accepting address 59, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 61
usb 3-1: device not accepting address 61, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 63
usb 3-1: device not accepting address 63, error -145
usb 3-1: new high speed USB device using ehci_hcd and address 65
usb 3-1: device not accepting address 65, error -145
---snap---

Remounting the drive didn't work this time either, so I rebooted the Qube once more and ran e2fsck -p -v, which returned
---snip---
/dev/sda1 was not cleanly unmounted, check forced.
Error reading block 530 (Attempt to read block from filesystem resulted in short read). /dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
       (i.e., without -a or -p options)

---snap---

Obediently I fired up e2fsck manually -- after yet anoter reboot. This time, I was confronted with
---snip---
e2fsck 1.37 (21-Mar-2005)
/dev/sda1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 21790746 (Attempt to read block from filesystem resulted in short read) while doing inode scan. Ignore error<y>? no

Error while scanning inodes (10895616): Can't read next inode
e2fsck: aborted
---snap---

I guess the filesystem is messed up, right? Because of that moron who disconnected the external drive while it was running? I dunno. You decide whether it is 2.6kernel-related or not. I guess I'll stick with reformatting the drive.

I thought this report just sorta belonged to what I submitted earlier today.


Thanks,
Daniel

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: