Posts

Showing posts with the label ext

EXT3 undelete

As you probably know, there are three basic variants of EXT filesystem versus undelete, depending on whether extents and journaling are used. no extents and no journaling - EXT2;  journaling only, but no extents - EXT3; both journaling and extents - EXT4.  Journaling for whatever fancy filesystem development reasons requires inodes to be cleared (overwritten with zeros) when files are deleted. However, we now have an undelete capability for EXT3 (where extents are not used) in our ReclaiMe Pro software. The undelete requires the full scan of the disk to work, and also file names cannot be recovered (because inodes are gone), but otherwise works fairly decent.

Hindsight in filesystem design

NT4 (NTFS 1.2) did not store numbers of MFT records. If MFT became fragmented, it appeared that there are millions of file records linked in the tree based on the record numbers. However, it was difficult to establish what number belonged to what record. Algorithms for detecting record numbers were complex, unstable, and requiring a lot of resources. Starting with Windows XP, the MFT entry number is stored inside the entry itself that, as it was planned, had to facilitate data recovery.   When the volume was updated, for example, when a volume created in NT4 was connected to Windows XP for a first time, all records remained in the old format, without numbers. Records were brought into a new format only when a file, which the records referred to, was changed. So, we were encountering hybrid volumes over the several years thereafter. When at last, users ceased to format disks using NT4, all the records were numbered and data recovery software eventually stopped to support the ...

Group-based filesystems and JBODs.

As of now, there is no automatic recovery of JBOD parameters. At least, I'm not aware of any automatic software that really works. With a filesystem which stores its metadata all in one place and close to the start of the partition, like FAT or NTFS, you only get the data from the first JBOD member. All the files on the second and further members is lost. However, with a group-based filesystem, like Linux EXT-series, you can get much of the data by just feeding JBOD members to the data recovery software in turn. In group-based filesystems, metadata is spread evenly across the partition, and file contents are put close to their corresponding metadata. So, if you scan separate JBOD members and then combine the results (skipping empty files and correcting for a loss of folder tree), you can get most of the files out. You cannot recover files which have contents and metadata on two different JBOD members, and also parent-child relationships crossing the disk boundary will be lost....

Fragmentation on ext filesystems

Just had to increase the hard limit for a number of fragments per file on ext filesystem in our ReclaiMe data recovery software, from 64K to 256K. On NTFS, it is not uncommon to see 20,000 or so fragments per file, but ext just beats the hell out of NTFS as far as fragmentation is concerned.

Case-sensitive Filenames

Linux filenames are case-sensitive, and hence ext filesystems allow files which are only different by upper vs. lower case. Okay, this is to be expected. More interestingly, it is possible to have a directory Test and a file test within the sampe parent directory. Does not look like we can resolve it gracefully, because under Windows we have to rename one of those. Obviously, it seems better to rename a file. However, this still breaks the program which used a file named test to contain some catalog of the folder named Test .