1

I had some problem. I need to copy about 10 million small files to an external hard drive. I was trying to do the job by several ways, but nothing worked.

First I tried cp command. But after about a million of files were copied, it slowed down badly.

Second I tried to make a tar. But after about 20 hours of work only 5 million files were archived.

Then I tried the rsync command. But the result was the same as with the copy command.

At the end my external drive stopped working at all...

I have a new external hard drive. The problem begin when I was trying to copy fileswith the help of rsync command

After an hour about 1 million files were copied, but then the process stopped I canceled the process and now I cannot open my hard drive The process was canceled by CTRL + C in the terminal. After that I couldn't open the dist and just restarted the PC

If I try to open it, it gives an Error:

Unable to access Transcend. An operation is already pending

If I open the Disks. I can see the Hard Drive there.

Assessment: Disk is Ok

But there is an active Job.

Mounting Filesystem.

Menu for the disc is unavaliable. I cannot format it.

I've already restarted the PC. No changes I've also tried to remove the hard drive and insert it again. But also no changes

How can I fix this problem?

I'm using Ubuntu 20.04. External Hard Drive format is ext4

Finally I have 2 problems.

  1. I still don't know how to copy such amount of files.
  2. My external hard drive stopped working (

Update lsblk:

sde           8:64   0   3,7T  0 disk 
└─sde1        8:65   0   3,7T  0 part 

df -i command

0 Answers0