debugfs恢复文件

时间:2023-02-01 16:03:20
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]#