On Wed, Apr 06, 2016 at 12:17:48PM +0200, Jean-Pierre André wrote: > There are several ways to tackle this issue, but before > doing anything, it would be useful to define what is > needed : just identifying which files are bad (and > recover them from some archive), recovering a few > files, etc. The issue is in a Windows system directory, > so there is probably nothing user related there.
The problem is not really with this particular image. It's not that we need to recover files from it or anything like that. The problems are: - How did this situation arise in the first place? - Could it happen again for other Windows guests. Plus, it'd be nice if ntfs-3g could ignore (or at least not give a hard error) in these cases. It's actually the getdents(2) system call which fails, so any access at all to the directory returns -EILSEQ. We were trying to read a few files from \Windows\System32, it's most likely that the "corrupt" file is not a file that we care about. > Another parameter is the time you are willing to spend > on this. I probably have tools which I can send to you > personally if the customer does not want me to get the > image. I've asked the customer now if I can distribute the metadata in public. > A few ideas : > > - identify the inode number of bad files and extract > the contents by using ntfscat > - patch the file names on disk and run chkdsk to > adjust directories. > - hack the Unicode to utf8 translation so that the > invalid characters do not block (the translation has > to be done both ways for processing directories). > > By the way, please check the $UpCase file : > md5sum 'sysroot/$UpCase' > (quoted needed for the $), you should get one of : > 6fa3db2468275286210751e869d36373 It's this one: # md5sum \$UpCase 6fa3db2468275286210751e869d36373 $UpCase Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org ------------------------------------------------------------------------------ _______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel