Re: Problem flushing buffers for USB devices.

2010-12-11 Thread Klistvud

Dne, 11. 12. 2010 05:07:31 je C.T.F. Jansen napisal(a):

Greetings,
  The flushing of buffers for devices plugged into a USB port  
is problematic. When writing data to a USB stick it usually took two  
attempts to write a directory to a USB stick. The first attempt  
didn't show the directory was there when it was removed then plugged  
back in.


Gnome does that automatically *provided that* you right-click on the  
USB drive icon and select Unmount (or was it Eject?) from the menu.  
Abrupt removing/replugging USB drives will only corrupt your data. Of  
course, I may be reading your situation wrong; in that case, please  
disregard my post.


--
Cheerio,

Klistvud  
http://bufferoverflow.tiddlyspot.com
Certifiable Loonix User #481801  Please reply to the list, not to  
me.



--
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/1292065546.865...@compax



Re: Problem flushing buffers for USB devices.

2010-12-11 Thread teddieeb
Jansen napisal(a):
 Greetings,
   The flushing of buffers for devices plugged into a USB port  
 is problematic. When writing data to a USB stick it usually took two  
 attempts to write a directory to a USB stick. The first attempt  
 didn't show the directory was there when it was removed then plugged  
 back in.

Gnome does that automatically *provided that* you right-click on the  
USB drive icon and select Unmount (or was it Eject?) from the menu.  
Abrupt removing/replugging USB drives will only corrupt your data. Of  
course, I may be reading your situation wrong; in that case, please  
disregard my post.

-

I read the post the same way;
I would add, outside of a GUI, if you have privileges you can run the unmount 
command in a shell or command line.

E.G.

#umount /media/usb-mount-point


TeddyB


-- 
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/1241478202-1292066005-cardhu_decombobulator_blackberry.rim.net-9596607...@bda029.bisx.prod.on.blackberry



Re: Problem flushing buffers for USB devices.

2010-12-11 Thread Eduardo M KALINOWSKI

On 12/11/2010 09:05 AM, Klistvud wrote:

Dne, 11. 12. 2010 05:07:31 je C.T.F. Jansen napisal(a):

Greetings,
   The flushing of buffers for devices plugged into a USB port
is problematic. When writing data to a USB stick it usually took two
attempts to write a directory to a USB stick. The first attempt
didn't show the directory was there when it was removed then plugged
back in.

Gnome does that automatically *provided that* you right-click on the
USB drive icon and select Unmount (or was it Eject?) from the menu.
Abrupt removing/replugging USB drives will only corrupt your data. Of
course, I may be reading your situation wrong; in that case, please
disregard my post.


Not only gnome: umount the disk (no matter how the umounting is invoked) 
should flush all buffers.



--
I never deny, I never contradict.  I sometimes forget.
-- Benjamin Disraeli, British PM, on dealing with the
   Royal Family

Eduardo M KALINOWSKI
edua...@kalinowski.com.br


--
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/4d036b05.2080...@kalinowski.com.br



Re: Problem flushing buffers for USB devices.

2010-12-11 Thread Paul Cartwright
On 12/11/2010 06:13 AM, teddi...@tmo.blackberry.net wrote:
 Gnome does that automatically *provided that* you right-click on the  
 USB drive icon and select Unmount (or was it Eject?) from the menu.  
 Abrupt removing/replugging USB drives will only corrupt your data. Of  
 course, I may be reading your situation wrong; in that case, please  
 disregard my post.
I usually do a
$mount

look for the device then
$ umount /dev/sd?1

what menu are you talking about?? from the menu??

-- 
Paul Cartwright
Registered Linux user # 367800


-- 
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/4d036b15.5050...@pcartwright.com



Problem flushing buffers for USB devices.

2010-12-10 Thread C.T.F. Jansen

Greetings,
  The flushing of buffers for devices plugged into a USB port 
is problematic. When writing data to a USB stick it usually took two 
attempts to write a directory to a USB stick. The first attempt didn't 
show the directory was there when it was removed then plugged back in.


I then used sync a couple of times to flush the buffers after write then 
lo and behold the data remained on the USB stick after the first write.


This is a problem, that data should not need a follow up sync for it to 
be properly written to the USB stick.


Recently a dialup modem was plugged in to the computer using a serial to
USB cable. This worked up to a point.  Sometimes it is very slow 
especially on thunderbird (icedove) and on some websites, especially 
google's. After doing a sync every couple of seconds one notices that 
the  read-data light on the modem comes on soon after the sync command 
and the data from website comes much more quickly.


That is a bug which needs to fixed; one shouldn't have to run a script 
to do a sync every couple of seconds just so that USB  traffic goes to 
and fro as it should.


Is there an adequate fix ? Have Debian 5.04 here on an Asus notebook, a 
PRO50G . Problem especially noticeable on iceweasel and icedove from 
this release. Didn't noticed any rise in CPU or memory use for any of 
the processes, not the kernel processes with a k prefix either. Nothing 
stood out on the syslog or anything else in /var/log on an initial 
inspection.


Thanks in advance.

frank.jan...@actrix.gen.nz, ZL2TTS


--
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/4d02f903.7060...@actrix.gen.nz