I'm running Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-48-generic x86_64) on Amazon AWS. I had a folder "foo" in the /mnt and after few modification I had to recover to previous backup of the instance .
after restore "/mnt/foo" folder is missing , however when I tried "locate foo" it showed me on in "/mnt/foo" .
then I did updatedb command and then /mnt/foo no longer visible in the locate foo command.
/mnt only have lost+found directory .
df command give following.
Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 8115168 6991056 688836 92% / none 4 0 4 0% /sys/fs/cgroup udev 3824796 12 3824784 1% /dev tmpfs 765952 352 765600 1% /run none 5120 0 5120 0% /run/lock none 3829752 0 3829752 0% /run/shm none 102400 0 102400 0% /run/user /dev/xvdb 30824956 45140 29207336 1% /mnt and sudo fdisk -l gives following .
Disk /dev/xvda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/xvda1 * 16065 16771859 8377897+ 83 Linux Disk /dev/xvdb: 32.2 GB, 32204390400 bytes 255 heads, 63 sectors/track, 3915 cylinders, total 62899200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/xvdb doesn't contain a valid partition table edit 1 :
fsck shows ,
fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-2014) /dev/xvdb is mounted. e2fsck: Cannot continue, aborting. What can be happened to the directory "foo" in the /mnt and is there any possibility that I can get it back ?
locateis cached. The fact that/mnt/fooshowed up withlocatedoes not mean it's actually there.