Re: Thunar, USB-sticks and big files

2012-11-21 Thread Osamu Aoki
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.

Osamu


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121115024.GB11848@goofy.localdomain



Thunar, USB-sticks and big files

2012-11-18 Thread Andreas Rönnquist
Hi guys!

I have a problem copying big files to an USB-stick using thunar in
Debian Stable. Doing the actual copying is mostly fine and no error is
printed, but when unmounting the USB memory (I guess it is then the
files are actually copied) - the device pretty much always times out,
giving an error message, and the copied files are not readable. 

I do this to copy ripped DVD's to USB memory for viewing in a TV with
USB connection - the result is that if the files are copied using
Thunar, it fails, the files are not readable by the TV, but if copying
using terminal and a simple cp, it works just fine.

Has anybody seen similar results - is there anything to be done to
solve it?

Nothing extremely serious, I can still copy the files using terminal as
I said, but it would be nice to have it working using only Thunar too.

-- Andreas Rönnquist
mailingli...@gusnan.se
gus...@gusnan.se


signature.asc
Description: PGP signature


Re: Thunar, USB-sticks and big files

2012-11-18 Thread Osamu Aoki
Hi,

On Sun, Nov 18, 2012 at 11:58:29AM +0100, Andreas Rönnquist wrote:
 Hi guys!
 
 I have a problem copying big files to an USB-stick using thunar in
...

 I do this to copy ripped DVD's to USB memory for viewing in a TV with
...
 Nothing extremely serious, I can still copy the files using terminal as
 I said, but it would be nice to have it working using only Thunar too.

You see this list talking the same problem :-)
You are hitting 4GB limit of FAT.

Reformat USB stick with
 * ext2/3/4 if moving around Linux.
 * Darwin UFS, I think, for Mac
 * NTFS for Windows ...

Osamu



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121118122815.GA24927@goofy.localdomain



Re: Thunar, USB-sticks and big files

2012-11-18 Thread Andreas Rönnquist
 Hi,
 
 On Sun, Nov 18, 2012 at 11:58:29AM +0100, Andreas Rönnquist wrote:
  Hi guys!
  
  I have a problem copying big files to an USB-stick using thunar in
 ...
 
  I do this to copy ripped DVD's to USB memory for viewing in a TV
  with
 ...
  Nothing extremely serious, I can still copy the files using
  terminal as I said, but it would be nice to have it working using
  only Thunar too.
 
 You see this list talking the same problem :-)
 You are hitting 4GB limit of FAT.
 
 Reformat USB stick with
  * ext2/3/4 if moving around Linux.
  * Darwin UFS, I think, for Mac
  * NTFS for Windows ...
 

(No need to CC the replies to me, I read the list)

But I am not nowhere near using 4GB... Files are around 700MB each, and 
one of the tried USB sticks is only 2GB big, so I would guess that
doesn't apply? - and as I said, it works just fine when doing the same
thing in a terminal.

Copying works just fine in both terminal and Thunar, but when
unmounting the device (I guess its at this point the files are actually
written to the device), the action times out (and the resulting
files are not properly readable) when using Thunar, but not when using
the terminal.

/Andreas


signature.asc
Description: PGP signature


Re: Thunar, USB-sticks and big files

2012-11-18 Thread Neal Murphy
On Sunday, November 18, 2012 07:57:09 AM Andreas Rönnquist wrote:
  Hi,
  
  On Sun, Nov 18, 2012 at 11:58:29AM +0100, Andreas Rönnquist wrote:
   Hi guys!
   
   I have a problem copying big files to an USB-stick using thunar in
  
  ...
  
   I do this to copy ripped DVD's to USB memory for viewing in a TV
   with
  
  ...
  
   Nothing extremely serious, I can still copy the files using
   terminal as I said, but it would be nice to have it working using
   only Thunar too.
  
  You see this list talking the same problem :-)
  You are hitting 4GB limit of FAT.
  
  Reformat USB stick with
  
   * ext2/3/4 if moving around Linux.
   * Darwin UFS, I think, for Mac
   * NTFS for Windows ...
 
 (No need to CC the replies to me, I read the list)
 
 But I am not nowhere near using 4GB... Files are around 700MB each, and
 one of the tried USB sticks is only 2GB big, so I would guess that
 doesn't apply? - and as I said, it works just fine when doing the same
 thing in a terminal.
 
 Copying works just fine in both terminal and Thunar, but when
 unmounting the device (I guess its at this point the files are actually
 written to the device), the action times out (and the resulting
 files are not properly readable) when using Thunar, but not when using
 the terminal.
 
 /Andreas

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?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201211181231.01744.neal.p.mur...@alum.wpi.edu



Re: Thunar, USB-sticks and big files

2012-11-18 Thread Andreas Rönnquist
 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...

-- Andreas Rönnquist
mailingli...@gusnan.se
gus...@gusnan.se


signature.asc
Description: PGP signature


Re: Thunar, USB-sticks and big files

2012-11-18 Thread Neal Murphy
On Sunday, November 18, 2012 01:43:54 PM 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...

The current version of teh command line umount does seem to wait until all 
data are flushed to the drive before exiting; older versions, IIRC, didn't 
necessarily wait.

Hmmm. You said 'timeout'. Could it be that Thunar doesn't wait long enough? 
See if there's a way to increase that timeout. 10 seconds generally ought to 
be long enough, unless you have a *very* slow flash drive.

Or, if there's a way to do it, tell Thunar to mount using -o sync; this 
should disable caching (that is, make the effective policy 'write-through'). 
Writes will be slower, but you won't have to wait for the flush to complete 
when unmounting.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201211181419.48442.neal.p.mur...@alum.wpi.edu