Results 1 to 2 of 2
Hi, I am trying to mount an unexisted dir:
mount -o bind /usb/sda1/sconf /usr/share/www/sconf
but the dir sconf/ inw usr/share/www doesn't actually exit, i am trying to mount as if ...
- 02-02-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 5
[SOLVED] mount a non-exist dir
Hi, I am trying to mount an unexisted dir:
mount -o bind /usb/sda1/sconf /usr/share/www/sconf
but the dir sconf/ inw usr/share/www doesn't actually exit, i am trying to mount as if there is a folder sconf in the www dir. Is there a actual function for this? because if mount was used, the below code will show:
Thanks,Code:mount -o bind /usb/sda1/sconf /usr/share/www/sconf mount: mounting /usb/sda1/sconf on /usr/share/www/sconf failed: No such file or directory
Ted
- 02-02-2011 #2
You need to create the mointpoint before you can mount to it.
Code:mkdir /usr/share/www/sconf


