How to see the olddir after mount --bind olddir newdir?
Posted
by
freestyler
on Server Fault
See other posts from Server Fault
or by freestyler
Published on 2013-10-25T06:50:33Z
Indexed on
2013/10/26
3:57 UTC
Read the original article
Hit count: 563
In my debian 7:
$ pwd
/home/freestyler
$ mkdir old new
# mount --bind old new
then
$ mount
/dev/cciss/c0d0p9 on /home/freestyler/new type ext4(rw,noatime,nodiratime,user_xattr,barrier=1,data=ordered)
I can only see the /dev/cciss/c0d0p9
, which is not the same as /home/freestyler/old
How can I get the original olddir path?
In debian 6:
the mount
outpt the olddir path well:
$ mount
/home/freestyler/old on /home/freestyler/new type none (rw,bind)
© Server Fault or respective owner