|
Lines 858-876
Link Here
|
| 858 |
the user that is to mount the file system. One way to do that |
858 |
the user that is to mount the file system. One way to do that |
| 859 |
is for <username>root</username> to create a subdirectory |
859 |
is for <username>root</username> to create a subdirectory |
| 860 |
owned by that user as |
860 |
owned by that user as |
| 861 |
<filename>/mnt/<replaceable>$USER</replaceable></filename> |
861 |
<filename>/mnt/<replaceable>username</replaceable></filename> |
| 862 |
(replace <replaceable>$USER</replaceable> by the login name of |
862 |
(replace <replaceable>username</replaceable> by the login name of |
| 863 |
the actual user):</para> |
863 |
the actual user):</para> |
| 864 |
|
864 |
|
| 865 |
<screen>&prompt.root; <userinput>mkdir /mnt/$USER</userinput> |
865 |
<screen>&prompt.root; <userinput>mkdir /mnt/<replaceable>username</replaceable></userinput> |
| 866 |
&prompt.root; <userinput>chown <replaceable>$USER</replaceable>:<replaceable>$USER</replaceable> /mnt/<replaceable>$USER</replaceable></userinput></screen> |
866 |
&prompt.root; <userinput>chown <replaceable>user</replaceable>:<replaceable>user</replaceable> /mnt/<replaceable>user</replaceable></userinput></screen> |
| 867 |
|
867 |
|
| 868 |
<para>Suppose a USB thumbdrive is plugged in, and a device |
868 |
<para>Suppose a USB thumbdrive is plugged in, and a device |
| 869 |
<filename>/dev/da0s1</filename> appears. Since these devices |
869 |
<filename>/dev/da0s1</filename> appears. Since these devices |
| 870 |
usually come preformatted with a FAT file system, one can |
870 |
usually come preformatted with a FAT file system, one can |
| 871 |
mount them like this:</para> |
871 |
mount them like this:</para> |
| 872 |
|
872 |
|
| 873 |
<screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/<replaceable>$USER</replaceable></userinput></screen> |
873 |
<screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/<replaceable>username</replaceable></userinput></screen> |
| 874 |
|
874 |
|
| 875 |
<para>If you unplug the device (the disk must be unmounted |
875 |
<para>If you unplug the device (the disk must be unmounted |
| 876 |
before), you should see, in the system message buffer, |
876 |
before), you should see, in the system message buffer, |