On 7/5/24 6:36 AM, Tide Ka via users wrote:
On 7/5/24 3:22 AM, Tim via users wrote:

So I typed sync, and that stayed doing something until the
flashdrive stopped blinking, then the cursor returned immediately.  So,
I'm tempted to think that the caching delay was part of the OS rather
than the drive.

Your reaction is likely to be right. There is cache in the OS. And it is causing sync to block for a while.

Samuel Sieb:

>> The writing is finished when dd exits, but the drive might keep flashing
 >> briefly after that.  Or maybe the drive has some internal caching that
 >> it doesn't advertise (that would be very bad).

I have gone through man pages of `dd` and find executing `sync` right after the writing finished may not be enabled by default. That requires passing `oflag=sync` or passing nocache to `conv=`, but non of the above is done in the command you provided. I guess probably dd did leave kernel cache behind and exit.

Running `sync` and just wait for lights to not blink any more is always very wise. And it also indicates that your installation medium is probably OK.

I just tested this:
# dd if=Fedora-MATE_Compiz-Live-x86_64-40-1.14.iso of=/dev/sda bs=4M status=progress
2332033024 bytes (2.3 GB, 2.2 GiB) copied, 2 s, 1.2 GB/s
585+1 records in
585+1 records out
2454198272 bytes (2.5 GB, 2.3 GiB) copied, 302.866 s, 8.1 MB/s

The first "copied" line is from the progress status. After it got to there, it sat there until all the data was actually written to the drive, at which point it wrote the last 3 lines including the real write speed.

--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to