Академический Документы
Профессиональный Документы
Культура Документы
! UNIX flavors
! System V variants: Sun Solaris, IBM AIX, and HP-UX
! BSD variants: FreeBSD, OpenBSD, and NetBSD
! Linux distributions
Linux System Artifacts ! Red Hat, Fedora, Ubuntu, and Debian
! Most consistent UNIX-like operating systems
! Linux file systems ! A block in Linux can be 1KB, 2KB, 4KB or 8KB
! Second Extended File System (Ext2fs) (analogous to Windows “cluster”)
! Ext3fs, journaling version of Ext2fs ! Decided when formatting the drive (4KB is typical)
! Now Ext4fs ! Block group
! A set of contiguous blocks
! Employs inodes (information/index nodes) ! A block group descriptor table specifies where each block
! Identified by a number group begins
! Contain information about one file or directory ! Inode
! Storesdata block numbers ! Fully describes a file/directory
! Keep internal link count ! Has information on the block numbers where a file’s content
! Deleted inodes have count value 0 resides
6 Block Zero
7 Block Groups
! Boot block ! Block group zero starts at offset 1024 bytes from the
! Contains the bootstrap code in the first sector beginning of the partition
! 512 bytes ! When is block 0 part of block group 0?
! If block size > 1024 bytes
! Offset 0x18: Logarithm of the block size (KB) : 32-bit ! Following the superblock
! Offset 0x20: Number of blocks per group : 32-bit ! Duplicates are maintained in block groups that also contain
the superblock duplicate
! Offset 0x28: Number of inodes per group : 32-bit
! Information pertaining to all block groups
! Offset 0x38: 2 byte magic number identifying the file
system ! Superblock has information to compute number of
! 0xEF53 means ext block groups
! We can use it to determine how many blocks are required to
store this table
! Other information
! The table is an array of BGD structures
! Number of free inodes and blocks across all groups
! Time when file system was last mounted/accessed/verified BGD 0 BGD 1 … BGD N
L7: Linux System Artifacts
! A directory is just a file with specially formatted data ! Ch 8: B. Nelson, A. Phillips and C. Steuart, Guide to
! Linked list implementation Computer Forensics and Investigations. ISBN:
! An array of directory entries 978-1-435-49883-9
! Variable size ! Layout of ext2fs: http://www.nongnu.org/ext2-doc/ext2.html
! Offset 0 to 3: inode number corresponding to this entry ! Ext3 basic structure is same as ext2
! Offset 6: length of the name of this entry
! Offset 8 onwards: name of this entry
! First entry is always for itself (seen as a . when running
ls)
! Second entry is always for the parent directory (..)
Other implementations exist