You are not logged in.

#1 2024-08-24 14:46:05

Marvix
Member
Registered: 2013-10-08
Posts: 150

Can't delete file in external hard drive with NTFS file system

There is an .iso file at 500 MB deleted in .Trash folder at an external hard drive with NTFS file system.

As far a I try to delete it, even with rm command, I get the following error message

rm: cannot remove '/run/media/marvix/external_hard_drive/.Trash-1000/expunged/779368574/S-1-5-18/$R8IAZ9Y/file.iso: No such file or directory

The permissions are

-rwxrwxrwx 1 marvix marvix 518950912 Mar  6  2022 '/run/media/marvix/external_hard_drive/.Trash-1000/expunged/779368574/S-1-5-18/$R8IAZ9Y/file.iso'

What can be done?

Offline

#2 2024-08-24 17:37:48

cryptearth
Member
Registered: 2024-02-03
Posts: 1,216

Re: Can't delete file in external hard drive with NTFS file system

Marvix wrote:

What can be done?

connect the drive to a system running windows and perform an extensive checkdisk with the options F R X and B

chkdsk x: /F /X /R /B

wher x is the letter it gets mounted to
after checkdisk cleaned the drive I then recommend running the drive cleaning tool on it - this should be able to get rid of any residue
if this is your drice and you want to use it on linux: do a full backup and reformat it with a posix filesystem like ext4
if this is your drive and you wantvto use it to exchange data between windows and linux (and mac): reformat it as exFAT
if this is not your drive: go buy your own and use either a posix fs or exfat and hand it to others you wantvto exchange data with as otherwise there's the risk you kill thier windows-drives with your linux
or use windows to access ntfs and exchamge data with linux via network like smb or ftp

Offline

Board footer

Powered by FluxBB