Package: linux-image-3.12-1-amd64 Version: 3.12.8-1 Severity: grave When you create a dm-crypt volume on an external drive attached to an USB 3 port, every write operation on it will corrupt its data and cause the drive to reset.
I've tried three different SATA to USB 2 adapters and one SATA to USB 3 adapter, using two different drives, obtaining the same result. They work just fine when accessing the drive directly (i.e. without dm-crypt), and they work perfectly also with dm-crypt when attached to an USB 2 port on a different machine with the same kernel version (I don't have USB 2 ports available on this laptop). -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (900, 'unstable'), (800, 'testing'), (700, 'stable'), (600, 'experimental') Architecture: amd64 (x86_64) -- Model information: product_name: 3259HLG product_version: ThinkPad Edge E530 bios_version: H0ET94WW (2.54 ) -- USB controller: 00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI]) Subsystem: Lenovo Device [17aa:5000] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 40 Region 0: Memory at f3600000 (64-bit, non-prefetchable) [size=64K] Capabilities: [70] Power Management version 2 Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+ Kernel driver in use: xhci_hcd -- Kernel log: [ 9863.424621] usb 2-4: Product: 6518US3 [ 9863.424623] usb 2-4: Manufacturer: ORICO [ 9863.424625] usb 2-4: SerialNumber: 0123456789ABD03 [ 9863.484083] usb-storage 2-4:1.0: USB Mass Storage device detected [ 9863.484129] scsi6 : usb-storage 2-4:1.0 [ 9863.484417] usbcore: registered new interface driver usb-storage [ 9871.588655] scsi 6:0:0:0: Direct-Access ORICO 6518US3 2.16 PQ: 0 ANSI: 6 [ 9871.588892] sd 6:0:0:0: Attached scsi generic sg2 type 0 [ 9871.589035] sd 6:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB) [ 9871.589269] sd 6:0:0:0: [sdb] Write Protect is off [ 9871.589271] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00 [ 9871.589539] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 9871.604462] sdb: sdb1 sdb2 [ 9871.605849] sd 6:0:0:0: [sdb] Attached SCSI disk [ 9910.646941] xhci_hcd 0000:00:14.0: Too many fragments 77, max 63 [...] (millions of identical lines) [ 9935.813604] xhci_hcd 0000:00:14.0: Too many fragments 77, max 63 [ 9935.813634] usb 2-4: USB disconnect, device number 2 [ 9935.817754] scsi 6:0:0:0: rejecting I/O to offline device [ 9935.817758] scsi 6:0:0:0: [sdb] killing request [ 9935.817779] scsi 6:0:0:0: [sdb] Unhandled error code [ 9935.817781] scsi 6:0:0:0: [sdb] [ 9935.817782] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK [ 9935.817784] scsi 6:0:0:0: [sdb] CDB: [ 9935.817785] Write(10): 2a 00 00 00 0a 64 00 00 9a 00 [ 9935.817792] end_request: I/O error, dev sdb, sector 2660 [ 9935.817799] Buffer I/O error on device dm-3, logical block 306 [ 9935.817801] lost page write due to I/O error on dm-3 [ 9935.817804] Buffer I/O error on device dm-3, logical block 307 [ 9935.817805] lost page write due to I/O error on dm-3 [ 9935.817813] Buffer I/O error on device dm-3, logical block 308 [ 9935.817814] lost page write due to I/O error on dm-3 [ 9935.817816] Buffer I/O error on device dm-3, logical block 309 [ 9935.817818] lost page write due to I/O error on dm-3 [ 9935.817820] Buffer I/O error on device dm-3, logical block 310 [ 9935.817821] lost page write due to I/O error on dm-3 [ 9935.817823] Buffer I/O error on device dm-3, logical block 311 [ 9935.817825] lost page write due to I/O error on dm-3 [ 9935.817829] Buffer I/O error on device dm-3, logical block 312 [ 9935.817830] lost page write due to I/O error on dm-3 [ 9935.817832] Buffer I/O error on device dm-3, logical block 313 [ 9935.817834] lost page write due to I/O error on dm-3 [ 9935.817836] Buffer I/O error on device dm-3, logical block 314 [ 9935.817838] lost page write due to I/O error on dm-3 [ 9935.817840] Buffer I/O error on device dm-3, logical block 315 [ 9935.817841] lost page write due to I/O error on dm-3 [ 9935.817955] scsi 6:0:0:0: rejecting I/O to offline device [ 9935.817958] scsi 6:0:0:0: [sdb] killing request [ 9935.833594] scsi 6:0:0:0: [sdb] Unhandled error code [ 9935.833598] scsi 6:0:0:0: [sdb] [ 9935.833600] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK [ 9935.833601] scsi 6:0:0:0: [sdb] CDB: [ 9935.833602] Write(10): 2a 00 00 00 0a fe 00 00 a0 00 [ 9935.833606] end_request: I/O error, dev sdb, sector 2814 [ 9938.028377] usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd [ 9938.044602] usb 2-4: New USB device found, idVendor=2537, idProduct=1066 [ 9938.044607] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9938.044609] usb 2-4: Product: 6518US3 [ 9938.044611] usb 2-4: Manufacturer: ORICO [ 9938.044613] usb 2-4: SerialNumber: 0123456789ABD03 [ 9938.045345] usb-storage 2-4:1.0: USB Mass Storage device detected [ 9938.045426] scsi7 : usb-storage 2-4:1.0 [ 9940.569805] scsi 7:0:0:0: Direct-Access ORICO 6518US3 2.16 PQ: 0 ANSI: 6 [ 9940.570004] sd 7:0:0:0: Attached scsi generic sg2 type 0 [ 9940.570392] sd 7:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB) [ 9940.570632] sd 7:0:0:0: [sdc] Write Protect is off [ 9940.570635] sd 7:0:0:0: [sdc] Mode Sense: 43 00 00 00 [ 9940.570871] sd 7:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 9940.584307] sdc: sdc1 sdc2 [ 9940.585364] sd 7:0:0:0: [sdc] Attached SCSI disk [ 9972.381278] usb 2-4: USB disconnect, device number 3 Thanks. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org