Map home dir drive (H:) to /home/myuser/ ?

Andrew Schulman schulman.andrew@epa.gov
Sat Jul 29 14:34:24 GMT 2023


> Does Cygwin have a way to map a (NFS) home dir drive (H:) to
> /home/myuser/, without resorting to POSIX-style softlinks ([1]) ?

Yes. Put the following in either /etc/fstab (system-wide) or /etc/fstab.d/myuser
(user-specific):

H:/  /home/myuser  nfs  binary,user  0 0

Then run mount -a, or exit and restart your shell. To learn more see the Cygwin
User's Guide (https://cygwin.com/cygwin-ug-net/cygwin-ug-net.html), in
particular:

https://cygwin.com/cygwin-ug-net/using.html#mount-table
https://cygwin.com/cygwin-ug-net/mount.html

Andrew



More information about the Cygwin mailing list