echo "this is test" >xx

debugfs:  ls -d /root/test1
() . () .. () xx
<> () test.c
debugfs: q

[root@localhost test1]# rm -rf xx
[root@localhost test1]# debugfs
debugfs 1.39 (-May-)
debugfs: open /dev/sda2
debugfs: ls -d /root/test1
() . () .. <> () xx
<> () test.c

debugfs: logdump -i <2985555>
Inode is at group , block , offset
Journal starts at block , transaction
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: bad type Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x00000000 -- Wed Dec ::
atime: 0x00000000 -- Wed Dec ::
mtime: 0x00000000 -- Wed Dec ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: regular Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x5779c8c9 -- Sun Jul ::
atime: 0x5779c8c9 -- Sun Jul ::
mtime: 0x5779c8c9 -- Sun Jul ::
dtime: 0x5779c8c9 -- Sun Jul ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: regular Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x5779c8c9 -- Sun Jul ::
atime: 0x5779c8c9 -- Sun Jul ::
mtime: 0x5779c8c9 -- Sun Jul ::
dtime: 0x5779c8c9 -- Sun Jul ::
Blocks:
FS block 2982004 logged at sequence 2007641, journal block 11510
(inode block for inode 2985555):
Inode: 2985555 Type: regular Mode: 0600 Flags: 0x0 Generation: 73235618
User: 0 Group: 0 Size: 4096
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 8
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5779ce7e -- Sun Jul 3 19:48:30 2016
atime: 0x5779ce7b -- Sun Jul 3 19:48:27 2016
mtime: 0x5779ce7e -- Sun Jul 3 19:48:30 2016
Blocks: (0+1): 2982917
FS block 2982004 logged at sequence 2007642, journal block 11518
(inode block for inode 2985555):
Inode: 2985555 Type: regular Mode: 0600 Flags: 0x0 Generation: 73235618
User: 0 Group: 0 Size: 4096
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 8
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5779ce7e -- Sun Jul 3 19:48:30 2016
atime: 0x5779ce7b -- Sun Jul 3 19:48:27 2016
mtime: 0x5779ce7e -- Sun Jul 3 19:48:30 2016
Blocks: (0+1): 2982917
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: regular Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x5779ce84 -- Sun Jul ::
atime: 0x5779ce7b -- Sun Jul ::
mtime: 0x5779ce84 -- Sun Jul ::
dtime: 0x5779ce84 -- Sun Jul ::
Blocks:
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: regular Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x5779ce84 -- Sun Jul ::
atime: 0x5779ce7b -- Sun Jul ::
mtime: 0x5779ce84 -- Sun Jul ::
dtime: 0x5779ce84 -- Sun Jul ::
Blocks:
FS block 2982004 logged at sequence 2007646, journal block 11543
(inode block for inode 2985555):
Inode: 2985555 Type: regular Mode: 0755 Flags: 0x0 Generation: 2076742624
User: 0 Group: 0 Size: 1840
File ACL: 1737758 Directory ACL: 0
Links: 1 Blockcount: 16
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5591e472 -- Mon Jun 29 17:36:02 2015
atime: 0x4125400c -- Thu Aug 19 17:04:28 2004
mtime: 0x4125400c -- Thu Aug 19 17:04:28 2004
Blocks: (0+1): 1786131
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: regular Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x5779d04d -- Sun Jul ::
atime: 0x5779d04d -- Sun Jul ::
mtime: 0x5779d04d -- Sun Jul ::
Blocks:
FS block 2982004 logged at sequence 2007648, journal block 11552
(inode block for inode 2985555):
Inode: 2985555 Type: regular Mode: 0644 Flags: 0x0 Generation: 73235620
User: 0 Group: 0 Size: 13
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 8
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x5779d058 -- Sun Jul 3 19:56:24 2016
atime: 0x5779d05b -- Sun Jul 3 19:56:27 2016
mtime: 0x5779d058 -- Sun Jul 3 19:56:24 2016
Blocks: (0+1): 3611744
FS block logged at sequence , journal block
(inode block for inode ):
Inode: Type: regular Mode: Flags: 0x0 Generation:
User: Group: Size:
File ACL: Directory ACL:
Links: Blockcount:
Fragment: Address: Number: Size:
ctime: 0x5779d107 -- Sun Jul ::
atime: 0x5779d05b -- Sun Jul ::
mtime: 0x5779d107 -- Sun Jul ::
dtime: 0x5779d107 -- Sun Jul ::
Blocks:
No magic number at block : end of journal.
debugfs: q [root@localhost test1]# dd if=/dev/sda2 of=/tmp/test.txt bs= count= skip=
记录了1+ 的读入
记录了1+ 的写出
4096字节(4.1 kB)已复制,0.18169 秒,22.5 kB/秒
[root@localhost test1]# cat /tmp/test.txt
runcon () - run command with specified security context
dirname () - strip last component from file name
pwd () - print name of current/working directory
nohup () - run a command immune to hangups, with output to a non-tty
cp () - copy files and directories
sort () - sort lines of text files
readlink () - print value of a symbolic link or canonical file name
expand () - convert tabs to spaces
tac () - concatenate and print files in reverse
gdb () - The GNU Debugger
irb () - Interactive Ruby Shell
od () - dump files in octal and other formats
sha1sum () - compute and check SHA1 message digest
tsort () - perform topological sort
stat () - display file or file system status
libtoolize () - manual page for libtoolize 2.4.4.19-fda4
fold () - wrap each input line to fit in specified width
csplit () - split a file into sections determined by context lines
stdbuf () - Run COMMAND, with modified buffering operations for its standard streams
du () - estimate file space usage
pinky () - lightweight finger
df () - report file system disk space usage
iostat () - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions
mpstat () - Report processors related statistics
uptime () - tell how long the system has been running
split () - split a file into pieces
paste () - merge lines of files
dd () - convert and copy a file
kill () - send signals to processes, or list signals
join () - join lines of two files on a common field
timeout () - run a command with a time limit
factor () - factor numbers
md5sum () - compute and check MD5 message digest
pidstat () - Report statistics for Linux tasks
python [python2] () - an interpreted, interactive, object-oriented programming language
ln () - make links between files
stty () - change and print terminal line settings
touch () - change file timestamps
mkfifo () - make FIFOs (named pipes)
vdir () - list directory contents
mkdir () - make directories
yes () - output a string repeatedly until killed
sha256sum () - compute and check SHA256 message digest
dir () - list directory contents
who () - show who is logged on
false () - do nothing, unsuccessfully
shred () - overwrite a file to hide its contents, and optionally delete it
sha224sum () - compute and check SHA224 message digest
expr () - evaluate expressions
mktemp () - create a temporary file or directory
seq () - print a sequence of numbers
basename () - strip directory and suffix from filenames
fmt () - simple optimal text formatter
rm () - remove files or directories
unexpand () - convert spaces to tabs
comm () - compare two sorted files line by line
gcore () - Generate a core file of a running program
cat () - concatenate files and print on the standard output
groups () - print the groups a user is in
mv () - move (rename) files
cut () - remove sections from each line of files
sync () - flush file system buffers
pr () - convert text files for printing
uname () - print system information
tee () - read from st[root@localhost test1]# [root@localhost test1]# dd if=/dev/sda2 of=/tmp/test.txt bs= count= skip=
记录了1+ 的读入
记录了1+ 的写出
4096字节(4.1 kB)已复制,0.184362 秒,22.2 kB/秒
[root@localhost test1]# cat /tmp/test.txt
import pygtk
pygtk.require('2.0')
import gtk import os def InputBox(title, label, parent, text=''):
dlg = gtk.Dialog(title, parent, gtk.DIALOG_DESTROY_WITH_PARENT,
(gtk.STOCK_OK, gtk.RESPONSE_OK,
gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))
lbl = gtk.Label(label)
lbl.show()
dlg.vbox.pack_start(lbl)
entry = gtk.Entry()
if text: entry.set_text(text)
entry.show()
dlg.vbox.pack_start(entry, False)
resp = dlg.run()
text = entry.get_text()
dlg.hide()
if resp == gtk.RESPONSE_CANCEL:
return None
return text def OpenFile(title, parent=None, dirname=None, fname=None):
dlg = gtk.FileChooserDialog(title, parent,
buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK,
gtk.STOCK_CANCEL,
gtk.RESPONSE_CANCEL))
if fname:
dlg.set_current_folder(os.path.dirname(fname))
elif dirname:
dlg.set_current_folder(dirname)
dlg.set_local_only(True)
resp = dlg.run()
fname = dlg.get_filename()
dlg.hide()
if resp == gtk.RESPONSE_CANCEL:
return None
return fname def SaveFile(title, parent=None, dirname=None, fname=None):
dlg = gtk.FileChooserDialog(title, parent,
gtk.FILE_CHOOSER_ACTION_SAVE,
buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK,
gtk.STOCK_CANCEL,
gtk.RESPONSE_CANCEL))
if fname:
dlg.set_filename(fname)
elif dirname:
dlg.set_current_folder(dirname)
dlg.set_local_only(True)
resp = dlg.run()
fname = dlg.get_filename()
dlg.hide()
if resp == gtk.RESPONSE_CANCEL:
return None
return fname [root@localhost test1]# dd if=/dev/sda2 of=/tmp/test.txt bs= count= skip=
记录了1+ 的读入
记录了1+ 的写出
4096字节(4.1 kB)已复制,0.182695 秒,22.4 kB/秒
[root@localhost test1]# cat /tmp/test.txt
this is test
[root@localhost test1]#

debugfs恢复文件的更多相关文章

  1. Git学习之路(4)- 撤销操作、删除文件和恢复文件

    ▓▓▓▓▓▓ 大致介绍 经过前面的学习(小白学Git)已经建立了版本库,并上传了文件,这次来学习对这些文件进行基本的操作,即: ◆ 撤销操作 ◆ 删除文件 ◆ 恢复文件 我在此之前,已经将三个文件提交 ...

  2. Git 撤销操作、删除文件和恢复文件

    大致介绍 经过前面的学习,已经建立了版本库,并上传了文件,这次来学习对这些文件进行基本的操作,即: ◆ 撤销操作 ◆ 删除文件 ◆ 恢复文件 我在此之前,已经将三个文件提交到了版本库 撤销操作 撤销操 ...

  3. Git删除和恢复文件

    删除文件: 如果你在本地删除了一个文件但是没有提交到版本库,这时你用 $ git status命令会看到提示: 如果需要从版本库中删除该文件,则需要用 $ git rm 和 $ git commit ...

  4. Linux : 使用 lsof 恢复文件

    用 lsof 命令在某种程度上可以恢复删除的文件, 前提是这个文件被正在运行的进程占用. 比如: 日志文件, 配置文件. lsof 恢复文件 查找需要恢复的文件和占用文件的进程 PID lsof |g ...

  5. 在 Linux 系统下使用 PhotoRec & TestDisk 工具来恢复文件

    当你在系统中有意或无意地使用 shift + delete 组合键.删除选项,或是清空回收站的方式来删除一个文件时,该文件的内容并没有从硬盘(或是其它存储设备)上直接销毁. 它仅仅是从系统的目录结构中 ...

  6. TestDisk 数据恢复 重建分区表恢复文件-恢复diskpart clean

    source:http://www.cgsecurity.org/wiki/TestDisk_CN TestDisk 是一款开源软件,受GNU General Public License (GPL ...

  7. Git-第三篇廖雪峰Git教程学习笔记(2)回退修改,恢复文件

    1.工作区 C:\fyliu\lfyTemp\gitLocalRepository\yangjie 2.版本库 我们使用git init命令创建的.git就是我们的版本库.Git的版本库里存了很多东西 ...

  8. PHP中使用 TUS 协议来实现可恢复文件上传

    曾经尝试过用PHP上传大文件吗?想知道您是否可以从上次中断的地方继续上传,而不会在遇到任何中断的情况下再次重新上传整个数据?如果您觉得这个场景很熟悉,请接着往下阅读. 文件上传是我们几乎所有现代Web ...

  9. 在linux下使用debugfs恢复rm删除的文件

    原理主要是删除的文件并没有实际上从硬盘上摸去,只是inode索引删除了相关的信息,因此只要找到刚删除文件的block上,就可以恢复已经删除的文件. 以下方法在ext3的文件系统上测试通过,ext2的没 ...

随机推荐

  1. jstring 和char 之间的转换方法

    //jstring to char* char* jstringTostring(JNIEnv* env, jstring jstr) { char* rtn = NULL; jclass clsst ...

  2. 【HDOJ】1018 Big Number

    数学题,还是使用log避免大数,但是不要忘记需要+1,因为0也是1位,log(100)= 2,但却是3位. #include <stdio.h> #include <math.h&g ...

  3. lnmp.org一键安装包

    LNMP安装快速导航:LNMP安装提示,LNMP安装教程.安装失败处理.虚拟主机管理.可选组件.LNMP文件目录说明.状态管理. 系统需求: CentOS/Debian/Ubuntu Linux系统 ...

  4. BZOJ_1625_ [Usaco2007_Dec]_宝石手镯_(01背包)

    描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1625 01背包裸题. p.s.随便点开一道就是水题... 分析 ... #include &l ...

  5. LightOJ 1214 Large Division 水题

    java有大数模板 import java.util.Scanner; import java.math.*; public class Main { public static void main( ...

  6. HDU4370 0 or 1 最短路

    分析: 1001  (已更新) 显然,题目给的是一个0/1规划模型.解题的关键在于如何看出这个模型的本质.3个条件明显在刻画未知数之间的关系,从图论的角度思考问题,容易得到下面3个结论:1.X12+X ...

  7. 【转载】CentOS LVM磁盘扩容

    转自:http://blog.sina.com.cn/s/blog_8882a6260101cpfs.html EXSI5.1主机有一个linux虚拟机,系统是centos运行httpd服务,因为是多 ...

  8. [CODEVS3299]有序数组合并求第K大问题

    题目描述 Description 给出两个有序数组A和B(从小到大有序),合并两个有序数组后新数组c也有序,询问c数组中第k大的数 假设不计入输入输出复杂度,你能否给出一个O(logN)的方法? 输入 ...

  9. 【原】实战-Java如何使用Redis

    实战-Java如何使用Redis Redis的Client支持的语言非常丰富,如下: ActionScript Bash C C# C++ Clojure Common Lisp Crystal D ...

  10. sublimelinter-jshinter

    --- ocalhost:~ nihao$ sudo npm install jshint -gPassword:/usr/local/bin/jshint -> /usr/local/lib/ ...