Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 15:09:37 -0500 (EST)
From:      Benjamin Kaduk <kaduk@MIT.EDU>
To:        Eitan Adler <eadler@freebsd.org>
Cc:        svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org
Subject:   Re: svn commit: r39982 - head/en_US.ISO8859-1/books/faq
Message-ID:  <alpine.GSO.1.10.1211121506000.2164@multics.mit.edu>
In-Reply-To: <201211112229.qABMT3dL009319@svn.freebsd.org>
References:  <201211112229.qABMT3dL009319@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 Nov 2012, Eitan Adler wrote:

> 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>

The question is unfortunately cut off; "I have a new removable drive, how 
do I use it?"

> 	</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>
>

Last I checked, our mount.8 did not have magic to guess the file system 
type; a new removable media is unlikely to come preformatted with a 
FreeBSD UFS file system on it, so this command would not work.  The '-t 
msdosfs' seems like a better bet.

> -	  <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.

And this block no longer has meaning, since "better idea" can only be with 
respect to the previous example, which currently assumes ... a BSD file 
system.

-Ben Kaduk

> +	    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>
> +
[trim]



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