Find the answer to your Linux question:
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 ...
  1. #1
    Just 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:
    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
    Thanks,
    Ted

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You need to create the mointpoint before you can mount to it.

    Code:
    mkdir /usr/share/www/sconf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...