1

I am getting Input/output error while opening a folder in 12.04. Also, I am not able to see file in another folder.

I am getting below error. Please help me recovering the folder.

Error: Error when getting information for file '/media/Data/softwares/windows': Input/output error
Please select another viewer and try again.
Dinesh
  • 11
  • What filesystem is it on? – Untitled Aug 29 '12 at 02:28
  • @mateo_salta: I am using my hard drive, yes, inside my computer – Dinesh Aug 30 '12 at 01:50
  • @SahandMozaffari: it is on NTFS – Dinesh Aug 30 '12 at 01:51
  • is it a second partition on the drive for windows? do you use hibernate on windows? – Mateo Aug 30 '12 at 01:52
  • actually i have three partitions, one for Ubuntu, one for Windows and another for data. I am facing problems in data partition for a folder. Also, i am not able to open this folder even from Windows. I dont use hibernate. – Dinesh Aug 30 '12 at 01:54
  • that is good, it rules out this problem http://askubuntu.com/q/105958/47291 , so are you trying to recover those files specifically, or trying to stop the errors from happening, http://askubuntu.com/questions/59968/recover-accidentally-removed-files-on-ntfs-partition – Mateo Aug 30 '12 at 02:02

2 Answers2

1

It is likely that your Data disk may be dying or at least have it's filesystem corrupted (which, again, is often a symptom of the disk dying).

Firstly make sure you have backups of all important data on that disk.

Then you can check S.M.A.R.T. status of the drive and run self-checks. If the checks say the drive is OK then run a filesystem check utility, depending on the type of filesystem you have on that drive.

  1. Read the wikipedia article

  2. Install smartmontools package

  3. Read Ubuntu wiki

  4. Run "long" or "extended" test on the drive with sudo smartctl -t long /dev/sdX, wait for it to finish, see if the test completes successfully, possibly paste the output of sudo smartctl -a /dev/sdX here

Sergey
  • 43,665
  • I had run self chek, and it says drive is ok. But, can you please explain what S.M.A.R.T is, and how to check it? – Dinesh Aug 30 '12 at 01:53
  • @Dinesh: I've added instructions and links – Sergey Aug 30 '12 at 03:07
  • I have installed and run teh smartmontools.. please check the result of sudo smartctl -a here – Dinesh Sep 01 '12 at 02:34
  • Have you ran sudo smartctl -t long /dev/sdX? This should schedule a "long" self-test, which should take about an hour to finish. At the moment there are some errors logged, but they all seem to have happened a few hundred hours ago. To be honest, I'm always having trouble interpreting the output from smartctl :) – Sergey Sep 01 '12 at 08:25
  • yes, I ran sudo smartctl -t long /dev/sdX, and it took almost an hour.. yeah I tried to analyze the output, but its hard for me.

    can you please tell me what should i look for, and how to recover lost data, if i am able to using this tool.

    – Dinesh Sep 02 '12 at 00:52
  • just want to update you that, i got the data back :) Initially i was not able to open folder, but later the folders got disappeared.

    yesterday i found that all my data is in a folder named something like 'lost & found'... copied back to my desired location. Any ways, thanks for your answers. do you know why this happened...

    – Dinesh Sep 04 '12 at 04:08
  • "...your system might crash... at the next boot, a lengthy filesystem check... using fsck will be done. Fsck will go through the system and try to recover any corrupt files that it finds. The result of this recovery operation will be placed in (/lost+found). The files recovered are not likely to be complete or make much sense but there always is a chance that something worthwhile is recovered. Each partition has its own lost+found directory. http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/lostfound.html - the filesystem got corrupted (either because of the drive error or system crash. – Sergey Sep 04 '12 at 06:40
  • I think it's got virus – Anwar Aug 03 '21 at 00:24
-4

It could mean that the directory is FRAGMENTED or that the Hard-Disk isn't reading right from the surface and it wont load the folder. This happens to me sometimes try re-installing ubuntu