Possible Duplicate:
Access to original contents of mount point
I have a directory d
containing some file f
and I mount a drive on directory d
. Is there a way of accessing file f
without unmounting?
Possible Duplicate:
Access to original contents of mount point
I have a directory d
containing some file f
and I mount a drive on directory d
. Is there a way of accessing file f
without unmounting?
Yes, bind the original fs to a different position, and you can access it:
mount --bind "$(df -P d | awk '/\/dev/ {print $1}')" /tmp/oldroot
And files would be accessible through /tmp/oldroot/XX/f