[Bug 244356] Writing to a USB 3.0 stick is very slow

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 24 07:53:42 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244356

--- Comment #78 from Gary Jennejohn <gljennjohn at gmail.com> ---
(In reply to vidwer+fbsdbugs from comment #77)
This is an interesting idea.  Unfortunately. "yes 1" produces an ASCII '1' =
0x31. It would be feasible to write a bit of C code which writes out an array
of 0xff (all 1s) to a file and then use dd to overwrite the USB stick with that
file. That would be fairly simple.  If the file were exactly 1 million bytes in
size then it would be simple to figure out what count would be since
manufacturers size things in GB, which is 1000 times one million.  So for
example with a 128GB stick the command would be dd if=file of=/dev/daX
count=128000.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-usb mailing list