2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[AIX]マウントで隠されたファイルの参照方法

Posted at

誤ってマウントポイントにファイルを作成してしまった場合、mount中にはそのファイルが確認できません。
これによって、dfではファイルシステムの使用量が高いが、lsやfindではファイルが見つからないという事象が発生しえます。

# ls /testfs/testfile
/testfs/testfile
# mount /testfs
# ls /testfs/testfile
/testfs/testfile not found

mountしたままの状態であっても/をディレクトリマウントすることで、/以下のマウントポイントのファイルを確認できます。

# mount / /mnt
# ls /mnt/testfs/testfile
/mnt/testfs/testfile

多重マウントしている場合は1つ目のファイルシステムをディレクトリマウントします。

# ls /testfs/testfssub/testfile
/testfs/testfssub/testfile
# mount /testfs/testfssub
# ls /testfs/testfssub/testfile
/testfs/testfssub/testfile not found

# mount /testfs /mnt
# ls /mnt/testfssub/testfile
/mnt/testfssub/testfile
2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?