由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 如何恢复rm删除的文件?
相关主题
请教个fedora磁盘空间的问题。请推荐几款linux下的数据恢复软件
包子求助:ubuntu的grub找不到centosWindows XP下如何读取Ubuntu Linux里的文件?
请帮忙看看为什么没空间了?使用Linux点滴累积
大家帮我看看这个硬盘分区的问题2.6.30 发彪了。。。hoho
问个swap space的问题fedora 11 boot problem
硬盘空间问题ext4 性能胜出阿
移动硬盘mount不上linux太毁硬盘了
问个文件系统的问题macbook pro怎么读ext3的硬盘? (转载)
相关话题的讨论汇总
话题: rm话题: dev话题: 4089228话题: 文件话题: lvm
进入Linux版参与讨论
1 (共1页)
l********0
发帖数: 283
1
文件系统如下,系统分区采用lvm方式
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
1881783836 3449744 1781203188 1% /
/dev/sda1 101086 19261 76606 21% /boot
tmpfs 4089228 0 4089228 0% /dev/shm
我一个同事使用rm命令删除了一个文件,这个文件在/home/xxx下
请问有什么好方法可以恢复这个文件?
谢谢。
z**r
发帖数: 17771
2
基本上不可能了

【在 l********0 的大作中提到】
: 文件系统如下,系统分区采用lvm方式
: Filesystem 1K-blocks Used Available Use% Mounted on
: /dev/mapper/VolGroup00-LogVol00
: 1881783836 3449744 1781203188 1% /
: /dev/sda1 101086 19261 76606 21% /boot
: tmpfs 4089228 0 4089228 0% /dev/shm
: 我一个同事使用rm命令删除了一个文件,这个文件在/home/xxx下
: 请问有什么好方法可以恢复这个文件?
: 谢谢。

l********0
发帖数: 283
3
能否说明原因,是因为采用ext3文件系统,还是因为采用lvm的原因?
谢谢

【在 z**r 的大作中提到】
: 基本上不可能了
l******n
发帖数: 1683
4
lvm自身是支持snapshot的, 如果开启了的话恢复应该容易. ext3的恢复比较
困难, 不像ext2, 不过也可以试试

【在 l********0 的大作中提到】
: 能否说明原因,是因为采用ext3文件系统,还是因为采用lvm的原因?
: 谢谢

v*****r
发帖数: 1119
5
我以前写过的帖子,重贴一下:
Yes or no, depending on how busy the disk the removed file (rm or mv) is
sitting on and how long ago did that incident happen?
When you rm/mv a file, you just removed the file reference, the actual data
is still sitting on the disk unless it is overwritten by other I/O
operations. If this just happens in the last couple of days and the disk is
not very i/o intensive, you might be lucky and here are the steps to try
your luck.
You need two perl scripts and also you need to know a s
a*******e
发帖数: 3021
6
问个问题哦,是不是只能搜文本文件?二进制的没法找了吧?

data
is
you

【在 v*****r 的大作中提到】
: 我以前写过的帖子,重贴一下:
: Yes or no, depending on how busy the disk the removed file (rm or mv) is
: sitting on and how long ago did that incident happen?
: When you rm/mv a file, you just removed the file reference, the actual data
: is still sitting on the disk unless it is overwritten by other I/O
: operations. If this just happens in the last couple of days and the disk is
: not very i/o intensive, you might be lucky and here are the steps to try
: your luck.
: You need two perl scripts and also you need to know a s

v*****r
发帖数: 1119
7
对噻

【在 a*******e 的大作中提到】
: 问个问题哦,是不是只能搜文本文件?二进制的没法找了吧?
:
: data
: is
: you

y******w
发帖数: 2220
8
ext2的应该可以用file system debug。ext3我还没有成功过的经验,估计很有难度
f*****g
发帖数: 3086
9
所以我把 .bashrc 里面设一个 alias rm='rm -i'
很stupid,但是救了我几次
a*******e
发帖数: 3021
10
that's a must have alias.....

【在 f*****g 的大作中提到】
: 所以我把 .bashrc 里面设一个 alias rm='rm -i'
: 很stupid,但是救了我几次

l*****s
发帖数: 2109
11
IBM DW 上有个系列就是讲怎么恢复的,不过相当麻烦。
1 (共1页)
进入Linux版参与讨论
相关主题
macbook pro怎么读ext3的硬盘? (转载)问个swap space的问题
Macbook 用 virtualbox 装 Ubuntu硬盘空间问题
谁能给科普一下linux下的文件格式?移动硬盘mount不上
gentoo 最近的 distro 太脑残了问个文件系统的问题
请教个fedora磁盘空间的问题。请推荐几款linux下的数据恢复软件
包子求助:ubuntu的grub找不到centosWindows XP下如何读取Ubuntu Linux里的文件?
请帮忙看看为什么没空间了?使用Linux点滴累积
大家帮我看看这个硬盘分区的问题2.6.30 发彪了。。。hoho
相关话题的讨论汇总
话题: rm话题: dev话题: 4089228话题: 文件话题: lvm