Can I have a bind mount in /etc/fstab

Tom H tomh0665 at gmail.com
Wed Aug 20 07:56:40 UTC 2014


On Tue, Aug 19, 2014 at 11:21 PM, Kevin O'Gorman <kogorman at gmail.com> wrote:
>
> I've been managing normal mounts in /etc/fstab since -- well -- since forever it seems.
>
> Now I've got a notion to put some bind mounts in there, but have no idea how to get it done.
> Or if it's possible.
>
> The mount command would be something like
> mount   --bind   /vhome/kevin    /home/kevin/Desktop
>
> Is this doable?

Yes, but you have to use "none" in the type (3rd) column and "bind"
(not "--bind") in the options (4th) column.




More information about the ubuntu-users mailing list