This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Creating Mount Points [WAS: Re: How to run javac]


--- alex <tinbb@hkplanet.com> wrote:
> 
> Yes, the javac is come from JDK118. I don;t know now to create a mount path.
> I use the command
> mount d:\\ ddrive
> it told me that
> mount: ddrive:  Invalid argument
> 

To create a mount point, first you need a physical directory to mount as the
mount point.  These are usually empty directories, but can be ones that exist
as long as they exist relative to the root / directory.  So using your example
you would
  mkdir /ddrive
  mount d:/ /ddrive
.  This would create a text mode mount point named /ddrive in the user context.
 If you wish to create a text mode mount point in the system context you would
  mkdir /ddrive
  mount -s d:/ /ddrive
.  This would allow the mount point to be available to multiple uses of the
local machine.  If multiple users aren't using the local machine then this
doesn't have relavance.  If you wish to have a binary mode mount point then you
would
  mkdir /ddrive
  mount -b d:/ /ddrive
.  This would create a binary mode mount point in the user context.  If you
want to create a binary mode mount point in the system context then you would
  mkdir /ddrive
  mount -b -s d:/ /ddrive
.

Also you can add a -f switch to force a remount of an already mounted mount
point.  This allows switching from binary mode to text mode and to add a system
context if you've already a user context.  In the latter case you would have
both the system context mount point and the user context mount point with the
user context mount point taking precedence over the system context mount point.
 This allows the local machine administrator to setup defaults for the users
and have the user change it to his preference.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]