File Copying to flash drive problem

I am using Garuda GNOME Lite.
Trying to copying folder in USB flash drive. But when copying finished and try to unmount drive. It gives me an error like this...
ksnip_20201018-165345

and after waiting for about 5 to 10 mins... device automatically unmounted.
Device is formatted as NTFS through GParted.

If writing in progress you can't unmount, e.g. it is better to wait for not losing data.
But we do not know how big your folder is?
Maybe baloo or something else is in progress too, too many ???
All in all it is not a problem, it needs only some time :slight_smile:

1 Like

I also copying files in external hard drive but it dont have problem like this.

Start in terminal top or htop then copy again like before and have a look what's going on

Do you use file browser (which one?), rsync, cp ???

1 Like

Its inbuilt Nautilus file manager of GNOME. and It only shows file number and speed of copying. I restarted laptop and format pendrive too many times. But ,Yes, before first formating of pendrive I used it as bootable usb drive, is that creates any problem??

?


I do not use NTFS so I cant test.

No.

1 Like

ok I will try top or htop and copying small file.

Ok ,

  1. I tried 6kb image file first after formating. It copied quickly and copied successfully.
  2. Then I tried 4GB folder and It copied successfully and some random process is still running after copying finished.
    3.Then I copied 142 MB folder and copied successfully but some random process on flash drive is still running.

This random process running for more time for large file size for 4GB file around 5 to 10 min. and for 142 MB folder it runs for 2 to 3 minutes.

And not much change in resources in top output.

and transfer speed is also very high about 80 mbps.

output of top command:
top - 17:47:44 up 1:07, 1 user, load average: 4.21, 2.81, 2.27
Tasks: 249 total, 1 running, 248 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.4 us, 1.1 sy, 0.2 ni, 65.6 id, 31.2 wa, 0.3 hi, 0.2 si, 0.0 st
MiB Mem : 9801.9 total, 133.4 free, 1724.8 used, 7943.8 buff/cache
MiB Swap: 2450.5 total, 2447.0 free, 3.5 used. 7486.8 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND  
   8369 study     17  -3 2754396 366700 172872 S   4.0   3.7   3:40.08 Web Con+ 
   8298 study     17  -3 3322788 413184 185624 S   3.3   4.1   3:15.40 MainThr+ 
    383 root      39  19  163612  12016   5844 S   1.0   0.1   1:04.68 python3  
    806 study     20   0 4457816 215004  85236 S   0.7   2.1   2:23.12 gnome-s+ 
  13742 root      20   0       0      0      0 D   0.7   0.0   0:03.20 kworker+ 
      9 root      20   0       0      0      0 S   0.3   0.0   0:01.80 ksoftir+ 
     11 root      -2   0       0      0      0 I   0.3   0.0   0:03.35 rcu_pre+ 
     21 root      20   0       0      0      0 S   0.3   0.0   0:04.22 ksoftir+ 
   1141 study     20   0   20056  14224   7728 S   0.3   0.1   0:04.77 python3  
   8431 study     17  -3   32.5g 206568 107920 S   0.3   2.1   0:20.53 WebExte+ 
  12280 study     17  -3 2588260 237840 122852 S   0.3   2.4   0:11.56 Web Con+ 
  15890 study     20   0  626604  51992  39968 S   0.3   0.5   0:00.79 gnome-t+ 
  15959 study     20   0   10372   4032   3440 R   0.3   0.0   0:00.17 top      
      1 root      20   0  176660  13584   9084 S   0.0   0.1   0:03.85 systemd  
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd 
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp   
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par+

Does the same thing happen if you use cp or rsync in the terminal.

2 Likes

@tbg I am using default settings and I don't know how use rsync or cp in terminal. Can you plzz provide me steps or any link to do it?

If you want to succeed in using Archlinux getting used to search the wiki is important, lots of information can be found here auch as instructions on how to use rsync

3 Likes

Copying with the "cp" command is super easy, simply:

cp /path/of/file/you/want/copied /pathe/of/destination/you/copy/file/to

No offense intended, but the reason I didn't respond quickly is that this stuff is super easy to find information about. Rsync is more complex, but it gives you a ton of different ways to transmit files from one location to another.

If you intend to stick with Linux, you should definitely learn about this stuff.

3 Likes

Using rsync:

rsync -av /home/study/AllData/Harshad-Mehta-Story/ /run/media/study/3115D7FC626A303D/
sending incremental file list
./
Scam 1992 the Harshad Mehta Story S01 E01 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E02 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E03 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E04 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E05 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E06 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E07 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E08 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E09 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv
Scam 1992 the Harshad Mehta Story S01 E10 WebRip 720p Hindi AAC x264 - mkvCinemas.mkv

sent 4,407,770,640 bytes  received 209 bytes  49,805,320.33 bytes/sec
total size is 4,406,693,677  speedup is 1.00
~ ❯                                                                      1m 28s

rsync copying finished at 1m and 28s but still I can't unmount the USB drive because some random process is still running and It runs for about 5 mins.

Also I tried,

cp -r /home/study/AllData/Harshad-Mehta-Story /run/media/study/3115D7FC626A303D/

But after copied random process still runs for about 5 mins. And I can't unmount.

1 Like

This may sound off the wall to you but whenever I find an unexplainable issue I always test another kernel to see if it exists there as well.

Having a fallback kernel is a very good safety precaution anyways so it kills two birds with one stone. I would install the linux-lts kernel and the linux-lts-headers as a test.

You can switch kernels after rebooting at the grub menu screen. You should really always have 2 kernels installed anyways, so it's hardly wasted effort.

3 Likes