Ubuntu autofs rule hides my home directory so I cannot login

Tom H tomh0665 at gmail.com
Mon May 30 10:11:03 UTC 2016


On Thu, May 26, 2016 at 9:02 PM, Frank Chang <frankchang91 at gmail.com> wrote:
>
> I perused the answers in this excellent Unix Stack Exchange article;
> http://unix.stackexchange.com/questions/24731/automounting-usb-sticks-
> on-debian and tested it earlier yesterday on an Ubuntu Linux 16.04
> instance, Lenovo Thinkstation quad core desktop, and saw that the
> autofs rule hides my /home/frank directory and /media/data1 directory.
>
> Why does this autofs hint hide my /home/frank subdirectory so I cannot
> reboot and login again?
>
> How do I fix the autofs procedure, which is an alternative to modifying
> /etc/fstab

AFAIR, the default Ubuntu autofs setup doesn't touch "/home".

Is your USB disk being mounted on "/media/data1" by autofs?

You can check the maps that are configured with "automount -m".


> Finally, why is the autofs hint preferred by Ubuntu Linux practioners
> over modifying /etc/fstab for the purpose of creating a permanent mount
> point for a CD, DVD or USB drive.

It isn't. This is a convoluted way to override/avoid the standard way
that DEs mount USB disks, on "/run/<uid>/<label_or_filesystem-uuid>"
via IIRC udisks.




More information about the ubuntu-users mailing list