Check whether all data is flushed to usb flash from command line

Josef Wolf jw at raven.inka.de
Sat Oct 7 07:01:53 UTC 2023


On Fri, Oct 06, 2023 at 08:34:39PM +0100, Colin Law wrote:
> On Fri, 6 Oct 2023, 13:40 Josef Wolf, <jw at raven.inka.de> wrote:
> 
> > Hello,
> >
> > what is the proper way to check whether all (low-level) data is flushed to
> > usb
> > flash from command line?
> >
> > Please note that this question is NOT about
> > - sync (flushing file system data)
> > - umount (implies sync)
> > - eject (implies umount)
> > because all those commands are about file system level.
> 
> Are you sure that sync does not do what you want?

Ummm...

So eject implies umount (which in turn implies sync on the umounted partition)

But eject does not imply sync on the block device?

Tanks for the hint!


-- 
Josef Wolf
jw at raven.inka.de



More information about the ubuntu-users mailing list