You are not logged in.

#1 2014-06-01 11:05:44

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

USB drive disconnects (because of full buffer cache?)

I've just had a repeatable issue where when trying do erase (zero-out) a USB external HDD using dd (or dcfldd, or shred), it disconnects and crashes after a few seconds. Has anyone seen this before or knows a solution?
A "free -m" showed my entire 16GB RAM was used by "buffers"

My workaround was to use dd with conv=fdatasync... it's working without crashing. I've never had to before though.

Here's the dmesg output (with my Dell service tag removed from it):

[  723.921116] usb-storage 4-6:1.0: USB Mass Storage device detected
[  723.921350] scsi13 : usb-storage 4-6:1.0
[  724.923877] scsi 13:0:0:0: Direct-Access     WD       My Passport 0740 1003 PQ: 0 ANSI: 6
[  724.924200] scsi 13:0:0:1: Enclosure         WD       SES Device       1003 PQ: 0 ANSI: 6
[  724.925050] ses 13:0:0:1: Attached Enclosure device
[  724.926618] sd 13:0:0:0: [sdd] 976707584 512-byte logical blocks: (500 GB/465 GiB)
[  724.927064] sd 13:0:0:0: [sdd] Write Protect is off
[  724.927075] sd 13:0:0:0: [sdd] Mode Sense: 47 00 10 08
[  724.927641] sd 13:0:0:0: [sdd] No Caching mode page found
[  724.927651] sd 13:0:0:0: [sdd] Assuming drive cache: write through
[  724.929259] sd 13:0:0:0: [sdd] No Caching mode page found
[  724.929269] sd 13:0:0:0: [sdd] Assuming drive cache: write through
[  725.220560]  sdd: unknown partition table
[  725.221863] sd 13:0:0:0: [sdd] No Caching mode page found
[  725.221873] sd 13:0:0:0: [sdd] Assuming drive cache: write through
[  725.221879] sd 13:0:0:0: [sdd] Attached SCSI disk
[  726.755355] ------------[ cut here ]------------
[  726.755362] WARNING: CPU: 1 PID: 1331 at fs/sysfs/group.c:216 sysfs_remove_group+0x99/0xa0()
[  726.755364] sysfs group ffffffff81897ba0 not found for kobject 'target12:0:0'
[  726.755365] Modules linked in: ses enclosure usb_storage md5 hmac des_generic ecb md4 nls_utf8 cifs dns_resolver dm_crypt snd_hda_codec_hdmi snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device joydev mousedev hid_generic uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev usbhid media iTCO_wdt iTCO_vendor_support dell_wmi sparse_keymap ppdev snd_hda_codec_realtek snd_hda_codec_generic i915 dell_laptop dcdbas coretemp x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd microcode pcspkr psmouse evdev mac_hid serio_raw i2c_i801 dm_mod arc4 iwldvm lpc_ich mac80211 iwlwifi cfg80211 rfkill wmi thermal dw_dmac parport_pc dw_dmac_core parport gpio_lynxpoint
[  726.755392]  sdhci_acpi video i2c_hid hid 8250_dw snd_hda_intel drm_kms_helper snd_hda_codec snd_hwdep e1000e snd_pcm drm i2c_designware_platform snd_timer battery i2c_designware_core snd spi_pxa2xx_platform intel_gtt mei_me ac button i2c_algo_bit soundcore mei ptp i2c_core pps_core shpchp processor vboxnetflt(O) vboxdrv(O) nfs lockd sunrpc fscache ip_tables x_tables i8k hwmon ext4 crc16 mbcache jbd2 sd_mod crc_t10dif crct10dif_common mmc_block atkbd libps2 ahci xhci_hcd libahci libata sdhci_pci sdhci led_class scsi_mod ehci_pci ehci_hcd mmc_core usbcore usb_common i8042 serio
[  726.755416] CPU: 1 PID: 1331 Comm: dcfldd Tainted: G        W  O 3.14.4-1-ARCH #1
[  726.755417] Hardware name: Dell ---------------------, BIOS A08 02/18/2014
[  726.755418]  0000000000000000 000000008475bed1 ffff8803d0c51968 ffffffff8150996e
[  726.755420]  ffff8803d0c519b0 ffff8803d0c519a0 ffffffff8106ab2d 0000000000000000
[  726.755421]  ffffffff81897ba0 ffff8803deb33838 ffff8800dbad3000 ffff8800dbad3100
[  726.755423] Call Trace:
[  726.755426]  [<ffffffff8150996e>] dump_stack+0x4d/0x6f
[  726.755428]  [<ffffffff8106ab2d>] warn_slowpath_common+0x7d/0xa0
[  726.755430]  [<ffffffff8106abac>] warn_slowpath_fmt+0x5c/0x80
[  726.755432]  [<ffffffff812346e8>] ? kernfs_find_and_get_ns+0x48/0x60
[  726.755433]  [<ffffffff81232fb9>] sysfs_remove_group+0x99/0xa0
[  726.755437]  [<ffffffff8139e783>] dpm_sysfs_remove+0x43/0x50
[  726.755439]  [<ffffffff81393c35>] device_del+0x45/0x1d0
[  726.755446]  [<ffffffffa013c067>] scsi_target_reap_usercontext+0x27/0x40 [scsi_mod]
[  726.755448]  [<ffffffff81087297>] execute_in_process_context+0x67/0x70
[  726.755453]  [<ffffffffa013d3a4>] scsi_target_reap+0xc4/0xe0 [scsi_mod]
[  726.755458]  [<ffffffffa013f3b4>] scsi_device_dev_release_usercontext+0x174/0x1a0 [scsi_mod]
[  726.755459]  [<ffffffff81087297>] execute_in_process_context+0x67/0x70
[  726.755464]  [<ffffffffa013f23c>] scsi_device_dev_release+0x1c/0x20 [scsi_mod]
[  726.755465]  [<ffffffff813930c2>] device_release+0x32/0xa0
[  726.755469]  [<ffffffff8129af4a>] kobject_release+0x7a/0x1c0
[  726.755471]  [<ffffffff8129b0bd>] kobject_put+0x2d/0x60
[  726.755472]  [<ffffffff81393507>] put_device+0x17/0x20
[  726.755477]  [<ffffffffa0132a1a>] scsi_device_put+0x3a/0x50 [scsi_mod]
[  726.755480]  [<ffffffffa021a810>] scsi_disk_put+0x30/0x50 [sd_mod]
[  726.755484]  [<ffffffffa021b821>] sd_release+0x31/0x70 [sd_mod]
[  726.755486]  [<ffffffff811f6672>] __blkdev_put+0x182/0x1c0
[  726.755487]  [<ffffffff811f703c>] blkdev_put+0x4c/0x150
[  726.755488]  [<ffffffff811f71f5>] blkdev_close+0x25/0x30
[  726.755491]  [<ffffffff811bc50c>] __fput+0x9c/0x240
[  726.755492]  [<ffffffff811bc6fe>] ____fput+0xe/0x10
[  726.755494]  [<ffffffff8108c26c>] task_work_run+0xcc/0xe0
[  726.755496]  [<ffffffff8106d328>] do_exit+0x398/0xb10
[  726.755498]  [<ffffffff8107ae33>] ? __sigqueue_free.part.16+0x33/0x40
[  726.755499]  [<ffffffff8107b031>] ? __dequeue_signal+0x141/0x230
[  726.755501]  [<ffffffff8106db23>] do_group_exit+0x43/0xc0
[  726.755503]  [<ffffffff8107e020>] get_signal_to_deliver+0x270/0x6e0
[  726.755505]  [<ffffffff81016557>] do_signal+0x57/0x6c0
[  726.755506]  [<ffffffff8107ad37>] ? recalc_sigpending+0x17/0x60
[  726.755508]  [<ffffffff8107baa1>] ? __set_task_blocked+0x41/0xa0
[  726.755510]  [<ffffffff81016c28>] do_notify_resume+0x68/0xa0
[  726.755512]  [<ffffffff815179a0>] int_signal+0x12/0x17
[  726.755513] ---[ end trace 95e60ffd4481ef63 ]---
[  744.719095] usb 4-6: USB disconnect, device number 11

Offline

Board footer

Powered by FluxBB