0

I have Ubuntu 16.04 running on a Windows 10 host in VirtualBox. I'm trying to rsync a large folder (192GB) onto an external USB hard drive enclosure (Orico USB 3.0 2.5 SATA III) containing a Samsung 830 SSD (240GB). The disk is formatted as NTFS, and I have ntfs-3g installed on Ubuntu.

The operation starts out fine, but at some point the rsync fails and the USB seems to have unmounted:

rsync output:

rsync: rename "/mnt/usb/bitcoin/blocks/.blk00201.dat.vptzQx" -> "blocks/blk00201.dat": Input/output error (5)
rsync: mkstemp "/mnt/usb/bitcoin/blocks/.blk00202.dat.QAivPb" failed: Input/output error (5)
rsync: mkstemp "/mnt/usb/bitcoin/blocks/.blk00203.dat.XoflbV" failed: Input/output error (5)
...

I can see in VirtualBox that the USB drive has been unmounted:

usb unmounted

I'm not sure which logs I can check to see why it's unmounting. Suggestions?

  • 1
    If the USB device is "passed through", it might be because of USB UAS bugs and incompatibilities. The easiest would be in virtualbox to force USB to be 2.0 instead of 3.0 (I don't know how). This will disable UAS (as well as slowing down transfers of course). If rsync then works, you'll have to search on how to disable uas with USB3. Eg, these answers of mine: unix.stackexchange.com/questions/418326/… or unix.stackexchange.com/questions/437036/… – A.B Jun 10 '18 at 17:54
  • Yeah, I can try and get virtualbox to use USB 2.0, thanks! – Donnie Thomas Jun 10 '18 at 18:27
  • That didn't work either :( seems to have dismounted after a while, here's the dmesg logs: gist.githubusercontent.com/donnielrt/… – Donnie Thomas Jun 10 '18 at 19:54
  • I notice in dmesg that the drive seems to be using UAS, I'm going to try disabling it per your links. – Donnie Thomas Jun 10 '18 at 20:01
  • Failed again :( it seems to have blacklisted the USB drive, but it's still failing: [ 1.780078] usb-storage 1-2:1.0: USB Mass Storage device detected [ 1.780680] usb-storage 1-2:1.0: Quirks match for vid 2537 pid 1068: 800000 [ 1.780723] scsi host2: usb-storage 1-2:1.0 [ 1.780837] usbcore: registered new interface driver usb-storage [ 1.784023] usbcore: registered new interface driver uas – Donnie Thomas Jun 10 '18 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.