dd command: BSD analog of conv=fsync?

Dan Nelson dnelson at allantgroup.com
Sun Nov 18 14:51:53 UTC 2012


In the last episode (Nov 18), Thomas Mueller said:
> What is the (Free)BSD counterpart of conv=fsync in dd command?
> 
> Command in question is
> 
> dd if=GNOME-3.6.0.iso of=/dev/DRIVE bs=8M conv=fsync
> 
> This is for writing to a USB stick, and of course DRIVE is replaced by the
> actual device node; also I believe bs=8M, good for Linux, would be bs=8m
> in FreeBSD.
> 
> I don't really know if "conv=fsync" is necessary, but that's what was
> advised in the GNOME test-drive download page.

It isn't.  Writing to raw devices in FreeBSD immediately writes to the
physical media.  No flushing is needed.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list