失われたフォルダと/ mntから回復

失われたフォルダと/ mntから回復

私はAmazon AWSでUbuntu 14.04.2 LTS(GNU / Linux 3.13.0-48-generic x86_64)を実行しています。 / mntに "foo"フォルダがあり、いくつかの変更が完了したら、このインスタンスの以前のバックアップに復元する必要があります。
修復後に"/mnt/foo"フォルダが見つかりませんが、試して"locate foo"みると"/mnt/foo"

updatedbその後、コマンドを実行しましたが、/mnt/fooコマンドに表示されなくなりましたlocate foo

/mntディレクトリのみがありますlost+found

dfこのコマンドは以下を提供します。

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

そしてsudo fdisk -l以下に与えられる。

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

編集1:

fsck見せる、

fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
/dev/xvdb is mounted.
e2fsck: Cannot continue, aborting.

/ mntの "foo"ディレクトリはどうなり、回復できますか?

ベストアンサー1

/dev/xvdbおそらく、元のパーティションの上にパーティションをインストールした可能性があります/mnt。努力する

umount /dev/xvdb

フォルダが存在することを確認してください。その場合は、別のパーティションに移動して再インストールして/dev/xvdbフォルダを再度移動してください。

おすすめ記事