You are not logged in.

#1 2006-12-18 16:16:47

dienadel
Member
Registered: 2005-12-23
Posts: 179

Sync with USB pendrive in KDE

Hello,

When i insert an USD memory, KDE correctly detects it and open a konqueror window with the USB content. Perfect. Then, i copy various MB to it. Perfect. Close the window, right-click over the icon and select "Safety extract" (i've translated it, as i've KDE in spanish), and a moreless 0,3 sec. later, the icon disappears.

It seems that all the process was OK but it isn't. When extracting the USB, inserting again all the MB of data that  were copied aren't in the USB.

What really happened was that the sync operation is not made when i copy the files, umouting instead. But, as the icon in the desktop dissapears, it appears that i can safely remove the USB. The copy process is done after that icon have dissapeared, as the lights of the USB keep "flashing". If i remove the USB when that lights stops, and insert again, the files have been copied.

Well, the question is how can i make to avoid that the device icon dissapears unless the copy process finished ok... or isn't this the normal behaviour?

I think that this can be controlled moreless with fstab, but i haven't no entry in fstab related to extraible devices, as with pmount is no necessary, so, any solution?

Searching the forum found similar questions but not exactly this.

Offline

#2 2006-12-18 20:40:40

thewonka
Member
From: San Diego, CA
Registered: 2006-11-05
Posts: 13
Website

Re: Sync with USB pendrive in KDE

Your problem seems to be that the filesystem is not flushing before it tries to unmount, what file system do you have on the device? vfat is common for usb sticks.. the problem might be that the automount might have the filesystem set to flush on unmount.

Connect the device and run 'mount' without any parameters in a shell, look for the entry for the device ( usually /dev/sda ) in the mount options see if there is 'flush'.

Offline

#3 2006-12-18 21:10:04

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: Sync with USB pendrive in KDE

Is vfat:

/dev/sda on /media/disk-2 type vfat (rw,noexec,nosuid,nodev,noatime,uid=1000,utf8,shortname=lower)

I'll try with another device in the next days.

Offline

#4 2006-12-26 10:01:46

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: Sync with USB pendrive in KDE

A provisional trick that "solves" it.

In KDE, i've set up the option that in the desktop only must appear mounted devices. I changed it, so an ummounted USB is shown in the desktop too.

With this "trick", when i "safely extract", happens this:

- Select safely extract
- In 0,3 seconds the "green" avatar (is mounted) dissapears.
- The USB device keeps on in the desktop, but as if it was umounted
- No progress bar
- When all the copy process has finished, the icon disappears

Offline

Board footer

Powered by FluxBB