Fix two examples in the 'ubs-disks' section

Reviewed by:	pgj, keramida, trhodes
This commit is contained in:
Manolis Kiagias 2008-10-03 19:16:10 +00:00
parent 61901494e5
commit 24b5978b1a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32997

View file

@ -860,17 +860,18 @@ add path 'da*' mode 0660 group operator</programlisting>
owned by that user as
<filename>/mnt/<replaceable>username</replaceable></filename>
(replace <replaceable>username</replaceable> by the login name of
the actual user):</para>
the actual user and <replaceable>usergroup</replaceable> by the
user's primary group):</para>
<screen>&prompt.root; <userinput>mkdir /mnt/<replaceable>username</replaceable></userinput>
&prompt.root; <userinput>chown <replaceable>user</replaceable>:<replaceable>user</replaceable> /mnt/<replaceable>user</replaceable></userinput></screen>
&prompt.root; <userinput>chown <replaceable>username</replaceable>:<replaceable>usergroup</replaceable> /mnt/<replaceable>username</replaceable></userinput></screen>
<para>Suppose a USB thumbdrive is plugged in, and a device
<filename>/dev/da0s1</filename> appears. Since these devices
usually come preformatted with a FAT file system, one can
mount them like this:</para>
<screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/<replaceable>username</replaceable></userinput></screen>
<screen>&prompt.user; <userinput>mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/<replaceable>username</replaceable></userinput></screen>
<para>If you unplug the device (the disk must be unmounted
before), you should see, in the system message buffer,