Skip to content

Instantly share code, notes, and snippets.

@fcuny
Created July 12, 2015 04:18
Show Gist options
  • Save fcuny/016e6fc5be47a1fd4b4b to your computer and use it in GitHub Desktop.
Save fcuny/016e6fc5be47a1fd4b4b to your computer and use it in GitHub Desktop.
$ sudo debugfs /dev/vda1
debugfs 1.42.9 (4-Feb-2014)
debugfs: ncheck 679618 # check that the path is correct for that inode
Inode Pathname
679618 /etc/issue
debugfs: stat <679618> # display information for that inode
Inode: 679618 Type: regular Mode: 0644 Flags: 0x80000
Generation: 2438138670 Version: 0x00000000:00000001
User: 0 Group: 0 Size: 26
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 8
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x53d27172:a6792220 -- Fri Jul 25 08:02:10 2014
atime: 0x546973cb:9c4270fc -- Sun Nov 16 20:04:27 2014
mtime: 0x53ce8460:00000000 -- Tue Jul 22 08:33:52 2014
crtime: 0x53d27168:18602e20 -- Fri Jul 25 08:02:00 2014
Size of extra inode fields: 28
EXTENTS:
(0):4822488
debugfs: imap <679618> # location of the inode
Inode 679618 is part of block group 82
located at block 2622988, offset 0x0100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment