View previous topic :: View next topic |
Author |
Message |
Radi Tux's lil' helper
Joined: 09 Jul 2002 Posts: 108
|
Posted: Fri Mar 04, 2005 11:45 am Post subject: usbstick doesn't store data |
|
|
Hi all,
I have installed the dbus,hal,ivman stuff automounting solution, it works quite well, accept for the fact, that everytime when i copy some files on the stick, the files are not there after unplugging it and plugging it in again.
for example
/dev/sdb1 on /media/KINGSTON type vfat (rw,noexec,nosuid,nodev,sync,noatime,user=radi)
this is what mount gives me if the device is plugged in, i have no write permission problems, as far as i can see. even if it is vfat.
it seems every time i copy some files to the stick they get cached somewhere, and in the moment i unplug it they are not written onto the stick.
hope someone can help me out with that, thx |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Fri Mar 04, 2005 12:13 pm Post subject: |
|
|
you might need to use FAT. My stick will format itself if I write anything with vfat and unplug it. The other issue is that the stick might not be getting unmounted properly and this causes it to format itself. Try mounting it manually and see if the problem persists. |
|
Back to top |
|
|
Radi Tux's lil' helper
Joined: 09 Jul 2002 Posts: 108
|
Posted: Fri Mar 04, 2005 1:32 pm Post subject: |
|
|
The stick is not formatting itself, i have mounted it manuelly and created a file there, then i have done the same with automounting and it worked too, its only a problem when i want to copy something in kde over there, cp works to.... hem... |
|
Back to top |
|
|
lbrtuk l33t
Joined: 08 May 2003 Posts: 910
|
Posted: Fri Mar 04, 2005 6:49 pm Post subject: |
|
|
Do you actually unmount it before you pull the stick out? |
|
Back to top |
|
|
jannis Guru
Joined: 05 Dec 2004 Posts: 340 Location: Germany / Bavaria / Aschaffenburg
|
Posted: Fri Mar 04, 2005 6:56 pm Post subject: |
|
|
As he told he is using an automounter,
But this is the point I think.
Can you tell an automounter to unmount a device? You might try this at least ^^
My USB-Stick copies with 2MBytes/sec but takes 5 Minutes to unmount. Disk-Cache rulz ^^ |
|
Back to top |
|
|
lbrtuk l33t
Joined: 08 May 2003 Posts: 910
|
Posted: Sat Mar 05, 2005 2:50 pm Post subject: |
|
|
No, you can't actually get sometimg to auto unmount. It's simply not possible. To unmount the partition safely, the usb stick must still be connected. If you suddenly rip it out with no warning, how's the automounter supposed to unmount it?
There's no way of it knowing that you're just about to rip out the stick. It's not as though it has a sensor next to the usb port which can tell when your hand's near the stick. |
|
Back to top |
|
|
jannis Guru
Joined: 05 Dec 2004 Posts: 340 Location: Germany / Bavaria / Aschaffenburg
|
Posted: Sat Mar 05, 2005 3:16 pm Post subject: |
|
|
yeahm, that's what I wanted to say.
Tell the automounter to unount it before you remove it or at least flush the cache. |
|
Back to top |
|
|
lbrtuk l33t
Joined: 08 May 2003 Posts: 910
|
Posted: Sat Mar 05, 2005 5:02 pm Post subject: |
|
|
You probably don't have to unmount through the automounter. Just
Code: | umount /mnt/whatever |
|
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Sun Mar 06, 2005 4:49 am Post subject: |
|
|
I believe the workaround would be to mount the stick with -o sync
This would behave slower because you won't get a prompt back until it's actually done transferring to the stick, not just to RAM. However, it will probably not corrupt on you if you don't want to worry about unmounting manually. Not sure if these things need to be 'closed' or not. Worth a shot, tho. |
|
Back to top |
|
|
Radi Tux's lil' helper
Joined: 09 Jul 2002 Posts: 108
|
Posted: Sun Mar 06, 2005 7:35 pm Post subject: |
|
|
as i described above, it ist no problem with cp, only with the kde copy function. So its mainly a kde problem.
I have used submount befor i used ivman, and sub stick plugging and unplugging works without problems,
so i see no problem why it shouldn't work in this case. |
|
Back to top |
|
|
|