Unix Recovery

CnW Software to recovery Unix partitions

Unlike FAT32, and NTFS, Unix comes in many different flavours. The most popular one is probably Linux, followed by implementations on a Sun.

The basic structure of Unix based file systems is very similar, and actually very simple, but there are differences between versions that have arisen as disks have got larger, and for optimization. The variations that CnW Recovery handles are current limited, but this list will grow. Basic support for XFS was added with V2.65

Basic Unix Structure

     The file systems have three basic elements, a Superblock, a series of iNodes and data blocks. There are stored in the same sequence, though some systems do duplicate the Superblock on a regular basis to allow for disk failure and subsequent recovery

Superblock

    The Superblock identifies are gives parameters for the complete file system. It includes details of the number of blocks, and the size of a block. It also have the number of inodes, and very importantly a signature, called the magic Number. This magic number is sometimes stored at location 0x1f8 of the superblock, and can be used to search for a superblock, when other pointers have become corrupted. Examples of values for the magic number include

    • HTFS 0xA060492A
    • SCO  0xFD187E20

    Other values include

    • UFS1 0x11954 at offset 0x55c
    • UEXT1 0xEF53 at offset 0x58
    • XFS first block starts with the letters XFSB, the following sectors are XAGF, XAGI

     

iNodes

    An inode contains details of a file. This will be pointers to where it is stored on the disk, file attributes , size and dates. Interestingly, unlike a Windows MFT, it does not store the file name, though the inode can be used to store file data for short files. inodes are store sequentially, starting at logical block 2, and inode 2 always points to a file which is the root directory. The directory is a file which has file names, and an inode number that relates to either a file, or another directory entry - the attributes indicate whether it is a file o a directory

Data area

    The data area is all the remaining disk after the inodes. It is made up of logical blocks (same as clusters on a windows system) and blocks are always a multiple of 512. eg 1024, 2048, 4096 bytes etc.

Groups

    Each Unix system works slightly differently with groups or fragments. Largely it is way to break up a disk into smaller sectors so that inodes etc tend to local to the data. XFS disks for instance use local addresses as well as global addresses

Multiple file systems

    A Unix disk may contain areas with different file systems - such as partitions on a Windows disk. Currently, it may be necessary to scan the disk with the partition function to find all existing file systems. If a disk looks very empty, then this approach may assist.

Unix Data recovery

    One approach is to scan the whole disk for iNodes. These are the basis of all files and if valid, can produce a very accurate recovery

[CnW Recovery] [Downloads] [User Manual] [Wizard] [Main menu] [Partitions] [Logs] [Hard drive recovery] [NTFS data recovery] [FAT data recovery] [exFAT] [CD ROM data recovery] [Raw recovery] [Photo Recovery] [Damaged disks] [Fragmented Files] [File Filter] [Deduplication] [Camcorder Disk] [File validation] [Deleted file recovery] [Macintosh] [Unix Recovery] [MTF .BKF] [CD and DVD output] [What will it do?] [Product Details] [Purchase Now] [Forensic DR] [FAQ & Links] [Case Studies] [Technical Notes] [Demo videos] [Updates] [Development] [Testimonials] [Site Map] [Contact Us]