From 57f5fb5e58c6fc9e18ff7fcb36fd431a1685e633 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Mon, 4 Jun 2001 03:04:38 +0000 Subject: [PATCH] Bring device names up to date. Correct ccd tutorial. Correct typos. MFC after: 2 weeks --- .../articles/formatting-media/article.sgml | 129 +++++++++++------- .../articles/formatting-media/article.sgml | 129 +++++++++++------- 2 files changed, 162 insertions(+), 96 deletions(-) diff --git a/en_US.ISO8859-1/articles/formatting-media/article.sgml b/en_US.ISO8859-1/articles/formatting-media/article.sgml index c6854498eb..9e2da98466 100644 --- a/en_US.ISO8859-1/articles/formatting-media/article.sgml +++ b/en_US.ISO8859-1/articles/formatting-media/article.sgml @@ -2,10 +2,10 @@ %man; ]> - +
- Formatting Media For Use With FreeBSD 2.2-RELEASE + Formatting Media For Use With FreeBSD A Tutorial @@ -29,7 +29,8 @@ This document describes how to slice, partition, and format hard disk drives and similar media for use with FreeBSD. The examples given have been tested under FreeBSD - 2.2-GAMMA and may work for other releases. + 2.2 and should work for other releases. The text has been updated + for FreeBSD version 4. @@ -59,12 +60,13 @@ - dangerously dedicated mode: - Formatting a disk with no slice table. This makes the - process of adding disks easier, however non-FreeBSD - operating systems may not accept the disk. - - + dedicated mode, sometimes called + dangerously dedicated mode: Formatting a disk + with no slice table. This makes the process of adding disks easier, + however non-FreeBSD operating systems may not accept the disk. The + term dangerously refers to the danger that the + system may not recognize a disk formatted in this manner. + For most cases, dedicated mode is the easiest to set up and use in existing systems, as a new disk is usually @@ -80,7 +82,7 @@ allowing access to the Label and Partition editors and a Write feature which will update just the selected disk and slice without affecting other disks. The other method is running - the tools manually from a root command line. For dangerously + the tools manually from a root command line. For dedicated mode, only three or four commands are involved while sysinstall requires some manipulation. @@ -101,11 +103,11 @@ now. --> compatibility mode: Arranging a disk so that it has a slice table for use with other operating systems. Oppose - dangerously dedicated mode. + dedicated mode. - dangerously dedicated mode: Formatting a disk with no + (dangerously) dedicated mode: Formatting a disk with no slice table. This makes the process of adding disks easier, however non-FreeBSD operating systems may not accept the disk. Oppose compatibility mode. @@ -189,8 +191,8 @@ now. --> Introduction This section details how to make disks that are totally - dedicated to FreeBSD. Remember, dedicated mode disks cannot - be booted by the PC architecture. + dedicated to FreeBSD. Remember, dedicated mode disks sometimes + cannot be booted by the PC architecture. @@ -285,7 +287,7 @@ drive(s)? do this!). You'll get the error: - Error mounting /mnt/dev/wd2s1e on /mnt/blah : No such file or directory + Error mounting /mnt/dev/ad2s1e on /mnt/blah : No such file or directory @@ -302,14 +304,14 @@ drive(s)? Making Dedicated Mode Disks Using the Command Line - Execute the following commands, replacing wd2 with the + Execute the following commands, replacing ad2 with the disk name. - &prompt.root; dd if=/dev/zero of=/dev/rwd2 count=2 -&prompt.root; disklabel /dev/rwd2 | disklabel -B -R -r wd2 /dev/stdin + &prompt.root; dd if=/dev/zero of=/dev/ad2 count=2 +&prompt.root; disklabel /dev/ad2 | disklabel -B -R -r ad2 /dev/stdin We only want one partition, so using slice 'c' should be fine: -&prompt.root; newfs /dev/rwd2c +&prompt.root; newfs /dev/ad2c @@ -317,11 +319,11 @@ drive(s)? partitions (such as swap), use the following: - &prompt.root; dd if=/dev/zero of=/dev/rwd2 count=2 -&prompt.root; disklabel /dev/r$d > /tmp/label + &prompt.root; dd if=/dev/zero of=/dev/ad2 count=2 +&prompt.root; disklabel /dev/$d > /tmp/label Edit disklabel to add partitions: &prompt.root; vi /tmp/label -&prompt.root; disklabel -B -R -r wd2 /tmp/label +&prompt.root; disklabel -B -R -r ad2 /tmp/label newfs partitions appropriately @@ -426,7 +428,7 @@ drive(s)? this!). You'll get the error: - Error mounting /mnt/dev/wd2s1e on /mnt/blah : No such file or directory + Error mounting /mnt/dev/ad2s1e on /mnt/blah : No such file or directory @@ -475,11 +477,11 @@ drive(s)? follows: - /dev/wd0b none swap sw 0 0 + /dev/ad0b none swap sw 0 0 - Change /dev/wd0b to the device of the newly added + Change /dev/ad0b to the device of the newly added space. @@ -488,8 +490,8 @@ drive(s)? swapon command. - &prompt.root; swapon /dev/sd0b -swapon: added /dev/sd0b as swap space + &prompt.root; swapon /dev/da0b +swapon: added /dev/da0b as swap space @@ -508,11 +510,11 @@ swapon: added /dev/sd0b as swap space one, do: - &prompt.root; mount /dev/wd2 /mnt + &prompt.root; mount /dev/ad2 /mnt &prompt.root; pax -r -w -p e /usr/home /mnt &prompt.root; umount /mnt &prompt.root; rm -rf /usr/home/* -&prompt.root; mount /dev/wd2 /usr/home +&prompt.root; mount /dev/ad2 /usr/home @@ -532,39 +534,70 @@ swapon: added /dev/sd0b as swap space URL="http://stampede.cs.berkeley.edu/ccd/">CCD Homepage for further details. - To create a new CCD, execute the following commands. This - describes how to add three disks together; simply add or - remove devices as necessary. Remember that the disks to be - striped must be identical. + You no longer need to build a special kernel to run ccd. When you + run ccdconfig, it will load the KLD for you if the + kernel does not contain CCD support. - Before executing these commands, make sure you add the line + You build CCDs on disk partitions of type + 4.2BSD. If you want to use the entire disk, you + still need to create a new partition. For example, disklabel + -e might show: - pseudo-device ccd 4 + + # size offset fstype [fsize bsize bps/cpg] + c: 60074784 0 unused 0 0 0 # (Cyl. 0 - 59597) + + - to your kernel. + You shouldn't use partition c for the CCD, + since it is of type unused. Instead, create a new + partition of exactly the same size, but with type + 4.2BSD: + + + # size offset fstype [fsize bsize bps/cpg] + c: 60074784 0 unused 0 0 0 # (Cyl. 0 - 59597) + e: 60074784 0 4.2BSD 0 0 0 # (Cyl. 0 - 59597) + + + + To create a new CCD, execute the following commands. This + describes how to add three disks together; simply add or remove devices + as necessary. Remember that the disks to be striped must be + identical. &prompt.root; cd /dev ; sh MAKDEV ccd0 -&prompt.root; disklabel -r -w sd0 auto -&prompt.root; disklabel -r -w sd1 auto -&prompt.root; disklabel -r -w sd2 auto +&prompt.root; disklabel -r -w da0 auto +&prompt.root; disklabel -r -w da1 auto +&prompt.root; disklabel -r -w da2 auto -&prompt.root; disklabel -e sd0c -change type to 4.2BSD -&prompt.root; disklabel -e sd1c -change type to 4.2BSD -&prompt.root; disklabel -e sd2c -change type to 4.2BSD +&prompt.root; disklabel -e da0 +Add partition e with type 4.2BSD +&prompt.root; disklabel -e da1 +Add partition e with type 4.2BSD +&prompt.root; disklabel -e da2 +Add partition e with type 4.2BSD -&prompt.root; ccdconfig ccd0 32 0 /dev/sd0c /dev/sd1c /dev/sd2c +&prompt.root; ccdconfig ccd0 273 0 /dev/da0e /dev/da1e /dev/da2e -&prompt.root; newfs /dev/rccd0c +&prompt.root; newfs /dev/ccd0c + The value 273 is the stripe size. This is the number of disk + sectors (of 512 bytes each) in each block of data on the CCD. It should + be at least 128 kB, and it should not be not be a power of 2. + Now you can mount and use your CCD by referencing device /dev/ccd0c. + +A more powerful and flexible alternative to CCD is Vinum. See the Vinum Project home page for further +details + + @@ -579,7 +612,7 @@ swapon: added /dev/sd0b as swap space Darryl Okahata (darrylo@hpnmhjw.sr.hp.com) for his simple dedicated mode setup documentation which I have used - repeatedly on freebsd-questions. + repeatedly on FreeBSD-questions. diff --git a/en_US.ISO_8859-1/articles/formatting-media/article.sgml b/en_US.ISO_8859-1/articles/formatting-media/article.sgml index c6854498eb..9e2da98466 100644 --- a/en_US.ISO_8859-1/articles/formatting-media/article.sgml +++ b/en_US.ISO_8859-1/articles/formatting-media/article.sgml @@ -2,10 +2,10 @@ %man; ]> - +
- Formatting Media For Use With FreeBSD 2.2-RELEASE + Formatting Media For Use With FreeBSD A Tutorial @@ -29,7 +29,8 @@ This document describes how to slice, partition, and format hard disk drives and similar media for use with FreeBSD. The examples given have been tested under FreeBSD - 2.2-GAMMA and may work for other releases. + 2.2 and should work for other releases. The text has been updated + for FreeBSD version 4. @@ -59,12 +60,13 @@ - dangerously dedicated mode: - Formatting a disk with no slice table. This makes the - process of adding disks easier, however non-FreeBSD - operating systems may not accept the disk. - - + dedicated mode, sometimes called + dangerously dedicated mode: Formatting a disk + with no slice table. This makes the process of adding disks easier, + however non-FreeBSD operating systems may not accept the disk. The + term dangerously refers to the danger that the + system may not recognize a disk formatted in this manner. + For most cases, dedicated mode is the easiest to set up and use in existing systems, as a new disk is usually @@ -80,7 +82,7 @@ allowing access to the Label and Partition editors and a Write feature which will update just the selected disk and slice without affecting other disks. The other method is running - the tools manually from a root command line. For dangerously + the tools manually from a root command line. For dedicated mode, only three or four commands are involved while sysinstall requires some manipulation. @@ -101,11 +103,11 @@ now. --> compatibility mode: Arranging a disk so that it has a slice table for use with other operating systems. Oppose - dangerously dedicated mode. + dedicated mode. - dangerously dedicated mode: Formatting a disk with no + (dangerously) dedicated mode: Formatting a disk with no slice table. This makes the process of adding disks easier, however non-FreeBSD operating systems may not accept the disk. Oppose compatibility mode. @@ -189,8 +191,8 @@ now. --> Introduction This section details how to make disks that are totally - dedicated to FreeBSD. Remember, dedicated mode disks cannot - be booted by the PC architecture. + dedicated to FreeBSD. Remember, dedicated mode disks sometimes + cannot be booted by the PC architecture. @@ -285,7 +287,7 @@ drive(s)? do this!). You'll get the error: - Error mounting /mnt/dev/wd2s1e on /mnt/blah : No such file or directory + Error mounting /mnt/dev/ad2s1e on /mnt/blah : No such file or directory @@ -302,14 +304,14 @@ drive(s)? Making Dedicated Mode Disks Using the Command Line - Execute the following commands, replacing wd2 with the + Execute the following commands, replacing ad2 with the disk name. - &prompt.root; dd if=/dev/zero of=/dev/rwd2 count=2 -&prompt.root; disklabel /dev/rwd2 | disklabel -B -R -r wd2 /dev/stdin + &prompt.root; dd if=/dev/zero of=/dev/ad2 count=2 +&prompt.root; disklabel /dev/ad2 | disklabel -B -R -r ad2 /dev/stdin We only want one partition, so using slice 'c' should be fine: -&prompt.root; newfs /dev/rwd2c +&prompt.root; newfs /dev/ad2c @@ -317,11 +319,11 @@ drive(s)? partitions (such as swap), use the following: - &prompt.root; dd if=/dev/zero of=/dev/rwd2 count=2 -&prompt.root; disklabel /dev/r$d > /tmp/label + &prompt.root; dd if=/dev/zero of=/dev/ad2 count=2 +&prompt.root; disklabel /dev/$d > /tmp/label Edit disklabel to add partitions: &prompt.root; vi /tmp/label -&prompt.root; disklabel -B -R -r wd2 /tmp/label +&prompt.root; disklabel -B -R -r ad2 /tmp/label newfs partitions appropriately @@ -426,7 +428,7 @@ drive(s)? this!). You'll get the error: - Error mounting /mnt/dev/wd2s1e on /mnt/blah : No such file or directory + Error mounting /mnt/dev/ad2s1e on /mnt/blah : No such file or directory @@ -475,11 +477,11 @@ drive(s)? follows: - /dev/wd0b none swap sw 0 0 + /dev/ad0b none swap sw 0 0 - Change /dev/wd0b to the device of the newly added + Change /dev/ad0b to the device of the newly added space. @@ -488,8 +490,8 @@ drive(s)? swapon command. - &prompt.root; swapon /dev/sd0b -swapon: added /dev/sd0b as swap space + &prompt.root; swapon /dev/da0b +swapon: added /dev/da0b as swap space @@ -508,11 +510,11 @@ swapon: added /dev/sd0b as swap space one, do: - &prompt.root; mount /dev/wd2 /mnt + &prompt.root; mount /dev/ad2 /mnt &prompt.root; pax -r -w -p e /usr/home /mnt &prompt.root; umount /mnt &prompt.root; rm -rf /usr/home/* -&prompt.root; mount /dev/wd2 /usr/home +&prompt.root; mount /dev/ad2 /usr/home @@ -532,39 +534,70 @@ swapon: added /dev/sd0b as swap space URL="http://stampede.cs.berkeley.edu/ccd/">CCD Homepage for further details. - To create a new CCD, execute the following commands. This - describes how to add three disks together; simply add or - remove devices as necessary. Remember that the disks to be - striped must be identical. + You no longer need to build a special kernel to run ccd. When you + run ccdconfig, it will load the KLD for you if the + kernel does not contain CCD support. - Before executing these commands, make sure you add the line + You build CCDs on disk partitions of type + 4.2BSD. If you want to use the entire disk, you + still need to create a new partition. For example, disklabel + -e might show: - pseudo-device ccd 4 + + # size offset fstype [fsize bsize bps/cpg] + c: 60074784 0 unused 0 0 0 # (Cyl. 0 - 59597) + + - to your kernel. + You shouldn't use partition c for the CCD, + since it is of type unused. Instead, create a new + partition of exactly the same size, but with type + 4.2BSD: + + + # size offset fstype [fsize bsize bps/cpg] + c: 60074784 0 unused 0 0 0 # (Cyl. 0 - 59597) + e: 60074784 0 4.2BSD 0 0 0 # (Cyl. 0 - 59597) + + + + To create a new CCD, execute the following commands. This + describes how to add three disks together; simply add or remove devices + as necessary. Remember that the disks to be striped must be + identical. &prompt.root; cd /dev ; sh MAKDEV ccd0 -&prompt.root; disklabel -r -w sd0 auto -&prompt.root; disklabel -r -w sd1 auto -&prompt.root; disklabel -r -w sd2 auto +&prompt.root; disklabel -r -w da0 auto +&prompt.root; disklabel -r -w da1 auto +&prompt.root; disklabel -r -w da2 auto -&prompt.root; disklabel -e sd0c -change type to 4.2BSD -&prompt.root; disklabel -e sd1c -change type to 4.2BSD -&prompt.root; disklabel -e sd2c -change type to 4.2BSD +&prompt.root; disklabel -e da0 +Add partition e with type 4.2BSD +&prompt.root; disklabel -e da1 +Add partition e with type 4.2BSD +&prompt.root; disklabel -e da2 +Add partition e with type 4.2BSD -&prompt.root; ccdconfig ccd0 32 0 /dev/sd0c /dev/sd1c /dev/sd2c +&prompt.root; ccdconfig ccd0 273 0 /dev/da0e /dev/da1e /dev/da2e -&prompt.root; newfs /dev/rccd0c +&prompt.root; newfs /dev/ccd0c + The value 273 is the stripe size. This is the number of disk + sectors (of 512 bytes each) in each block of data on the CCD. It should + be at least 128 kB, and it should not be not be a power of 2. + Now you can mount and use your CCD by referencing device /dev/ccd0c. + +A more powerful and flexible alternative to CCD is Vinum. See the Vinum Project home page for further +details + + @@ -579,7 +612,7 @@ swapon: added /dev/sd0b as swap space Darryl Okahata (darrylo@hpnmhjw.sr.hp.com) for his simple dedicated mode setup documentation which I have used - repeatedly on freebsd-questions. + repeatedly on FreeBSD-questions.