On Oct 22, 2020, at 02:47, J.Witvliet--- via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > > After doing the “dd” to the raw device, do not do a “sync”, as this is for synchronizing filesystems. Just remove the device. > In case something tried to mount the content of the device (before it was wiped by dd) it might try to write back data to the device and by that action corrupting the freshly written image. It’s not a terrible idea to use sync. You absolutely should not be running dd to a device that is used in a mounted file system. It should be unmounted first. Then there is no risk of sync corrupting the disk. The ‘sync’ command flushes buffers to disk, and that’s not just for file systems. Depending on how dd was run, it’s possible that there are buffers in the kernel that haven’t been written. Just yanking the USB device out might result in missing data. You could include ‘conv=sync’ in your dd command if you want to ensure that everything is written, but it might not as fast, depending on the block size. I tend to just run ‘eject’ on the USB device, which also prompts the kernel to write the buffers to disk, but just for that device. -- Jonathan Billings _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx