1debugfs create special files 2mke2fs -Fq -b 1024 test.img 512 3Exit status is 0 4debugfs -R ''stat foo'' -w test.img 5Inode: 12 Type: symlink Mode: 0777 Flags: 0x0 6Generation: 0 Version: 0x00000000:00000000 7User: 0 Group: 0 Project: 0 Size: 3 8File ACL: 0 9Links: 1 Blockcount: 0 10Fragment: Address: 0 Number: 0 Size: 0 11 ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 12 atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 13 mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 14crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 15Size of extra inode fields: 32 16Fast link dest: "bar" 17Exit status is 0 18debugfs -R ''stat foo2'' -w test.img 19Inode: 13 Type: symlink Mode: 0777 Flags: 0x0 20Generation: 0 Version: 0x00000000:00000000 21User: 0 Group: 0 Project: 0 Size: 80 22File ACL: 0 23Links: 1 Blockcount: 2 24Fragment: Address: 0 Number: 0 Size: 0 25 ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 26 atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 27 mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 28crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 29Size of extra inode fields: 32 30BLOCKS: 31(0):36 32TOTAL: 1 33 34Exit status is 0 35debugfs -R ''block_dump 28'' -w test.img 360000 0000 0000 0004 0000 0000 0000 0000 0000 ................ 370020 0000 0000 0000 0000 0000 0000 0000 0000 ................ 38* 39 40Exit status is 0 41debugfs -R ''stat pipe'' -w test.img 42Inode: 14 Type: FIFO Mode: 0000 Flags: 0x0 43Generation: 0 Version: 0x00000000:00000000 44User: 0 Group: 0 Project: 0 Size: 0 45File ACL: 0 46Links: 1 Blockcount: 0 47Fragment: Address: 0 Number: 0 Size: 0 48 ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 49 atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 50 mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 51crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 52Size of extra inode fields: 32 53BLOCKS: 54 55Exit status is 0 56debugfs -R ''stat sda'' -w test.img 57Inode: 15 Type: block special Mode: 0000 Flags: 0x0 58Generation: 0 Version: 0x00000000:00000000 59User: 0 Group: 0 Project: 0 Size: 0 60File ACL: 0 61Links: 1 Blockcount: 0 62Fragment: Address: 0 Number: 0 Size: 0 63 ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 64 atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 65 mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 66crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 67Size of extra inode fields: 32 68Device major/minor number: 08:00 (hex 08:00) 69Exit status is 0 70debugfs -R ''stat null'' -w test.img 71Inode: 16 Type: character special Mode: 0000 Flags: 0x0 72Generation: 0 Version: 0x00000000:00000000 73User: 0 Group: 0 Project: 0 Size: 0 74File ACL: 0 75Links: 1 Blockcount: 0 76Fragment: Address: 0 Number: 0 Size: 0 77 ctime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 78 atime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 79 mtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 80crtime: 0x50f560e0:00000000 -- Tue Jan 15 14:00:00 2013 81Size of extra inode fields: 32 82Device major/minor number: 01:03 (hex 01:03) 83Exit status is 0 84e2fsck -yf -N test_filesys 85Pass 1: Checking inodes, blocks, and sizes 86Pass 2: Checking directory structure 87Pass 3: Checking directory connectivity 88Pass 4: Checking reference counts 89Pass 5: Checking group summary information 90test_filesys: 16/64 files (0.0% non-contiguous), 37/512 blocks 91Exit status is 0 92