Odd dd behaviour to USB key.
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Posts
    261
    Linux (Fedora) Firefox 64.0

    Odd dd behaviour to USB key.

    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.
    Last edited by feddy; 10th February 2019 at 02:19 PM.

Similar Threads

  1. behaviour of yum
    By dr_pompeii in forum Using Fedora
    Replies: 7
    Last Post: 26th March 2007, 03:53 AM
  2. Strange Behaviour
    By Yoeri in forum Hardware & Laptops
    Replies: 0
    Last Post: 4th April 2006, 07:23 PM
  3. Strange behaviour
    By vini_bill in forum Using Fedora
    Replies: 0
    Last Post: 16th September 2005, 03:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •