This is a fs simulator for studying vfs system.
qemu-img
This tool is used to fdisk harddisk
losetup for floppy kpartx for harddisk kpartx -av ./img // kpartx -d ./img
mkfs -t ext2 /dev/loopxxx
dumpe2fs -h
- i-node idx start from 0,
- block id start from 0, and block id is from beginning of the disk. not per group.
- boot section locates in block 0, No. 0 sctor.
- super block locates in No. 3 sector, either in block 0(2k, 4k size of block) or block1(1k size of block)
- group description locates in the next block to super block.