From owner-svn-doc-all@FreeBSD.ORG Sun Nov 11 22:29:04 2012 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18CC392A; Sun, 11 Nov 2012 22:29:04 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id F28548FC15; Sun, 11 Nov 2012 22:29:03 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qABMT3nJ009321; Sun, 11 Nov 2012 22:29:03 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qABMT3dL009319; Sun, 11 Nov 2012 22:29:03 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201211112229.qABMT3dL009319@svn.freebsd.org> From: Eitan Adler Date: Sun, 11 Nov 2012 22:29:03 +0000 (UTC) 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 X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 22:29:04 -0000 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 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" - 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. + If the drive already has a + file system on it, you can use a command like this: - (this section is based on Mark Mayo's ZIP FAQ) - - - 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: - - &prompt.root; mount -t msdosfs /dev/fd0c /floppy - - if it is a floppy, or this: - - &prompt.root; mount -t msdosfs /dev/da2s4 /zip - - for a ZIP disk with the factory configuration. - - For other disks, see how they are laid out using - &man.fdisk.8; or &man.sysinstall.8;. - - The rest of the examples will be for a ZIP drive on - da2, the third SCSI disk. - - 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: - - &prompt.root; dd if=/dev/zero of=/dev/rda2 count=2 -&prompt.root; disklabel -Brw da2 auto + &prompt.root; mount /dev/da0s1 /mnt - 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. + 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. + + &prompt.root; dd if=/dev/zero of=/dev/da0 count=2 +&prompt.root; gpart create -s GPT /dev/da0 +&prompt.root; gpart add -t freebsd-ufs /dev/da0 - Finally, create a new file system, this one is on our - ZIP drive using the whole disk: + Finally, create a new file system: - &prompt.root; newfs /dev/rda2c + &prompt.root; newfs /dev/da0p1 and mount it: - &prompt.root; mount /dev/da2c /zip + &prompt.root; mount /dev/da0s1 /mnt - and it is probably a good idea to add a line like this + It is a good idea to add a line to /etc/fstab (see &man.fstab.5;) so - you can just type mount /zip in the + you can just type mount /mnt in the future: - /dev/da2c /zip ffs rw,noauto 0 0 + /dev/da0p1 /mnt ufs rw,noauto 0 0