Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usbstick doesn't store data
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Radi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 108

PostPosted: Fri Mar 04, 2005 11:45 am    Post subject: usbstick doesn't store data Reply with quote

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
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Fri Mar 04, 2005 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Radi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 108

PostPosted: Fri Mar 04, 2005 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Fri Mar 04, 2005 6:49 pm    Post subject: Reply with quote

Do you actually unmount it before you pull the stick out?
Back to top
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Fri Mar 04, 2005 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sat Mar 05, 2005 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Sat Mar 05, 2005 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Sat Mar 05, 2005 5:02 pm    Post subject: Reply with quote

You probably don't have to unmount through the automounter. Just

Code:
umount /mnt/whatever
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Sun Mar 06, 2005 4:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Radi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 108

PostPosted: Sun Mar 06, 2005 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum