"safely remove" isnt safe

Bug #70417 reported by Toby Dickenson
10
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: kdebase

Using "safely remove" on a usb memory stick causes the desktop icon to disappear immediately, without waiting for any cached writes to complete.

I have observed this behaviour in both edgy and dapper with kde-355, with two different memory sticks.

kde-353 used to show a progress bar while flushing the cached writes. This was still less than ideal because the progress bar stuck at 0% then jumped to 100% once writing was complete, but at least you knew when it was safe to remove the device.

Revision history for this message
James (jet57) wrote :

I can confirm this is an issue on Kubuntu 6.10. Is there a workaround, such as manually flushing cached writes?

Revision history for this message
mokka (mokka) wrote :

I can confirm this.

For me "savely remove" worked in Kubuntu Dapper with kde-353 but not anymore in Kubuntu Dapper nor in Edgy with kde-355.

A possible work-around is to "sudo umount" the drive in the console, because there you can be sure that all files have been saved properly, when the cursor is back again.

Revision history for this message
Dario Teixeira (darioteixeira) wrote :

Confirmed here as well.

This is actually *quite serious* since it can lead to loss of data.

To prevent it, either manually unmount the drive in the console
(umount waits till all the data is flushed) or run "sync" to explicitly
flush the data.

Revision history for this message
Dario Teixeira (darioteixeira) wrote :

I think I now know what the exact problem is: the device's icon disappears
immediately after the user clicks "Safely remove", leading one to believe
the device has immediately unmounted and can be safely removed. Obviously,
the device is only *really* unmounted after all the changes have been flushed,
which can take some time.

Anyway, I couldn't find any reference to this bug in the KDE's bug database.
Also, I don't remember this bug being present in Dapper. Could it be a kubuntu-specific regression introduced in Edgy?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.