Opened 6 years ago
Last modified 6 years ago
#18630 new defect
Using dd to write to SD Card in a USB SD Card device results in an error
Reported by: | Andrew Trapani | Owned by: | |
---|---|---|---|
Component: | USB | Version: | VirtualBox 6.0.6 |
Keywords: | Input/output error dd SDCard | Cc: | |
Guest type: | Linux | Host type: | Mac OS X |
Description
NOTE: This may be a duplicate of ticket #17020. That issue appears to be the exact same problem and is not resolved.
On VirtualBox Version 6.0.6 r130049 (Qt5.6.3), using dd to write to SD Card using an external USB SD Card device has an error.
"dd: error writing '/dev/sde': No space left on device"
I am using a process I have previously used through VirtualBox and an external USB-A SD Card device to write to our stocked SD Cards. For simplicity, I used the same image that previously worked.
The host MacOS 10.14.4 has no issues with the exact same command. NOTE: On host MacOS, may use "brew install pv iozone"
Using "iozone", I established the max "write" speed at 7 MiB/s to our in stock, SanDisk Edge 16GB Micro SD HC 1 "4". We've been using these same SD Cards for years.
USB-C SD Card device on host MacOS completes correctly, at about 2.7MiB/s. I validated this SD Card on target hardware and it is correct.
bzcat 07626-38_sandisk-1.1.1-smc-2.8.0-with-ADCP.img.bz2 | pv --size 15931539456 | sudo dd of=/dev/rdisk2 bs=512 conv=noerror,sync [=================================================================================================================================================================>] 100% 31116288+0 records in 31116288+0 records out 15931539456 bytes transferred in 5748.904531 secs (2771230 bytes/sec)
USB-C SD Card device on VirtualBox Ubuntu 16 error at this repeatable number of records out. Note the speed is too fast for this device.
bzcat myDisk.img.bz2 | pv --size 15931539456 | sudo dd of=/dev/sde bs=512 conv=noerror,sync dd: error writing '/dev/sde': No space left on device===========================> ] 25% ETA 0:07:00 8131777+0 records in 8131776+0 records out 4163469312 bytes (4.2 GB, 3.9 GiB) copied, 142.747 s, 29.2 MB/s 3.88GiB 0:02:22 [27.8MiB/s] [=====================================================> ] 26%
USB-A SD Card device on VirtualBox Ubuntu 16 also failed. NOTE: This process and this exact USB-A SD Card device worked on some older version of VirtualBox, but unknown what that was because I did that about a year ago.
bzcat myDisk.img.bz2 | pv --size 15931539456 | sudo dd of=/dev/sdi bs=512 conv=noerror,sync dd: error writing '/dev/sdi': Input/output error============================================================================================================================================> ] 76% ETA 0:20:48 23878697+0 records in 23878696+0 records out 12225892352 bytes (12 GB, 11 GiB) copied, 4279.2 s, 2.9 MB/s 11.4GiB 1:11:19 [2.72MiB/s] [===============================================================================================================================================================> ] 76%
After powering off the VM and starting it again, using the USB-C SD Card device fails in a different way. Write speed is reasonable, but still has an error.
bzcat myDisk.img.bz2 | pv --size 15931539456 | sudo dd of=/dev/sde bs=512 conv=noerror,sync dd: error writing '/dev/sde': No space left on device============================================================================================================================================================> ] 86% ETA 0:05:01 406158+80035 records in 486192+0 records out 15931539456 bytes (16 GB, 15 GiB) copied, 2192.37 s, 7.3 MB/s 12.9GiB 0:36:32 [6.03MiB/s] [======================================================================================================================================================================================> ] 87%
NOTE: This may be a duplicate of ticket #17020. That issue appears to be the exact same problem and is not resolved.
On VirtualBox Version 6.0.6 r130049 (Qt5.6.3), using dd to write to SD Card using an external USB SD Card device has an error.
"dd: error writing '/dev/sde': No space left on device"
I am using a process I have previously used through VirtualBox and an external USB-A SD Card device to write to our stocked SD Cards. For simplicity, I used the same image that previously worked.
The host MacOS 10.14.4 has no issues with the exact same command. NOTE: On host, may use brew install pv
Using "iozone", I established the max "write" speed at 7 MiB/s to our in stock, SanDisk Edge 16GB Micro SD HC 1 "4". We've been using these same SD Cards for years.
USB-C SD Card device on host MacOS completes correctly, at about 2.7MiB/s. I validated this SD Card on target hardware and it is correct.
USB-C SD Card device on VirtualBox Ubuntu 16 error at this repeatable number of records out. Note the speed is too fast for this device.
USB-A SD Card device on VirtualBox Ubuntu 16 also failed. NOTE: This process and this exact USB-A SD Card device worked on some older version of VirtualBox, but unknown what that was because I did that about a year ago.
After powering off the VM and starting it again, using the USB-C SD Card device fails in a different way. Write speed is reasonable, but still has an error.