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的没 ...
随机推荐
- SQLite入门与分析(九)---VACUUM命令分析
VACUUM命令是SQLite的一个扩展功能,模仿PostgreSQL中的相同命令而来.若调用VACUUM带一个表名或索引名, 则将整理该表或索引.在SQLite 1.0中,VACUUM命令调用 gd ...
- SPRING IN ACTION 第4版笔记-第七章Advanced Spring MVC-002- 在xml中引用Java配置文件,声明DispatcherServlet、ContextLoaderListener
一.所有声明都用xml 1. <?xml version="1.0" encoding="UTF-8"?> <web-app version= ...
- 【POJ】3076 Sudoku
DLX第一题,模板留念. /* 3076 */ #include <iostream> #include <string> #include <map> #incl ...
- dom操作之开关灯
<!DOCTYPE html> <html> <meta http-equiv="Content-Type" content="text/h ...
- POJ2104 区间第k小
题意就是区间第k大…… 题解: 前段时间用主席树搞掉了…… 如今看到划分树,是在想来写一遍,结果18号对着学长的代码调了一上午连样例都没过,好桑心…… 今天在做NOI2010超级钢琴,忽然发现用划分树 ...
- [转] KMP算法详解
转载自:http://www.matrix67.com/blog/archives/115 KMP算法详解 如果机房马上要关门了,或者你急着要和MM约会,请直接跳到第六个自然段. 我们这里说的K ...
- D 系列性能预期
Kenaz Kwa Azure计算运行时项目经理 我们的全新D系列虚拟机为需要快速的本地(临时)存储或更快 CPU 的应用程序提供了卓越的性能:但是为了获得最佳体验,对系统配置原理稍加了解很有必要 ...
- RMAN综合学习之备份
rman是最经济实惠的oracle备份工具,在这里做一个rman的整体学习. 文章中大多是rman命令的语法,还是最好做做实验,以便印象深刻,因为大多数数据库的备份就是按时跑脚本,恢复也不是经常能遇到 ...
- grb文件的读取
grb文件的读取(转自:http://blog.sciencenet.cn/blog-922140-713837.html) read_grib.r4.rar 今天来斟酌了下grb文件格式的读取,现在 ...
- wpa_supplicant使用笔记
还在搞8634,看不到头了..唉.wireless_tools的缺点是不支持WPA认证,所以有必要把wpa_supplicant也移植过来.无线 网卡是基于zydas芯片的,正好可以在网上搜到wpa_ ...