These steps are only for really bad hard disk muck-ups and
accidentally deleted files. For normal filesystem inconsistencies,
don't use these steps!
- Once you realize that you've lost data, don't do anything else on that partition -
you may cause that data to be overwritten by new data.
- Unmount that partition. e.g., umount /home
- Find out what actual device this partition refers to. You can usually get this information
from the file /etc/fstab. We'll assume here that the device is /dev/hda3.
-
Run the command: reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/hda3
You need to be root
to do this. Read the reiserfsck man page for what these options do and for more options. Some interesting options are '--rebuild-sb, --check'
After the command finishes, which might be a long time for a big partition, you can take a look
at the logfile /root/recovery.log if you wish.
- Mount your partition: mount /home
- Look for the lost+found
directory in the root of the partition. Here, that would be: /home/lost+found
- This directory contains all the files that could be recovered.
Unfortunately, the filenames are not preserved for a lot of files.
You'll find some sub-directories - filenames within those are preserved!
- Look through the files and copy back what you need.
Here's a useful link
for more advanced tricks.
I just want to thank for the tips on
recovering deleted files. I've just wrongly deleted some files and been
able to recover them by following your steps / steps from pages
mentioned herein.
Instead of finding deleted files in lost+found directory, I've ended up
finding them in the original directories (from where they were
deleted). I've compiled the sequence of steps for my specific case
(slight changes will suit particular issues regarding unwanted file
deletion), which follows:
Recover deleted files (from /home = /dev/hda7)
0. Unmount partition from where to recover deleted files
umount /home
1. Create partition copy
dd if=/dev/hda7 conv=noerror > /hda7.img
2. Set up device containing copy of partition (created in 1.)
losetup /dev/loop/0 /hda7.img
3. Rebuild FS tree, performing a thorough partition scan and logging to /recovery.log file
reiserfsck --rebuild-tree -S -l /recovery.log /dev/loop/0
(4. Check written log file)
(less /recovery.log)
5. Create directory for mounting recovered partition
mkdir /recovery
6. Mount recovered partition in directory created in 5.
mount /dev/loop/0 /recovery
7. Access recovered partition's lost+found directory and look for files
cd /recovery/lost+found
8. If not there (7.), then look for in original directory
cd /recovery/
9. Remount /home partition
mount /home
10. Copy recovered files from 7./8. to /home/
cp /recovery// /home//
11. Unmount recovered partition
umount /recovery
12. Detach recovered partition device
losetup -d /dev/loop/0
@nT$
分享到:
相关推荐
RS Linux Recovery specially designed to work with file systems Ext2/3/4, ReiserFS, XFS, UFS. The program allows you to access both existing and deleted files and packages of Linux, Unix, FreeBSD, ...
ReiserFS的实用工具位于/usr/src/linux/fs/reiserfs/utils目录下,通过`make`编译,再用`make install`进行安装,以便管理和维护ReiserFS文件系统。 **总结** ReiserFS作为Linux环境下的高性能文件系统,通过其...
2. **编译ReiserFS工具**:ReiserFS工具通常包含在内核源码的`fs/reiserfs/utils`目录下,可以通过`make`和`make install`来编译和安装。如果没有包含,可以从Namesys的FTP服务器上下载并安装。 在安装完成后,你...
**ReiserFS 3.6.19:深入解析Linux文件系统的里程碑** ReiserFS,全称为Reiser File System,是由Hans Reiser在1997年7月23日首次公之于众的高性能、高效能的文件系统。这款文件系统以其独特的平衡树数据结构,为...
Apart from this, it is necessary to note, that it gives you an opportunity to use common Windows Explorer for extracting data. A preview option for pictures is one more pleasant point, which is worth...
**ReiserFS技术分析** ReiserFS是一种高性能的、针对小文件优化的文件系统,它的设计与传统的如ext或xfs等文件系统有着显著的区别。ReiserFS的主要特点是其独特的B*树数据结构,这使得它在处理大量小文件和大目录时...
**ReiserFS 文件系统详解** ReiserFS,全称为 Reiser File System,是一种高效、现代的文件系统,最初由 Hans Reiser 在1997年设计并发布。它以其独特的完全平衡树结构著称,这一设计使其在处理大量数据和高速检索...
通过对Windows 2000/2003/XP提供对EXT2/EXT3,XFS,Reiserfs文件系统的原生支持,Windows用户能方便地访问Linux分区的数据,并提供本地磁盘级性能。对windows下访问Linux文件有极大帮助。 用法参见:...
- **文件系统支持**:FinalData 3 支持 FAT12/16/32、NTFS、EXT2/3、ReiserFS、HFS/HFS+、UFS、VXFS、JFS/JFS2、CDFS 和 UDF 等多种文件系统。 ##### 2.5 文件系统支持 FinalData 3 的一大亮点是它能够支持多种文件...
UFS Explorer Professional Recovery是专为帮助用户通过提供自动化数据分析和扫描模式恢复丢失或删除的数据构建的软件应用程序(里诺下载站提供)。 【软件特点】 -恢复从不同的操作系统中最常用的文件系统中...
3. 挂载磁盘到创建的挂载目录下:mount /dev/sdb /data 4. 修改启动自动挂载项:vi /etc/fstab 五、实践案例 添加 1 块 90G 磁盘,将其分为 1 个分区 1. fdisk -l:查看磁盘情况 2. fdisk /dev/sdb:为 /dev/sdb ...
除了编译内核以支持ReiserFS之外,还需要编译ReiserFS的相关工具,这些工具通常位于`/usr/src/linux/fs/reiserfs/utils`目录下。如果没有这些工具,可以下载最新的ReiserFS工具包,解压并按照README文件中的指示进行...
本教程将详细解释如何在Linux上配置RAID,以创建一个名为/dev/md0的RAID设备,并在其上创建一个reiserfs文件系统。 首先,RAID的基本概念包括RAID级别,例如RAID 0(条带化),RAID 1(镜像),RAID 5(分布式奇偶...
《ReiserFs驱动在Windows平台的应用与解析》 在信息技术领域,文件系统是操作系统的核心组成部分,它负责管理和存储数据。本文将深入探讨ReiserFs文件系统及其在Windows NT/2000/XP/Vista系统上的实现——"rfsd-...
如果只需要在windows下读取Mac上的HFS及HFS+文件系统而无需写入...Linux Reader不光可以访问HFS及HFS+,还可以访问Linux上的一大堆文件系统,比如Ext2/3/4,ReiserFS/Reiser4,ZFS,XFS等等,不过免费版只能读不能写。
标题 "reiserfs_xattr.rar_hypervisor" 暗示了这个压缩包涉及的是一个与虚拟化技术相关的项目,具体来说是关于“hypervisor”(超虚拟器)的,并且可能涉及到文件系统扩展属性(xattr)在ReiserFS中的实现。ReiserFS...
Access files and folders on Ext, UFS, HFS, ReiserFS, or APFS file systems from Windows, Windows 方便的访问 Ext 2/3/4, UFS2, HFS and ReiserFS/4 等格式的磁盘。
本文将深入探讨Linux下的几种主要文件系统,包括tmpfs、ext2、ext3(data=ordered、data=writeback、data=journal)、ReiserFS和XFS的读写性能测试结果。 首先,tmpfs是一种基于内存的文件系统,它的速度非常快,...
如果选择reiserfs,相应的命令是`mkfs.reiserfs /dev/hdb1`。这两个命令会创建指定设备上的文件系统。 为了在每次系统启动时自动挂载新分区,需要编辑`/etc/fstab`文件。例如,如果你想要将/dev/hdb1分区挂载到/mnt...
- **/etc/fstab**:添加或修改相应条目,如`/dev/hda3 / reiserfs defaults 1 1`,确保ReiserFS分区能够在启动时被正确挂载。 ##### 5. 复制文件 最后一步是将原有文件复制到新的ReiserFS分区中。 - 创建挂载点`...