HI, I am trying to prepare a USB to install Fedora to a laptop.
The history of the key is unknown, so it could have a fair bit of use and be showing signs of wear.
Code:
bash-4.4#dd if=Fedora-KDE-Live-x86_64-29-1.2.iso of=/dev/sdi1
^C^Z^X
[1]+ Stopped dd if=Fedora-KDE-Live-x86_64-29-1.2.iso of=/dev/sdi1
bash-4.4#dd if=Fedora-KDE-Live-x86_64-29-1.2.iso of=/dev/sdi1 status=progress
1515807232 bytes (1.5 GB, 1.4 GiB) copied, 438 s, 3.5 MB/s
dd: writing to '/dev/sdi1': No space left on device
2963457+0 records in
2963456+0 records out
1517289472 bytes (1.5 GB, 1.4 GiB) copied, 529.216 s, 2.9 MB/s
bash-4.4#dd if=/dev/zero of=/dev/sdi1 status=progress
1882915328 bytes (1.9 GB, 1.8 GiB) copied, 448 s, 4.2 MB/s
dd: writing to '/dev/sdi1': No space left on device
3680257+0 records in
3680256+0 records out
1884291072 bytes (1.9 GB, 1.8 GiB) copied, 512.604 s, 3.7 MB/s
bash-4.4#dd if=/dev/zero of=/dev/sdi1 status=progress
1883668992 bytes (1.9 GB, 1.8 GiB) copied, 443 s, 4.3 MB/s
dd: writing to '/dev/sdi1': No space left on device
3680257+0 records in
3680256+0 records out
1884291072 bytes (1.9 GB, 1.8 GiB) copied, 505.993 s, 3.7 MB/s
So after a manually aborted dd, I restarted and got an incomplete dd write ( 1.5GB out of 1.8 before drop out ).
A subsequent write of zeros got nearer the full size but still dropped out.
The oddity is that the successful writes are exactly the same byte count as the Fedora ISO I originally tried to write.
If I try to write with a more sensible block size it stalls at the same point.
Code:
dd if=/dev/zero of=/dev/sdi1 bs=4k status=progress
1879015424 bytes (1.9 GB, 1.7 GiB) copied, 159 s, 11.8 MB/s
dd: error writing '/dev/sdi1': No space left on device
460033+0 records in
460032+0 records out
1884291072 bytes (1.9 GB, 1.8 GiB) copied, 225.983 s, 8.3 MB/s
How did the failed iso copy manage to reset the "size" of the USB device? This is not first time I've had this kind of oddity. Can anyone explain this behaviour?
Thanks.