Improve the working around FAT and extended filesystems.

PR:		docs/114715
Submitted by:	Ben Kaduk <minimarmot at gmail dot com>
		with minor modifications by me
This commit is contained in:
Remko Lodder 2007-12-08 20:21:12 +00:00
parent 2e64f54ab2
commit dba4e4b08b
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=31102

View file

@ -4092,9 +4092,24 @@ Please press any key to reboot.</screen>
located in the <guimenuitem>Start</guimenuitem>&gt; <guimenuitem>Programs</guimenuitem> &gt;
<guimenuitem>System Tools</guimenuitem> menu.</para>
<para>&os; can support &ms-dos; based file systems (FAT16 and FAT32).
This requires you use the &man.mount.8; command
with the required parameters. The utility most common usage is:</para>
<para>&os; can support &ms-dos; file systems (sometimes called
FAT file systems). The &man.mount.msdosfs.8; command grafts such file
systems onto the existing directory hierarchy, allowing the file
system's contents to be accessed. &man.mount.msdosfs.8; is not usually
invoked directly; instead, it is called by the system through a line
in <filename>/etc/fstab</filename> or by a call to the &man.mount.8;
utility with the appropriate parameters.</para>
<para>A typical line in <filename>/etc/fstab</filename> is:</para>
<programlisting>/dev/ad0sN /dos msdosfs rw 0 0</programlisting>
<note><para>The <filename>/dos</filename> directory must already
exist for this to work. For details about the format of
<filename>/etc/fstab</filename>, see &man.fstab.5;.</para></note>
<para>A typicall call to &man.mount.8; for a &ms-dos; file system
looks like:</para>
<screen>&prompt.root; <userinput>mount -t msdosfs /dev/ad0s1 /mnt</userinput></screen>
@ -4103,13 +4118,12 @@ Please press any key to reboot.</screen>
the <command>dmesg</command>, and <command>mount</command> commands. They should
produce enough information to give an idea of the partition layout.</para>
<note><para>Extended &ms-dos; file systems are usually mapped after the &os;
partitions. In other words, the slice number may be higher than the ones
&os; is using. For instance, the first &ms-dos; partition may be
<filename>/dev/ad0s1</filename>, the &os; partition may be
<filename>/dev/ad0s2</filename>, with the extended &ms-dos; partition being
located on <filename>/dev/ad0s3</filename>. To some, this can be confusing
at first.</para></note>
<note><para>&os; may number disk slices (that is, &ms-dos; partitions)
differently than other operating systems. In particular, extended
&ms-dos; partitions are usually given higher slice numbers than
primary &ms-dos; partitions. The &man.fdisk.8; utility can help
determine which slices belong to &os; and which belong to other
operating systems.</para></note>
<para>NTFS partitions can also be mounted in a similar manner
using the &man.mount.ntfs.8; command.</para>