Mailinglist Archive: opensuse (6210 mails)

< Previous Next >
Re: [SLE] unplugging USB hard disks
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Thu, 20 Oct 2005 14:57:58 -0700
  • Message-id: <200510201457.58873.rschulz@xxxxxxxxx>
Adam,

On Thursday 20 October 2005 14:49, adamvaz@xxxxxxxxxxxxx wrote:
> Hello from Adam in NYC w SUSE 10.
>
> As long as you dont have active file access, like a browser looking a
> subdirectory of the usb drive or a xterm sitting doing the same, you
> just do sync: sync: sync: and unmount. If there is complaining, then
> you just boobooed.

Let's not propagate or encourage superstitious behavior, OK?

Syncing twice in a row is redundant. Syncing before unmounting is
redundant. The kernel / FS code will carefully flush all modified
internal structures and pending write buffers to the device before the
sync(2) system call returns. The only reason to sync before shutting
down is because the root file system cannot be unmounted.


> Adam


Randall Schulz

< Previous Next >
References