This forum has been archived. All content is frozen. Please use KDE Discuss instead.

dataloss when safely removing USB HDD?

Tags: None
(comma "," separated)
kamazeuci
Registered Member
Posts
3
Karma
0
I am copying a 817 MB video file to an external ext4 USB HDD with Dolphin on Endeavour OS with i3wm. Kernel 5.10.32-1-lts.
File copies ok. I open file inside external USB HDD and I can play it ok. Full 817 MB are on it.
I safely remove drive through dolphin UI. Then I connect USB HDD to computer again (or other computer, it’s the same), and There’s only 8MB of the file (8.388.608) (and once it was even a 0 byte file)
There’s still 3,2 GB free on external HDD.
I have done this many times but haven’t been able to copy the whole file.
If I copy using terminal, with sudo cp, everything works ok.
Is this a dolphin bug?

thanks
Massimiliano
Registered Member
Posts
10
Karma
0
OS
KDE has issues in reporting the progress of file transfers (Bug #281270) but in my experience safe removal should not occur before the actual writing is finished.

How much does it take to transfer the file? 8 MB sounds a bit of a strangely small number.

Can you try to run 'sync' from a terminal, either before or after the unmount?
kamazeuci
Registered Member
Posts
3
Karma
0
It takes about 4 seconds I think. But after it copies, the file is in full size and totally playable at the destination (USB ext4 HDD)
I will try sync, thanks.
anyway, I think it should work without sync.
Massimiliano
Registered Member
Posts
10
Karma
0
OS
kamazeuci wrote:It takes about 4 seconds I think. But after it copies, the file is in full size and totally playable at the destination (USB ext4 HDD)
I will try sync, thanks.
anyway, I think it should work without sync.


Yes, I suppose because the file manager is reading some kind of cache. Knowing what happens with sync should help in filing a proper bug report.

Also look at the output of 'journalctl -k' that usually reports I/O errors.
kamazeuci
Registered Member
Posts
3
Karma
0
I tried to reproduce error today but I coulnd't do it. I suppose maybe it had to do with something that was resetted when system rebooted.
Anyway.
thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]