2

Ls -l Commanded on to the directory with IO porblems

So, Basically when I open my media drive, I get an annoying error message from nautilus 'IO Error Can't read 2 files (songs actually)' and same goes with the ls -l command. I believe the file ain't there but somehow it's index is. I have Root access so there is no privilege problem here. Can somebody help me?

Byte Commander
  • 110,243

1 Answers1

3

The simplest way to correct this error is to delete the files -- if they're damaged and unreadable, you lose nothing that's not already gone. This will remove the directory entries so Nautilus won't try to read the files when it opens the folder.

However: the damaged files may indicate problems developing with the storage hardware (hard disk or SSD), or other corruption of the file system on that volume (can be caused by unscheduled shutdown of the computer, especially while files are open). I'd recommend that you use a disk checking utility to verify that the filesystem is otherwise okay, as well as a S.M.A.R.T. reader to check that the hardware isn't failing. If the hardware is going, you stand to lose everything stored on it...

One other recommendation, from comments, is that if the filesystem in question here is NTFS, use only Windows tools to repair it -- even if that means connecting the storage medium to a Windows computer because you won't have Windows on your Ubuntu machine.

Zeiss Ikon
  • 5,248