Modernize the removable-drives FAQ.
Reviewed by: Richard Yao <ryao@gentoo.org> Reviewed by: koobs.freebsd@gmail.com Approved by: bcr (mentor)
This commit is contained in:
parent
61606d36dd
commit
548256e89c
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=39982
1 changed files with 20 additions and 51 deletions
|
@ -5125,69 +5125,38 @@ C:\="DOS"</programlisting>
|
|||
</question>
|
||||
|
||||
<answer>
|
||||
<para>Whether it is a removable drive like a &iomegazip; or an
|
||||
EZ drive (or even a floppy, if you want to use it that way),
|
||||
or a new hard disk, once it is installed and recognized by
|
||||
the system, and you have your cartridge/floppy/whatever
|
||||
slotted in, things are pretty much the same for all
|
||||
devices.</para>
|
||||
<para>If the drive already has a
|
||||
file system on it, you can use a command like this:</para>
|
||||
|
||||
<para>(this section is based on <ulink
|
||||
url="http://www.vmunix.com/mark/FreeBSD/ZIP-FAQ.html">Mark Mayo's ZIP FAQ</ulink>)
|
||||
</para>
|
||||
<screen>&prompt.root; <userinput>mount /dev/da0s1 /mnt</userinput></screen>
|
||||
|
||||
<para>If it is a ZIP drive or a floppy, you have already got a
|
||||
DOS file system on it, you can use a command like this:</para>
|
||||
<para>If the drive will only be used with &os;
|
||||
systems it is better idea to
|
||||
stick a BSD file system on it, like UFS or ZFS.
|
||||
You will get long filename
|
||||
support, at least a 2X improvement in performance,
|
||||
and a lot more stability. If the drive will be
|
||||
used by other operating systems a more portable
|
||||
choice, such as msdosfs, is better.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>mount -t msdosfs /dev/fd0c /floppy</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/da0 count=2</userinput>
|
||||
&prompt.root; <userinput>gpart create -s GPT /dev/da0</userinput>
|
||||
&prompt.root; <userinput>gpart add -t freebsd-ufs /dev/da0</userinput></screen>
|
||||
|
||||
<para>if it is a floppy, or this:</para>
|
||||
<para>Finally, create a new file system:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>mount -t msdosfs /dev/da2s4 /zip</userinput></screen>
|
||||
|
||||
<para>for a ZIP disk with the factory configuration.</para>
|
||||
|
||||
<para>For other disks, see how they are laid out using
|
||||
&man.fdisk.8; or &man.sysinstall.8;.</para>
|
||||
|
||||
<para>The rest of the examples will be for a ZIP drive on
|
||||
<devicename>da2</devicename>, the third SCSI disk.</para>
|
||||
|
||||
<para>Unless it is a floppy, or a removable you plan on
|
||||
sharing with other people, it is probably a better idea to
|
||||
stick a BSD file system on it. You will get long filename
|
||||
support, at least a 2X improvement in performance, and a lot
|
||||
more stability. First, you need to redo the DOS-level
|
||||
partitions/file systems. You can either use &man.fdisk.8;
|
||||
or &man.sysinstall.8;, or for a small drive that you do not
|
||||
want to bother with multiple operating system support on,
|
||||
just blow away the whole FAT partition table (slices) and
|
||||
just use the BSD partitioning:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/rda2 count=2</userinput>
|
||||
&prompt.root; <userinput>disklabel -Brw da2 auto</userinput></screen>
|
||||
|
||||
<para>You can use &man.disklabel.8; or &man.sysinstall.8; to
|
||||
create multiple BSD partitions. You will certainly want to
|
||||
do this if you are adding swap space on a fixed disk, but it
|
||||
is probably irrelevant on a removable drive like a
|
||||
ZIP.</para>
|
||||
|
||||
<para>Finally, create a new file system, this one is on our
|
||||
ZIP drive using the whole disk:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>newfs /dev/rda2c</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>newfs /dev/da0p1</userinput></screen>
|
||||
|
||||
<para>and mount it:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>mount /dev/da2c /zip</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>mount /dev/da0s1 /mnt</userinput></screen>
|
||||
|
||||
<para>and it is probably a good idea to add a line like this
|
||||
<para>It is a good idea to add a line
|
||||
to <filename>/etc/fstab</filename> (see &man.fstab.5;) so
|
||||
you can just type <command>mount /zip</command> in the
|
||||
you can just type <command>mount /mnt</command> in the
|
||||
future:</para>
|
||||
|
||||
<programlisting>/dev/da2c /zip ffs rw,noauto 0 0</programlisting>
|
||||
<programlisting>/dev/da0p1 /mnt ufs rw,noauto 0 0</programlisting>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue