On Tue, Oct 13, 2026 at 04:32:21AM -0400, hlyg wrote:
> 
> On 10/12/26 6:35 PM, Andrew M.A. Cater wrote:
> > I'd also add a couple of arguments - oflag=sync and status=progress
> > 
> >   dd if=debian-live-13.7.0-amd64-lxqt.iso of=dev/sdX obs=4M oflag=sync 
> > status=progress
> > 
> > that allows for the data to be synced as it is written to the USB stick and
> > also shows progress on a long write.
> > 
> > It's quite handy when you're writing one of the longer images on a slow
> > machine / something slower than USB3
> > 
> > All the very best, as ever,
> > 
> > Andrew Cater
> > [[email protected]]
> 
> 
> Thank Cater!  Your command looks more professional.

Yes. It is my favourite too.

The "oflag=sync" makes the writes to the stick happen "in real
time", so that when dd finishes, you can be sure that the bytes
have been written, instead of waiting in the buffer cache
(entering a "sync" after it won't harm, but should return quickly).

The "status=progress" shows you how far the write is, which is
always nice for things which take a long time.

> i have thought of using cp, but cp doesn't allow you to specify how many
> bytes to be copied

Cp will work too, but it is built for other things :-)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to