I have accidentally deleted some important files of ldap server. Now I am trying to recover all these files. I tried this post and ran these commands:
# 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.
But every time I got 0 deleted node found. Can anyone tell me under what file system
/etc comes or how to go to this directory
/etc/openldap/slapd.d so that I can recover the files?