mount --bind disappears after suspending a virtual machine

Discussion in 'Linux Virtual Machine' started by DejanC, Aug 30, 2014.

  1. DejanC

    DejanC Bit poster

    Messages:
    2
    Hello everyone,

    I am using Parallels 10 and installed Debian 7 in it. I enabled sharing between Mac host and Linux guest and mac directories get mounted in /media/psf/

    One of the directories that I am mounting is srv and it gets mounted into /media/psf/srv/

    I need this in another location (only /srv) but I couldn't figure out how to change the mount point, so instead, I decided to mount --bind it instead (symbolic link doesn't work for me).

    So, I do: mount --bind /media/psf/srv/ /srv

    This works great, however, as soon as I suspend the virtual machine (e.g. by closing Parallels), this mount point just disapperas. Then I do mount --bind /media/psf/srv/ /srv again and it works ok.

    I don't see anything related in dmesg.

    Any ideas what's going on and how to solve this?

    Thanks,
    Dejan
     

Share This Page