You are not logged in.

#1 2015-07-13 20:10:30

etakeh32
Member
From: Pridnestrovie
Registered: 2014-03-08
Posts: 66

System Freeze on unplugging certain storage (USB&SD)

Hi,

I have one HDD and one SD card which work fine, but when unplugged OR unmounted freeze the system. No kernel panic or so, screen simply freezes. Also happens when I never mount the device, just plug it in and unplug it again. Other USB storage and SD cards work fine. Not sure where to begin troubleshooting and would appreciate some pointers.

Offline

#2 2015-07-14 07:06:43

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 95

Re: System Freeze on unplugging certain storage (USB&SD)

What is the FS of that SD card? Can you provide us with any system information like, for example, dmesg output?

Offline

#3 2015-07-14 12:37:31

etakeh32
Member
From: Pridnestrovie
Registered: 2014-03-08
Posts: 66

Re: System Freeze on unplugging certain storage (USB&SD)

Not sure if the FS matters, as it happens even when not mounting, just plugging in and unplugging, but the HDD is truecrypt and the SD card is ext3.  As far as dmesg. Do I plug in the HDD and/or SD and run dmesg? Any grep?

Offline

#4 2015-07-14 18:28:24

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: System Freeze on unplugging certain storage (USB&SD)

My suggestion, as far as dmesg goes, is to have it open in terminal with "-w". Then unmount in such a way so that you can still see dmesg.

Offline

#5 2015-07-19 22:02:18

etakeh32
Member
From: Pridnestrovie
Registered: 2014-03-08
Posts: 66

Re: System Freeze on unplugging certain storage (USB&SD)

Disconnecting a working USB-HDD (for comparison):

[ 2918.847949] usb 2-1.2: USB disconnect, device number 6

Plugging in HDD that causes the issue:

[ 3005.839675] usb 2-1.4: new high-speed USB device number 7 using ehci-pci
[ 3005.927432] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[ 3005.927507] usb-storage 2-1.4:1.0: Quirks match for vid 1058 pid 070a: 200000
[ 3005.927529] scsi host7: usb-storage 2-1.4:1.0
[ 3006.931425] scsi 7:0:0:0: Direct-Access     WD       My Passport 070A 1030 PQ: 0 ANSI: 4
[ 3006.932212] scsi 7:0:0:1: CD-ROM            WD       Virtual CD 070A  1030 PQ: 0 ANSI: 4
[ 3006.936962] scsi 7:0:0:2: Enclosure         WD       SES Device       1030 PQ: 0 ANSI: 4
[ 3006.942190] sd 7:0:0:0: [sdb] 975400960 512-byte logical blocks: (499 GB/465 GiB)
[ 3006.944323] sd 7:0:0:0: [sdb] Write Protect is off
[ 3006.944329] sd 7:0:0:0: [sdb] Mode Sense: 23 00 10 00
[ 3006.946140] sr 7:0:0:1: [sr1] scsi3-mmc drive: 51x/51x caddy
[ 3006.946461] sr 7:0:0:1: Attached scsi CD-ROM sr1
[ 3006.948097] sd 7:0:0:0: [sdb] No Caching mode page found
[ 3006.948105] sd 7:0:0:0: [sdb] Assuming drive cache: write back
[ 3006.970861] ses 7:0:0:2: Attached Enclosure device
[ 3006.976918] sd 7:0:0:0: [sdb] Attached SCSI disk

Mounting same HDD in truecrypt:

[ 3045.684365] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: (null)

Unmounting from TrueCrypt - no messages, just like with the working HDD. No freeze.
Unplugging it from USB - system freezes.

[xxxxxx] sd 7:0:0:0: [sdb] Synchronizing SCSI cache
[xxxxxx] sd 7:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00

Offline

Board footer

Powered by FluxBB