Register FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed Jun 19, 2013 05:05



Post new topic Reply to topic  [ 2 posts ] 
Decompress Recovered Compressed Sectors 
Author Message

Joined: Thu Jun 04, 2009 00:09
Posts: 1
Post Decompress Recovered Compressed Sectors
Could anyone please help me with a disk I've been working on recovering for years. It contains a previously compressed NTFS partition with a completely missing MFT so there isn't a single trace of the compression information. The data lost was a Microsoft Backup file - which thankfully marks each archived file with a FILE header.

I have decided to splice the data myself into identifiable files (identifiable by the "FILE" at the start of the compressed block).

Is there any way to harness the decompression ability of this driver to forcefully decompress a block of raw data? (note, I'm good with scripts, but I'm not able to follow the code in the compress.c source).

Anyone any idea?


Thu Jun 04, 2009 00:18
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1013
Post Re: Decompress Recovered Compressed Sectors
Hi,

Quote:
Is there any way to harness the decompression ability of this driver to forcefully decompress a block of raw data?

In a compressed file, each block of 4K is compressed independently, so you should be able to interpret its contents. However if cluster size were smaller than 4K the blocks might be non-contiguous.
Now, to locate the beginning of a block, you have to search for a pattern 0xbn (>= 0xb0 and <= 0xbf) in the second byte of a cluster.

When you get such a block, you can decompress it by applying the function ntfs_decompress() from compress.c

Regards

Jean-Pierre


Thu Jun 04, 2009 07:14
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.