debugfs linux rm 删除 恢复 Attempt to read block from filesystem resulted in short read while opening filesystem

sudo apt-get install foremost

w

debugfs:  ?
Available debugfs requests:

show_debugfs_params, params
                         Show debugfs parameters
open_filesys, open       Open a filesystem
close_filesys, close     Close the filesystem
freefrag, e2freefrag     Report free space fragmentation
feature, features        Set/print superblock features
dirty_filesys, dirty     Mark the filesystem as dirty
init_filesys             Initialize a filesystem (DESTROYS DATA)
show_super_stats, stats  Show superblock statistics
ncheck                   Do inode->name translation
icheck                   Do block->inode translation
change_root_directory, chroot
                         Change root directory
change_working_directory, cd
                         Change working directory
list_directory, ls       List directory
show_inode_info, stat    Show inode information
dump_extents, extents, ex
                         Dump extents information
blocks                   Dump blocks used by an inode
filefrag                 Report fragmentation information for an inode
link, ln                 Create directory link
unlink                   Delete a directory link
mkdir                    Create a directory
rmdir                    Remove a directory
rm                       Remove a file (unlink and kill_file, if appropriate)
kill_file                Deallocate an inode and its blocks
clri                     Clear an inode‘s contents
freei                    Clear an inode‘s in-use flag
seti                     Set an inode‘s in-use flag
testi                    Test an inode‘s in-use flag
freeb                    Clear a block‘s in-use flag
setb                     Set a block‘s in-use flag
testb                    Test a block‘s in-use flag
modify_inode, mi         Modify an inode by structure
find_free_block, ffb     Find free block(s)
find_free_inode, ffi     Find free inode(s)
print_working_directory, pwd
                         Print current working directory
expand_dir, expand       Expand directory
mknod                    Create a special file
list_deleted_inodes, lsdel
                         List deleted inodes
undelete, undel          Undelete file
write                    Copy a file from your native filesystem
dump_inode, dump         Dump an inode out to a file
cat                      Dump an inode out to stdout
lcd                      Change the current directory on your native filesystem
rdump                    Recursively dump a directory to the native filesystem
set_super_value, ssv     Set superblock value
set_inode_field, sif     Set inode field
set_block_group, set_bg  Set block group descriptor field
logdump                  Dump the contents of the journal
htree_dump, htree        Dump a hash-indexed directory
dx_hash, hash            Calculate the directory hash of a filename
dirsearch                Search a directory for a particular filename
bmap                     Calculate the logical->physical block mapping for an inode
punch, truncate          Punch (or truncate) blocks from an inode by deallocating them
symlink                  Create a symbolic link
imap                     Calculate the location of an inode
dump_unused              Dump unused blocks
set_current_time         Set current time to use when setting filesystem fields
supported_features       Print features supported by this version of e2fsprogs
dump_mmp                 Dump MMP information
set_mmp_value, smmp      Set MMP value
extent_open, eo          Open inode for extent manipulation
zap_block, zap           Zap block: fill with 0, pattern, flip bits etc.
block_dump, bd           Dump contents of a block
help                     Display info on command or topic.
list_requests, lr, ?     List available commands.
quit, q                  Leave the subsystem.
debugfs:
debugfs:
debugfs:
debugfs:
debugfs:  q

linux 删除文件和目录与恢复详解-linux-操作系统-壹聚教程网
http://www.111cn.net/sys/linux/47629.htm

时间: 2024-10-10 15:05:19

debugfs linux rm 删除 恢复 Attempt to read block from filesystem resulted in short read while opening filesystem的相关文章

linux rm删除文件原理

很多时候,我们都会发现,某个进程在对当前文件读写,但是我们依然能够rm, 是不是很奇怪?而windows下面,肯定会报错,"当前文件正在被使用", 这就得从linux下面删除文件的原理说起了. Linux是通过link的数量来控制文件删除的,只有当一个文件不存在任何link的时候,这个文件才会被删除.一般来说,每个文件都有2个link计数器:i_count 和 i_nlink. i_count的意义是当前文件使用者(或被调用)的数量,i_nlink 的意义是介质连接的数量(硬链接的数量

Linux rm删除大批量文件

在使用rm删除大批量文件时,有可能会遭遇"参数列太长"(Argument list too long)的问题.如下所示 [[email protected] bdump]$ rm -v epps_q001_* -bash: /bin/rm: Argument list too long 查看总共有多少个这类文件,如下所示,总共有8348个文件 [[email protected] bdump]$ ls -lrt epps_q001_* | wc -l -bash: /bin/ls: A

linux 文件删除恢复extundelete

首先要把删除文件所有磁盘分区卸载掉 然后安装yum install -y extundelete *2fs* extundelete /dev/sdb1 --inode #查看sdb1分区下删除的文件信息 extundelete /dev/sdb1 --restore-inode 12#根据Inode恢复 extundelete /dev/sdb1 --restore-file test.txt #通过文件名恢复 extundelete /dev/sdbq --restore-directory

linux rm 删除指令新用

最近在导师写网络带宽分配的仿真程序,期间产生了大量临时文件,怎么用rm指令删除这些临时文件而不删除其他特定的文件呢? 比如下面是临时文件: temp101 temp102 temp103 temp104 temp105 temp201 temp202 temp203 temp204 temp205 temp301 temp302 temp303 temp304 temp305 temp401 temp402 temp403 temp404 temp405 temp501 temp502 temp

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

在linux下使用debugfs恢复rm删除的文件?? 以下方法在ext3的文件系统上测试通过, 以下是通过root来实现的?主要借助debugfs fdisk /dev/vdamkdir /mnt/testmount /dev/vda3 /mnt/test1 运行debugfs,进入调度模式[[email protected] test]# debugfs -w /dev/vda3/////////////////////////[[email protected] test]#sudo de

如何将Linux rm命令删除的文件放入垃圾箱

因为rm命令删除的文件是不会放入垃圾箱的,所以无法恢复,下面小编就给大家介绍一种方法,通过替换Linux rm命令的方法,从而将rm命令删除的文件放入垃圾箱. 方法: 1. 在/home/username/ 目录下新建一个目录,命名为:.trash 2. 在/home/username/tools/目录下,新建一个shell文件,命名为: remove.sh PARA_CNT=$# TRASH_DIR="/home/username/.trash" for i in $*; do ST

centos rm文件删除恢复

系统是centos 6.5 x64位系统 rm文件删除之后,恢复比较麻烦. 可以使用extundelete进行恢复 目前最新版本是0.2.4 extundelete 主页:http://extundelete.sourceforge.net/ 下载软件 wget http://fossies.org/linux/misc/extundelete-0.2.4.tar.gz 安装组件 yum install -y e2fsprogs e2fsprogs-devel e2fsprogs-libs 安装

Linux系统 rm 删除命令 “危险”!!!

Linux系统 rm 删除命令(危险) 简述:在linux系统运维工作中rm删除命令,十分危险,因为权限实在太大了,一个不小心就会把整个服务器的数据瞬间删除掉,所以我们要怎么样巧妙的使用rm命令删除文件,并且杜绝误删的情况发生呢? 方法一: 说明:我们可以通过find查找命令,将需要删除的文件查找到后在进行准确无误的删除. 命令行操作: [[email protected] oldboy]# find ./ -type f -name "oldboy" -execrm -f {} \;

[转]Linux 基本操作(RM 删除)

来自:http://billie66.github.io/TLCL/book/chap05.html Be Careful With rm! 小心 rm! Unix-like operating systems such as Linux do not have an undelete command. Once you delete something with rm, it's gone. Linux assumes you're smart and you know what you're