LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2012, 06:15 AM   #1
finkelstein
LQ Newbie
 
Registered: Jul 2011
Location: NGC 891
Distribution: Fedora 15
Posts: 4

Rep: Reputation: Disabled
FAT12 file systems, root directories, cluster entries and sectors


Apologies if this has been posted in the wrong section.
Been reading an old paper on floppy image forensics the analysis of which can be found here :

http://old.honeynet.org/scans/scan24...nnis/index.htm

I pretty much comfortable with most of the forensics but am slightly confused on one of the sections with reference to the non-zero parts of the root directory and FAT1

From the web page :


Since the file was deleted, the clusters used by it were released in the FAT by setting them to zero. The starting cluster is 0002, which we see in the FAT is set to zero. This file can be recovered in a number of ways using file recovery utilities or extracting the appropriate sectors from the image and placing them in a new file using the Linux �dd� command.


1. I can understand that the deleted doc file can be undeleted using generic software but how is this achieved by using dd ? The starting cluster is 0002 , could someone explain how we can see that it is set to zero in the FAT ?

Moving to the next paragraph down (schedu~1.exe)

This cluster entry is at 109 (0x6D) bytes into the FAT

2.How is this worked out and how is the total number of clusters assigned to the file and their locations calculated ? I can't understand how he arrived at sector 104-108 ?

Next, look at the root directory entry for coverp~1.jpg. The starting cluster is listed as 0x01a4 (420); however, the FAT is completely zero at this location (not shown in the figure); hence, this must not be the correct starting cluster. Look at the FAT. There is a section of assigned clusters that have not been accounted for (turquoise highlighted section). The starting cluster is at offset 0x23F, which corresponds to a cluster value of 42, which is sector 73. Note that the starting cluster of this unidentified file is exactly one-tenth of the advertised starting cluster for the coverp~1.jpg file. Following the linked list in the FAT reveals that sectors 73 through 103 are allocated to this file.

Again I have highlighted in bold black the parts I cannot understand
How are corresponding cluster values and sectors worked out from the starting cluster offset of 0x23F ? AS you can see I'm having trouble interpreting FAT entries, cluster values and sector locations and how they are linked. Clarification and help would be most appreciated.
 
Old 11-27-2012, 09:23 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
here is a good explanation I think: http://www.pjrc.com/tech/8051/ide/fat32.html
FAT12 is similar, here is an overview: http://fileadmin.cs.lth.se/cs/Educat...2_overview.pdf

I hope this helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restrict root user to delete a file or directories aggrishabh Linux - Newbie 12 01-22-2011 08:50 AM
[SOLVED] directories, file systems, and mount points hbackus Linux - Newbie 2 04-30-2010 02:55 PM
File written, under FreeDOS, on spi flash (formatted as FAT12) is not found in Linux Braiam Linux - Embedded & Single-board computer 2 01-18-2010 01:47 PM
How to Mount bin and sbin directories as readonly mounted file systems Larry James Fedora 8 10-21-2008 11:40 AM
LXer: Cluster File Systems Attains World Leadership Position In High Performance File System LXer Syndicated Linux News 0 07-14-2006 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration