* utils.sgml: Set example prompt to "$" throughout. Don't use "/"
as example cygdrive prefix. Remove reference to -u and -s options. Add an example using the -o flag.
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 2009-03-02  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
|  | 	* utils.sgml: Set example prompt to "$" throughout.  Don't use "/" | ||||||
|  | 	as example cygdrive prefix.  Remove reference to -u and -s options. | ||||||
|  | 	Add an example using the -o flag. | ||||||
|  |  | ||||||
| 2009-03-02  Corinna Vinschen  <corinna@vinschen.de> | 2009-03-02  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly. | 	* mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly. | ||||||
|   | |||||||
| @@ -181,7 +181,7 @@ When asked to run this command save the output so that you can email it, | |||||||
| for example:</para> | for example:</para> | ||||||
|  |  | ||||||
| <screen> | <screen> | ||||||
| <prompt>C:\cygwin></prompt> <userinput>cygcheck -s -v -r -h > cygcheck_output.txt</userinput> | <prompt>$</prompt> <userinput>cygcheck -s -v -r -h > cygcheck_output.txt</userinput> | ||||||
| </screen> | </screen> | ||||||
|  |  | ||||||
| </sect2> | </sect2> | ||||||
| @@ -731,7 +731,7 @@ will display the current mount table for you.</para> | |||||||
| <example id="utils-mount-ex"> | <example id="utils-mount-ex"> | ||||||
| <title>Displaying the current set of mount points</title> | <title>Displaying the current set of mount points</title> | ||||||
| <screen> | <screen> | ||||||
| <prompt>c:\cygwin\></prompt> <userinput>mount</userinput> | <prompt>$</prompt> <userinput>mount</userinput> | ||||||
| c:\cygwin\bin on /usr/bin type ntfs (binary) | c:\cygwin\bin on /usr/bin type ntfs (binary) | ||||||
| c:\cygwin\lib on /usr/lib type ntfs (binary) | c:\cygwin\lib on /usr/lib type ntfs (binary) | ||||||
| c:\cygwin on / type ntfs (binary) | c:\cygwin on / type ntfs (binary) | ||||||
| @@ -756,11 +756,11 @@ for the duration of the current session. | |||||||
| <example id="utils-mount-add-ex"> | <example id="utils-mount-add-ex"> | ||||||
| <title>Adding mount points</title> | <title>Adding mount points</title> | ||||||
| <screen> | <screen> | ||||||
| <prompt>c:\cygwin\></prompt> <userinput>ls /data</userinput> | <prompt>$</prompt> <userinput>ls /data</userinput> | ||||||
| ls: /data: No such file or directory | ls: /data: No such file or directory | ||||||
| <prompt>c:\cygwin\></prompt> <userinput>mount //pollux/home/joe/data /data</userinput> | <prompt>$</prompt> <userinput>mount //pollux/home/joe/data /data</userinput> | ||||||
| mount: warning - /data does not exist! | mount: warning - /data does not exist! | ||||||
| <prompt>c:\cygwin\></prompt> <userinput>mount</userinput> | <prompt>$</prompt> <userinput>mount</userinput> | ||||||
| //pollux/home/joe/data on /data type smbfs (binary) | //pollux/home/joe/data on /data type smbfs (binary) | ||||||
| c:/cygwin/bin on /usr/bin type ntfs (binary) | c:/cygwin/bin on /usr/bin type ntfs (binary) | ||||||
| c:/cygwin/lib on /usr/lib type ntfs (binary) | c:/cygwin/lib on /usr/lib type ntfs (binary) | ||||||
| @@ -826,24 +826,32 @@ mount table, then <filename>z:\</filename> will be accessible as | |||||||
| <filename>/cygdrive/z</filename>.  The <command>mount</command> utility  | <filename>/cygdrive/z</filename>.  The <command>mount</command> utility  | ||||||
| can be used to change this default automount prefix through the use of the | can be used to change this default automount prefix through the use of the | ||||||
| "--change-cygdrive-prefix" option.  In the following example, we will | "--change-cygdrive-prefix" option.  In the following example, we will | ||||||
| set the automount prefix to <filename>/</filename>:</para> | set the automount prefix to <filename>/mnt</filename>:</para> | ||||||
|  |  | ||||||
| <example id="utils-cygdrive-ex"> | <example id="utils-cygdrive-ex"> | ||||||
| <title>Changing the default prefix</title> | <title>Changing the default prefix</title> | ||||||
| <screen> | <screen> | ||||||
| <prompt>c:\cygwin\></prompt> <userinput>mount --change-cygdrive-prefix /</userinput> | <prompt>$</prompt> <userinput>mount --change-cygdrive-prefix /mnt</userinput> | ||||||
| </screen> | </screen> | ||||||
| </example> | </example> | ||||||
|  |  | ||||||
| <para>Note that the cygdrive prefix can be set both per-user and system-wide,  | <para>Note that the cygdrive prefix can be set both per-user and system-wide,  | ||||||
| and that as with all mounts, a user-specific mount takes precedence over the  | and that as with all mounts, a user-specific mount takes precedence over the  | ||||||
| system-wide setting.  The <command>mount</command> utility creates system-wide  | system-wide setting.  The <command>mount</command> utility creates system-wide  | ||||||
| mounts by default if you do not specify a type.  Use the <literal>-s</literal>  | mounts by default if you do not specify a type. | ||||||
| or <literal>-u</literal> flag to indicate a system or user mount, respectively. |  | ||||||
| You can always see the user and system cygdrive prefixes with the  | You can always see the user and system cygdrive prefixes with the  | ||||||
| <literal>-p</literal> option.  Using the <literal>-b</literal> | <literal>-p</literal> option.  Using the <literal>--options</literal> | ||||||
| flag with <literal>--change-cygdrive-prefix</literal> makes all new  | flag with <literal>--change-cygdrive-prefix</literal> makes all new  | ||||||
| automounted filesystems default to binary mode file accesses.</para> | automounted filesystems default to this set of options.  For instance | ||||||
|  | (using the short form of the command line flags)</para> | ||||||
|  |  | ||||||
|  | <example id="utils-cygdrive-ex2"> | ||||||
|  | <title>Changing the default prefix with specific mount options</title> | ||||||
|  | <screen> | ||||||
|  | <prompt>$</prompt> <userinput>mount -c /mnt -o binary,noacl</userinput> | ||||||
|  | </screen> | ||||||
|  | </example> | ||||||
|  |  | ||||||
|  |  | ||||||
| </sect3> | </sect3> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user