You are not logged in.

#1 2010-04-25 18:21:29

murfMan
Member
Registered: 2009-10-27
Posts: 161

[SOLVED] rm: cannot remove file Input/Output error (NTFS HDD)

Im having a weird issue regarding my external (ntfs) hdd.

there is one file on the drive which i cannot get rid of
it keeps giving me:

rm: cannot access file_name Input/Output error

whenever i do ls -lart on it i get:

-????????? ? ?    ?       ?            ? file_name

i tried fschk on the drive and got:

 
sudo fsck /dev/disk/by-label/New\x20Volume 
Password: 
fsck from util-linux-ng 2.17.2
fsck: fsck.ntfs: not found
fsck: Error 2 while executing fsck.ntfs for /dev/sdc2

any suggestions?

thanks

Last edited by murfMan (2010-04-25 20:11:16)

Offline

#2 2010-04-25 19:21:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD)

For the first part, look into rm by inode number.

Offline

#3 2010-04-25 19:51:45

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD)

ls -li
ls: cannot access file_name: Input/output error
total 0
? -????????? ? ? ? ?            ? file_name

sad

Offline

#4 2010-04-25 20:10:41

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD)

i ended up just plugging it into a windows machine and scanning the file-system for errors.  I was then able to remove the file.  i don't think fsck works with ntfs drives.

Offline

#5 2010-04-25 20:57:49

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD)

You would need the ntfs apps on your system; such as: ntfs-3g or ntfsprogs

My guess is that you didn't have that on your machine; a supposition that is supported by fsck.ntfs not being found.


Knute

Offline

Board footer

Powered by FluxBB