directories recursively defined inside the disk

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read
Posts: 1
Joined: 28 Apr 2014, 20:49

directories recursively defined inside the disk

#1 Post by pauloney »

I have a Linux/Windos box that went bad after the last update of Windows 7. It gave a grub-error back and never booted again. After trying to recover the partition without sucess. I moved on to recover the data inside the partition with TestDisk. Initially things went well, but soon a home directory that was supposed to have only 200 Gigs fill out a 500Gig disk. I changed to a 1 Tera, same thing happened - the disk went full before the process of recovery could be finished. Tried with a 2 Tera disk and the same thing...

So, looking in a bit more detail I found some 8 occurrences of this odd thing! A "unsuspecting" file (in general a figure) would be turned into a directory and that directory would contain a full copy of the Linux installation, like in:

Code: Select all

paulo@ubuntu:cd  /media/paulo/Seagate Expansion Drive/home/paulo/KnotFigs/10_37.eps
paulo@ubuntu:/media/paulo/Seagate Expansion Drive/home/paulo/KnotFigs/10_37.eps$ ls
bin    etc    lost+found  proc  selinux
boot   home   media       root  srv
cdrom  lib    mnt         run   sys      usr
dev    lib64  opt         sbin  tmp      var
and this would happen in a few other places as well - and fill up the disk being used for recovery.

I have now (3 days into the process) chased some 30 occurrences of the entire Linux installation inserted at some point of the disk, and I am suspecting more and more this to be a bug with TestDisk rather than a problem with the data in the disk. My main reason is:

It only occurs at very specific types of files, 4 I have found: .eps, .pdf, .mf and .log (both from TeX).

Anyone has any thoughts on what the problems is ?

User avatar
Site Admin
Posts: 5435
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: directories recursively defined inside the disk

#2 Post by cgrenier »

Do you have the problem with latest TestDisk 7.0-WIP ? If it's the case, please post the testdisk.log file section corresponding to a directory listing where there is a file causing this loop.