Skip to content

Wrote a C program that reads the raw image of a disk formatted with the UFS2 file system and uses the superblock, inode, and direct structures to list all files and folders within that disk partition (hierarchically).

Notifications You must be signed in to change notification settings

dcruzeneil/fs-find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

UFS2 File System Explorer

This C program operates on raw images of disk partitions, created using the dd tool after unmounting the partition:

dd if=/dev/[NAME_OF_PARTITION] of=disk.img bs=4k

This command creates a raw disk image called disk.img. Using bs=4k ensures faster reading and writing by processing data in 4k chunks. Instructions for adding virtual disk images, creating partitions, and mounting partitions can be found in the FreeBSD Handbook - Disks.

Program Description

The program uses UFS2 (Unix File System) structures, including the superblock, inode structures, and direct structures, to read a raw disk image and hierarchically list all the files and folders within it.

Usage:
./fs-find [PATH TO RAW IMAGE OF DISK PARTITION]

About

Wrote a C program that reads the raw image of a disk formatted with the UFS2 file system and uses the superblock, inode, and direct structures to list all files and folders within that disk partition (hierarchically).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages