public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Is it OK to mount cygdrive on / ?
@ 2017-02-03 21:09 Rustam
  2017-02-03 21:33 ` Wells, Roger K.
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rustam @ 2017-02-03 21:09 UTC (permalink / raw)
  To: cygwin

I've added an extra / mountpoint in /etc/fstab in order to be able to
access C: without /cygdrive like this:

none /cygdrive cygdrive binary,posix=0,user 0 0
none /         cygdrive binary,posix=0,user 0 0

It seems to work, I can access the C: drive with just /c.

But normally an "ls /cygdrive" should list the drives, whereas "ls /"
lists the contents of the Cygwin root. So it seems there are now two
root mountpoints overlaying each other.

So I was wondering if my approach is if this is technically undefined
behavior and might conceivably break something or is it OK (less the
drive listing limitation mentioned above).

Thanks,
Rustam

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-05 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 21:09 Is it OK to mount cygdrive on / ? Rustam
2017-02-03 21:33 ` Wells, Roger K.
2017-02-04 14:50 ` Andrey Repin
2017-02-04 22:51   ` Is it OK to mount cygdrive on / ? (usually, but may not be as portable) L. A. Walsh
2017-02-05  8:50     ` Andrey Repin
2017-02-05 20:24 ` Is it OK to mount cygdrive on / ? cyg Simple

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).