Re: Thunar, USB-sticks and big files
- To: firstname.lastname@example.org
- Subject: Re: Thunar, USB-sticks and big files
- From: Osamu Aoki <email@example.com>
- Date: Wed, 21 Nov 2012 20:50:24 +0900
- Message-id: <20121121115024.GB11848@goofy.localdomain>
- In-reply-to: <firstname.lastname@example.org>
- References: <email@example.com> <20121118122815.GA24927@goofy.localdomain> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
On Sun, Nov 18, 2012 at 07:43:54PM +0100, Andreas Rönnquist wrote:
> > Try 'sync' after the write is supposedly complete; see what happens
> > when the system actually tries to write to the device. Open a shell
> > and 'tail -f /var/log/messages' to see if anything is griping about
> > the device during writes.
> > Hmmm. You *are* waiting for the cached data to be flushed to the
> > drive before unplugging it, right?
> hmm, I now I have tried several different USB-sticks, and I still have
> the problem (It perhaps isn't quite as serious as I believed though)...
> If having copied a "big" file, unmounting through Thunar pretty much
> always results in the following error message:
> > Failed unmounting 'Devicename'
> > "Did not receive a reply. Possible causes include: the remote
> > application did not send a reply, the message bus security policy
> > blocked the reply, the reply timeout expired, or the network
> > connection was broken."
> - after a short while (way before the actual writing is done) - But, if
> I keep waiting for some time _after_ this, the data is still written to
> the device as it should. However, it doesn't give any clue whatsoever
> to when it actually is finished writing the files to the device, so it
> is easy to (by mistake) physically take the USB-stick before the data is
> actually written.
> However, I do have one USB-stick, that actually lights up a LED during
> copying, making it pretty easy to spot when it is safe to remove it and
> not, but I kind of wish that that sort of feature wouldn't be necessary
> to safely use an USB-stick...
> If I don't copy any files, or just copy small files, I get that
> standard "It's now safe to remove the device" when unmounting - This
> is what I expect in the scenario with bigger files described above
> too after copying is done, but no...
I do not know how slow is your USB stick but running "sync" in terminal
should write disk cache to USB stick for sure.