我不小心删除了ldap服务器的一些重要文件。现在我正在尝试恢复所有这些文件。我试过这个帖子并运行这些命令:
# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/VolGroup00-LogVol02 on /home type ext4 (rw)
/dev/mapper/VolGroup00-LogVol01 on /opt type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
# pwd
/etc/openldap/slapd.d
# debugfs -w /dev/mapper/VolGroup00-LogVol01
debugfs 1.41.12 (17-May-2010)
debugfs: lsdel
Inode Owner Mode Size Blocks Time deleted
0 deleted inodes found.
debugfs: #
# debugfs -w /dev/mapper/VolGroup00-LogVol00
debugfs 1.41.12 (17-May-2010)
debugfs: lsdel
Inode Owner Mode Size Blocks Time deleted
0 deleted inodes found.
但每次我都找到 0 个已删除的节点。谁能告诉我在什么文件系统下/etc
或者如何进入该目录/etc/openldap/slapd.d
以便我可以恢复文件?
答案1
使用该df
实用程序,您应该能够查看目录所在的文件系统,例如:
df -h /etc
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/crypt--lvm-root 225G 165G 50G 77% /
记下输入为以及列中/etc
列出的输出/
“镶嵌在”