debugfs恢复文件
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恢复文件的更多相关文章
- Git学习之路(4)- 撤销操作、删除文件和恢复文件
▓▓▓▓▓▓ 大致介绍 经过前面的学习(小白学Git)已经建立了版本库,并上传了文件,这次来学习对这些文件进行基本的操作,即: ◆ 撤销操作 ◆ 删除文件 ◆ 恢复文件 我在此之前,已经将三个文件提交 ...
- Git 撤销操作、删除文件和恢复文件
大致介绍 经过前面的学习,已经建立了版本库,并上传了文件,这次来学习对这些文件进行基本的操作,即: ◆ 撤销操作 ◆ 删除文件 ◆ 恢复文件 我在此之前,已经将三个文件提交到了版本库 撤销操作 撤销操 ...
- Git删除和恢复文件
删除文件: 如果你在本地删除了一个文件但是没有提交到版本库,这时你用 $ git status命令会看到提示: 如果需要从版本库中删除该文件,则需要用 $ git rm 和 $ git commit ...
- Linux : 使用 lsof 恢复文件
用 lsof 命令在某种程度上可以恢复删除的文件, 前提是这个文件被正在运行的进程占用. 比如: 日志文件, 配置文件. lsof 恢复文件 查找需要恢复的文件和占用文件的进程 PID lsof |g ...
- 在 Linux 系统下使用 PhotoRec & TestDisk 工具来恢复文件
当你在系统中有意或无意地使用 shift + delete 组合键.删除选项,或是清空回收站的方式来删除一个文件时,该文件的内容并没有从硬盘(或是其它存储设备)上直接销毁. 它仅仅是从系统的目录结构中 ...
- TestDisk 数据恢复 重建分区表恢复文件-恢复diskpart clean
source:http://www.cgsecurity.org/wiki/TestDisk_CN TestDisk 是一款开源软件,受GNU General Public License (GPL ...
- Git-第三篇廖雪峰Git教程学习笔记(2)回退修改,恢复文件
1.工作区 C:\fyliu\lfyTemp\gitLocalRepository\yangjie 2.版本库 我们使用git init命令创建的.git就是我们的版本库.Git的版本库里存了很多东西 ...
- PHP中使用 TUS 协议来实现可恢复文件上传
曾经尝试过用PHP上传大文件吗?想知道您是否可以从上次中断的地方继续上传,而不会在遇到任何中断的情况下再次重新上传整个数据?如果您觉得这个场景很熟悉,请接着往下阅读. 文件上传是我们几乎所有现代Web ...
- 在linux下使用debugfs恢复rm删除的文件
原理主要是删除的文件并没有实际上从硬盘上摸去,只是inode索引删除了相关的信息,因此只要找到刚删除文件的block上,就可以恢复已经删除的文件. 以下方法在ext3的文件系统上测试通过,ext2的没 ...
随机推荐
- 几篇很有用的USB开发资料
1,USB描述符详解:http://blog.csdn.net/alien75/article/details/4622319 2,一种嵌入式USBMiniHost系统设计与实现:http://www ...
- JMP软件中的晶圆图( Wafer Map)分析
关键词:芯片 良率分析 晶圆图 质量管理 JMP Minitab 半导体芯片的生产,简单来讲,是将电路通过各种复杂的物理化学方法制作到晶圆上,在生产的最后阶段会进行不同电性功能的测试以确保产品的功能性 ...
- wzplayer,tlplayer支持ActiveX
wzplayer2 for activeX最新谍报 1.支持wzplayer2所有功能 2.支持本地播放,网络播放,加密流播放. 3.支持变速不变调等等. 联系方式:weinyzhou86@gmail ...
- jQuery功能一览
// Hello world!"); }); $("#btn5").click(function(){ $("#test5").val("D ...
- 校园网之MentoHUST安装与使用
作用:MentoHUST可以解决校园网锐捷客户端与Windows的兼容性问题,可以解决安装虚拟机之后虚拟机网卡与本地网卡冲突的问题,可以做到愉快的用校园网,并可以愉快的用校园网开Wifi给自己或者小伙 ...
- 逻辑运算符&& 用法解释
A&&B 首先判断A,A成功然后判断B:A不成功则结束判断,返回false;
- Win32下 Qt与Lua交互使用(一):配置Qt下Lua运行环境
偶然间看到Lua这种脚本语言,有点兴趣,简单学习了一下. 发现Lua与C++之间可以实现非常强的交互性.Lua中可以使用C++中的函数,C++中也可以使用Lua中的函数.由此可以引发出很多奇思妙想了. ...
- 宣布发布长期保留 Azure Backup功能
Shreesh Dubey 云 + Enterprise首席项目经理 此前我们已宣布为DPM云备份提供长期保留功能.随着本月 Azure Backup 服务的发布,我们将此功能扩展到云备份目前支持 ...
- c# process 输入输出
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...
- STL for_each()
http://www.cplusplus.com/reference/algorithm/for_each/ std::move()用于c++11 http://www.cplusplus.com/r ...