Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 22:29:03 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r39982 - head/en_US.ISO8859-1/books/faq
Message-ID:  <201211112229.qABMT3dL009319@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Nov 11 22:29:03 2012
New Revision: 39982
URL: http://svnweb.freebsd.org/changeset/doc/39982

Log:
  Modernize the removable-drives FAQ.
  
  Reviewed by:	Richard Yao <ryao@gentoo.org>
  Reviewed by:	koobs.freebsd@gmail.com
  Approved by:	bcr (mentor)

Modified:
  head/en_US.ISO8859-1/books/faq/book.xml

Modified: head/en_US.ISO8859-1/books/faq/book.xml
==============================================================================
--- head/en_US.ISO8859-1/books/faq/book.xml	Sun Nov 11 22:29:01 2012	(r39981)
+++ head/en_US.ISO8859-1/books/faq/book.xml	Sun Nov 11 22:29:03 2012	(r39982)
@@ -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>
-
-	  <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>
-
-	  <screen>&prompt.root; <userinput>mount -t msdosfs /dev/fd0c /floppy</userinput></screen>
-
-	  <para>if it is a floppy, or this:</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>
+	  <screen>&prompt.root; <userinput>mount /dev/da0s1 /mnt</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>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>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>Finally, create a new file system, this one is on our
-	    ZIP drive using the whole disk:</para>
+	  <para>Finally, create a new file system:</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>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211112229.qABMT3dL009319>