From 17a12c5065295a4f6c87cd7cb7bbeac0f5e4b10e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 2 Mar 2009 10:56:19 +0000 Subject: [PATCH] * 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. --- winsup/utils/ChangeLog | 6 ++++++ winsup/utils/utils.sgml | 30 +++++++++++++++++++----------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 696b194ab..8ba222ba3 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,9 @@ +2009-03-02 Corinna Vinschen + + * 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 * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly. diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml index e71de7d64..1d76451fd 100644 --- a/winsup/utils/utils.sgml +++ b/winsup/utils/utils.sgml @@ -181,7 +181,7 @@ When asked to run this command save the output so that you can email it, for example: -C:\cygwin> cygcheck -s -v -r -h > cygcheck_output.txt +$ cygcheck -s -v -r -h > cygcheck_output.txt @@ -731,7 +731,7 @@ will display the current mount table for you. Displaying the current set of mount points -c:\cygwin\> mount +$ mount c:\cygwin\bin on /usr/bin type ntfs (binary) c:\cygwin\lib on /usr/lib type ntfs (binary) c:\cygwin on / type ntfs (binary) @@ -756,11 +756,11 @@ for the duration of the current session. Adding mount points -c:\cygwin\> ls /data +$ ls /data ls: /data: No such file or directory -c:\cygwin\> mount //pollux/home/joe/data /data +$ mount //pollux/home/joe/data /data mount: warning - /data does not exist! -c:\cygwin\> mount +$ mount //pollux/home/joe/data on /data type smbfs (binary) c:/cygwin/bin on /usr/bin type ntfs (binary) c:/cygwin/lib on /usr/lib type ntfs (binary) @@ -826,24 +826,32 @@ mount table, then z:\ will be accessible as /cygdrive/z. The mount utility can be used to change this default automount prefix through the use of the "--change-cygdrive-prefix" option. In the following example, we will -set the automount prefix to /: +set the automount prefix to /mnt: Changing the default prefix -c:\cygwin\> mount --change-cygdrive-prefix / +$ mount --change-cygdrive-prefix /mnt 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 system-wide setting. The mount utility creates system-wide -mounts by default if you do not specify a type. Use the -s -or -u flag to indicate a system or user mount, respectively. +mounts by default if you do not specify a type. You can always see the user and system cygdrive prefixes with the --p option. Using the -b +-p option. Using the --options flag with --change-cygdrive-prefix makes all new -automounted filesystems default to binary mode file accesses. +automounted filesystems default to this set of options. For instance +(using the short form of the command line flags) + + +Changing the default prefix with specific mount options + +$ mount -c /mnt -o binary,noacl + + +