Re: [LAD] [OT] bash vs disk activity

From: Lars Luthman <lars.luthman@email-addr-hidden>
Date: Tue Oct 09 2007 - 14:11:38 EEST

On Tue, 2007-10-09 at 14:02 +0300, Sampo Savolainen wrote:
> Quoting Patrick Shirkey <pshirkey@email-addr-hidden>:
>
> > For example if I transfer 200mb to a usb disk the copy command takes
> > about 30 seconds before it returns and the data takes about 5 minutes
> > before it is actually finished being transferred and the device is
> > unmountable.
>
> quick-hack(tm)
>
> (cp -a /xxx /usb_device && sync) &
>
> But remember sync flushes _everything_.

Slightly-slower-hack: add the 'sync' option to whatever script or config
file is used to mount the device (/etc/fstab, udev rules, KDE service
menu etc). That way all writes will be synchronised automatically.

--ll

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev

Received on Tue Oct 9 16:15:03 2007

This archive was generated by hypermail 2.1.8 : Tue Oct 09 2007 - 16:15:03 EEST