“Directory not empty” and “Input/output error” when “cd”/”ls” into certain dirs or “rm -rf” certain files of a mounted storage drive
I have a storage device (sda) where I stored some backups in its partition 1 (sda1). Disgracefully, I killed the process (rsync
) that was backing up data into the mounted storage device and, I guess, creating a fault in the drive.
Now I am trying to undo the mess by removing all files from the backup dir. I can successfully remove most of the files and directories I backed up before the crash, although many don’t want to be deleted and show Directory not empty
or Input/output error
. I guess these files are the ones that couldn’t fully be copied into the backup directory because of me killing the rsync
process.
Since I am using a server OS I can’t use a GUI to throw these files into the paper bin and then flush it (as I’ve seen other people do with similar issues).