Peeking at the contents of a mount point
kogorman at gmail.com
Thu Sep 13 04:24:34 UTC 2012
On Wed, Sep 12, 2012 at 9:11 AM, Karl Auer <kauer at biplane.com.au> wrote:
> On Wed, 2012-09-12 at 17:44 +0200, Patrick Asselman wrote:
>> If you had files in /mnt and they are hidden due to something mounted
>> on /mnt then doing
>> mount --bind / /all
>> should show the original files under /all/mnt/
> Oh, very good! It does too! Nice one.
> Regards, K.
Oh! You're right! I tried with fresh directories, and it worked! So
I went back to figure out why I didn't think so at first.
I was trying to peek under /dev, and it seemed to fail because the
hidden stuff looks the same as the fake file system!
programmer, n. an organism that transmutes caffeine into software.
More information about the ubuntu-users