USB HDD doesn't mount at boot and later unmount by itself

Hi,

I have a new install Leap 42.1 for few days.
When I boot with a USB HDD connected it doesn’t mount.
dmesg says

    5.476021] scsi host6: usb-storage 1-7:1.0
    5.476137] usbcore: registered new interface driver usb-storage
    5.476632] usbcore: registered new interface driver uas
    5.556020] usb 1-10: new high-speed USB device number 5 using ehci-pci
    5.557843] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    5.557846] [drm] Driver supports precise vblank timestamp query.
    5.652129] nouveau       DRM] MM: using COPY for buffer copies
    5.704017] usb 1-10: device descriptor read/64, error -71
    5.732246] nouveau       DRM] allocated 1680x1050 fb: 0x70000, bo ffff880233f27800
    5.732344] fbcon: nouveaufb (fb0) is primary device
    5.799651] Console: switching to colour frame buffer device 210x65
    5.801132] nouveau 0000:02:00.0: fb0: nouveaufb frame buffer device
    5.801134] nouveau 0000:02:00.0: registered panic notifier
    5.808057] [drm] Initialized nouveau 1.2.2 20120801 for 0000:02:00.0 on minor 0
    5.952030] usb 1-10: device descriptor read/64, error -71
    6.168020] usb 1-10: new high-speed USB device number 6 using ehci-pci
    6.316018] usb 1-10: device descriptor read/64, error -71
    6.482684] scsi 6:0:0:0: Direct-Access     Generic- Compact Flash    1.00 PQ: 0 ANSI: 0 CCS
    6.482941] sd 6:0:0:0: Attached scsi generic sg3 type 0
    6.568029] usb 1-10: device descriptor read/64, error -71
    6.784026] usb 1-10: new high-speed USB device number 7 using ehci-pci
    6.880042] floppy0: no floppy controllers found
    6.928604] PM: Starting manual resume from disk
    6.928613] PM: Hibernation image partition 8:1 present
    6.928615] PM: Looking for hibernation image.
    6.928821] PM: Image not found (code -22)
    6.928824] PM: Hibernation image not present or could not be loaded.
    7.066432] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
    7.216039] usb 1-10: device not accepting address 7, error -71
    7.328030] usb 1-10: new high-speed USB device number 8 using ehci-pci
    7.450566] scsi 6:0:0:1: Direct-Access     Generic- SM/xD-Picture    1.00 PQ: 0 ANSI: 0 CCS
    7.450778] sd 6:0:0:1: Attached scsi generic sg4 type 0
    7.458934] scsi 6:0:0:2: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
    7.459113] sd 6:0:0:2: Attached scsi generic sg5 type 0
    7.467929] scsi 6:0:0:3: Direct-Access     Generic- MS/MS-Pro        1.00 PQ: 0 ANSI: 0 CCS
    7.468135] sd 6:0:0:3: Attached scsi generic sg6 type 0
    7.469422] sd 6:0:0:1: [sdd] Attached SCSI removable disk
    7.472678] sd 6:0:0:2: [sde] Attached SCSI removable disk
    7.475185] sd 6:0:0:3: [sdf] Attached SCSI removable disk
    7.475928] sd 6:0:0:0: [sdc] Attached SCSI removable disk
    7.530093] systemd-journald[118]: Received SIGTERM from PID 1 (systemd).
    7.756023] usb 1-10: device not accepting address 8, error -71
    7.756061] usb usb1-port10: unable to enumerate USB device
    8.072034] usb 6-2: new full-speed USB device number 2 using ohci-pci
    8.212031] usb 6-2: device descriptor read/64, error -62
    8.456026] usb 6-2: device descriptor read/64, error -62
    8.696026] usb 6-2: new full-speed USB device number 3 using ohci-pci
    8.836027] usb 6-2: device descriptor read/64, error -62
    9.080040] usb 6-2: device descriptor read/64, error -62
    9.320041] usb 6-2: new full-speed USB device number 4 using ohci-pci
    9.728026] usb 6-2: device not accepting address 4, error -62
    9.864036] usb 6-2: new full-speed USB device number 5 using ohci-pci
    9.890549] systemd-readahead[376]: Bumped block_nr parameter of 8:0 to 20480. This is a temporary hack and should be removed one day.
   10.272040] usb 6-2: device not accepting address 5, error -62
   10.272089] usb usb6-port2: unable to enumerate USB device
   11.455700] EXT4-fs (sda2): re-mounted. Opts: acl,user_xattr
   11.965936] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
   12.062369] usblp 1-5:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0248
   12.062404] usbcore: registered new interface driver usblp
   12.109275] MCE: In-kernel MCE decoding enabled.

So I disconnect it an reconnect (here in another USB socket)
dmesg says

  299.916035] usb 1-9: new high-speed USB device number 9 using ehci-pci
  300.049347] usb 1-9: New USB device found, idVendor=357d, idProduct=7788
  300.049359] usb 1-9: New USB device strings: Mfr=10, Product=11, SerialNumber=3
  300.049366] usb 1-9: Product: USB to ATA/ATAPI Bridge
  300.049371] usb 1-9: Manufacturer: JMicron
  300.049375] usb 1-9: SerialNumber: 000012345678
  300.050557] scsi host7: uas
  300.051481] scsi 7:0:0:0: Direct-Access     ST2000LM 003 HN-M201RAD   0100 PQ: 0 ANSI: 6
  300.055611] sd 7:0:0:0: Attached scsi generic sg7 type 0
  300.055985] sd 7:0:0:0: [sdg] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
  300.055992] sd 7:0:0:0: [sdg] 4096-byte physical blocks
  300.057841] sd 7:0:0:0: [sdg] Write Protect is off
  300.057850] sd 7:0:0:0: [sdg] Mode Sense: 67 00 10 08
  300.058590] sd 7:0:0:0: [sdg] Write cache: enabled, read cache: enabled, supports DPO and FUA
  300.095023]  sdg: sdg1
  300.098455] sd 7:0:0:0: [sdg] Attached SCSI disk
  300.926190] EXT4-fs (sdg1): recovery complete
  300.926672] EXT4-fs (sdg1): mounted filesystem with ordered data mode. Opts: (null)

Later, I want to copy files to this USB HDD, but I get an error and the USB HDD unmount
dmesg says

 1040.872055] sd 7:0:0:0: [sdg] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD 
 1040.872074] sd 7:0:0:0: [sdg] tag#1 CDB: Read(10) 28 00 38 80 08 38 00 00 08 00
 1040.872087] sd 7:0:0:0: [sdg] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
 1040.872094] sd 7:0:0:0: [sdg] tag#0 CDB: Write(10) 2a 00 74 44 0d 88 00 00 50 00
 1040.872123] scsi host7: uas_eh_bus_reset_handler start
 1040.984050] usb 1-9: reset high-speed USB device number 9 using ehci-pci
 1041.117119] scsi host7: uas_eh_bus_reset_handler success
 1051.116047] sd 7:0:0:0: [sdg] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
 1051.116064] sd 7:0:0:0: [sdg] tag#0 CDB: Test Unit Ready 00 00 00 00 00 00
 1051.116073] scsi host7: uas_eh_bus_reset_handler start
 1051.228041] usb 1-9: reset high-speed USB device number 9 using ehci-pci
 1051.376031] usb 1-9: device descriptor read/64, error -71
 1051.628038] usb 1-9: device descriptor read/64, error -71
 1051.844050] usb 1-9: reset high-speed USB device number 9 using ehci-pci
 1051.992044] usb 1-9: device descriptor read/64, error -71
 1052.244036] usb 1-9: device descriptor read/64, error -71
 1052.460086] usb 1-9: reset high-speed USB device number 9 using ehci-pci
 1052.888043] usb 1-9: device not accepting address 9, error -71
 1053.000047] usb 1-9: reset high-speed USB device number 9 using ehci-pci
 1053.432040] usb 1-9: device not accepting address 9, error -71
 1053.432165] scsi host7: uas_eh_bus_reset_handler FAILED err -19
 1053.432176] sd 7:0:0:0: Device offlined - not ready after error recovery
 1053.432183] sd 7:0:0:0: Device offlined - not ready after error recovery
 1053.432205] sd 7:0:0:0: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
 1053.432215] sd 7:0:0:0: [sdg] tag#0 CDB: Write(10) 2a 00 74 44 0d 88 00 00 50 00
 1053.432222] blk_update_request: I/O error, dev sdg, sector 1950616968
 1053.432279] Aborting journal on device sdg1-8.
 1053.432282] sd 7:0:0:0: [sdg] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
 1053.432291] sd 7:0:0:0: [sdg] tag#1 CDB: Read(10) 28 00 38 80 08 38 00 00 08 00
 1053.432296] blk_update_request: I/O error, dev sdg, sector 947914808
 1053.432348] EXT4-fs error (device sdg1): ext4_wait_block_bitmap:493: comm kworker/u4:3: Cannot read block bitmap - block_group = 3623, block_bitmap = 118489095
 1053.432370] sd 7:0:0:0: rejecting I/O to offline device
 1053.432420] JBD2: Error -5 detected when updating journal superblock for sdg1-8.
 1053.432447] sd 7:0:0:0: rejecting I/O to offline device
 1053.432537] sd 7:0:0:0: rejecting I/O to offline device
 1053.432563] EXT4-fs error (device sdg1): ext4_wait_block_bitmap:493: comm kworker/u4:3: Cannot read block bitmap - block_group = 3624, block_bitmap = 118489096
 1053.432572] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.432590] usb 1-9: USB disconnect, device number 9
 1053.432609] sd 7:0:0:0: rejecting I/O to offline device
 1053.432679] sd 7:0:0:0: rejecting I/O to offline device
 1053.432708] EXT4-fs error (device sdg1): ext4_wait_block_bitmap:493: comm kworker/u4:3: Cannot read block bitmap - block_group = 3625, block_bitmap = 118489097
 1053.432713] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.432736] sd 7:0:0:0: rejecting I/O to offline device
 1053.435582] EXT4-fs error (device sdg1): ext4_wait_block_bitmap:493: comm kworker/u4:3: Cannot read block bitmap - block_group = 3626, block_bitmap = 118489098
 1053.435597] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.435686] EXT4-fs error (device sdg1): ext4_wait_block_bitmap:493: comm kworker/u4:3: Cannot read block bitmap - block_group = 3627, block_bitmap = 118489099
 1053.435691] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.435788] EXT4-fs (sdg1): Delayed block allocation failed for inode 29493783 at logical offset 0 with max blocks 33 with error 30
 1053.435793] EXT4-fs (sdg1): This should not happen!! Data will be lost

 1053.435808] EXT4-fs error (device sdg1) in ext4_writepages:2560: Journal has aborted
 1053.435813] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.448289] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.448400] EXT4-fs error (device sdg1): ext4_journal_check_start:56: Detected aborted journal
 1053.448609] EXT4-fs (sdg1): Remounting filesystem read-only
 1053.448620] EXT4-fs (sdg1): previous I/O error to superblock detected
 1053.449316] blk_update_request: I/O error, dev sdg, sector 0
 1054.120507] sd 7:0:0:0: [sdg] Synchronizing SCSI cache
 1054.232085] sd 7:0:0:0: [sdg] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
 1054.234616] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234669] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234713] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234754] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234797] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234838] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234879] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234920] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.234962] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.235001] EXT4-fs warning (device sdg1): __ext4_read_dirblock:970: error -5 reading directory block (ino 2, block 0)
 1054.240474] EXT4-fs error (device sdg1): ext4_find_entry:1457: inode #2: comm pool: reading directory lblock 0
 1054.240494] EXT4-fs error (device sdg1): ext4_find_entry:1457: inode #2: comm pool: reading directory lblock 0
 1054.240507] EXT4-fs error (device sdg1): ext4_find_entry:1457: inode #2: comm pool: reading directory lblock 0
 1054.240665] EXT4-fs error (device sdg1): ext4_find_entry:1457: inode #2: comm pool: reading directory lblock 0
 1054.344043] usb 1-9: new high-speed USB device number 10 using ehci-pci
 1054.488045] usb 1-9: device descriptor read/64, error -71
 1054.740038] usb 1-9: device descriptor read/64, error -71
 1054.898689] EXT4-fs error (device sdg1): ext4_put_super:789: Couldn't clean up the journal
 1054.956032] usb 1-9: new high-speed USB device number 11 using ehci-pci
 1055.104036] usb 1-9: device descriptor read/64, error -71
 1055.356028] usb 1-9: device descriptor read/64, error -71
 1055.572043] usb 1-9: new high-speed USB device number 12 using ehci-pci
 1056.004047] usb 1-9: device not accepting address 12, error -71
 1056.116045] usb 1-9: new high-speed USB device number 13 using ehci-pci
 1056.548067] usb 1-9: device not accepting address 13, error -71
 1056.548135] usb usb1-port9: unable to enumerate USB device
 1056.864043] usb 6-1: new full-speed USB device number 6 using ohci-pci
 1057.004493] usb 6-1: device descriptor read/64, error -62
 1057.248043] usb 6-1: device descriptor read/64, error -62
 1057.488047] usb 6-1: new full-speed USB device number 7 using ohci-pci
 1057.628041] usb 6-1: device descriptor read/64, error -62
 1057.872046] usb 6-1: device descriptor read/64, error -62
 1058.112051] usb 6-1: new full-speed USB device number 8 using ohci-pci
 1058.520062] usb 6-1: device not accepting address 8, error -62
 1058.656029] usb 6-1: new full-speed USB device number 9 using ohci-pci
 1059.064044] usb 6-1: device not accepting address 9, error -62
 1059.064127] usb usb6-port1: unable to enumerate USB device

I didn’t get this error when I was using Centos previousely
How to fix that?

Thanks

For mounting at boot, what’s the “fstab” entry? Or did you expect the desktop to mount it?

For the error issue: I sometimes see that. See Bug 891168. Possibly, it is the same kind of external drive enclosure (uses a JMicron ATA/ATAPI bridge).

For me, it turned out to be a cabling issue. The IDE cable is clamp-on, and reclamping fixes at least for a while.

I asked about the “fstab” entry, because Yast can generate a bad entry for that device if it mounts by device-id.