From owner-freebsd-doc Fri Oct 8 10:50:13 1999 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 916F814EC4 for ; Fri, 8 Oct 1999 10:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA11038; Fri, 8 Oct 1999 10:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from terrapin.ru.ac.za (terrapin.ru.ac.za [146.231.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 9DA8914D7C for ; Fri, 8 Oct 1999 10:49:37 -0700 (PDT) (envelope-from nbm@mithrandr.moria.org) Received: from duca.dialup.ru.ac.za ([146.231.98.24] helo=mithrandr.moria.org) by terrapin.ru.ac.za with esmtp (Exim 3.03 #1) id 11Ze94-000Oed-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 08 Oct 1999 19:49:30 +0200 Received: (qmail 61821 invoked by uid 1001); 8 Oct 1999 16:21:12 -0000 Message-Id: <19991008162111.61820.qmail@mithrandr.moria.org> Date: 8 Oct 1999 16:21:11 -0000 From: nbm@rucus.ru.ac.za Reply-To: nbm@rucus.ru.ac.za To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/14210: markup fixes for formatting-media article Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14210 >Category: docs >Synopsis: markup fixes for formatting-media article >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 8 10:50:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Neil Blakey-Milner >Release: FreeBSD 4.0-CURRENT i386 >Organization: Rhodes University Computer Users' Society >Environment: FreeBSD mithrandr.moria.org 4.0-CURRENT FreeBSD 4.0-CURRENT #2: Wed Sep 29 17:30:21 SAST 1999 root@mithrandr.moria.org:/usr/src/sys/compile/MITHRANDR i386 >Description: I've changed formatting-media to use s and s, fixed up the s without &prompt references, and used for annotations. I've removed wrappings of lists, where appropriate and possible. Replaced s to man pages with &man entities. >How-To-Repeat: >Fix: cvs diff: Diffing . Index: article.sgml =================================================================== RCS file: /home/nbm/ncvs/doc/en_US.ISO_8859-1/articles/formatting-media/article.sgml,v retrieving revision 1.8 diff -u -r1.8 article.sgml --- article.sgml 1999/10/04 21:48:24 1.8 +++ article.sgml 1999/10/08 16:14:09 @@ -1,4 +1,7 @@ - + +%man; +]>
@@ -39,6 +42,7 @@ FreeBSD. There are two possible modes of disk formatting: + compatibility mode: Arranging a @@ -50,7 +54,6 @@ adding disks easier, however non-FreeBSD operating systems may not accept the disk. - For most cases, dedicated mode is the easiest to set up and use in existing systems, as a new disk is usually dedicated entirely to @@ -169,42 +172,42 @@ confusion from slicing disks. For FreeBSD versions 2.1.7 and later, this is perhaps the simplest way to slice disks. - -Start sysinstall as root by typing + +Start sysinstall as root by typing -/stand/sysinstall +&prompt.root; /stand/sysinstall -from the command prompt. +from the command prompt. -Select Index. -Select Partition. -Select the disk to edit with arrow keys and +Select Index. +Select Partition. +Select the disk to edit with arrow keys and SPACE. - -If you are using this entire disk for FreeBSD, select -A. -When asked: + +If you are using this entire disk for FreeBSD, select +A. +When asked: Do you want to do this with a true partition entry so as to remain cooperative with any future possible operating systems on the drive(s)? -answer No. -When asked if you still want to do this, answer -Yes. -Select Write. -When warned about Writing on installed systems, answer -Yes. -Quitthe FDISK Editor and -ESCAPE back to the Index menu. -Select Label from the Index -menu. -Label as desired. For a single partition, enter +answer No. +When asked if you still want to do this, answer +Yes. +Select Write. +When warned about Writing on installed systems, answer +Yes. +Quitthe FDISK Editor and +ESCAPE back to the Index menu. +Select Label from the Index +menu. +Label as desired. For a single partition, enter C to Create a partition, accept the default size, partition type Filesystem, and a mountpoint (which isn't -used). -Enter W when done and confirm to +used). +Enter W when done and confirm to continue. The filesystem will be newfs'd for you, unless you select otherwise (for news partitions you'll want to do this!). You'll get the error: @@ -212,9 +215,9 @@ Error mounting /mnt/dev/wd2s1e on /mnt/blah : No such file or directory Ignore. - -Exit out by repeatedly pressing ESCAPE. - + +Exit out by repeatedly pressing ESCAPE. + @@ -225,12 +228,10 @@ name. Lines beginning with # are comments. - - dd if=/dev/zero of=/dev/rwd2 count=2 - disklabel /dev/rwd2 | disklabel -B -R -r wd2 /dev/stdin - # We only want one partition, so using slice 'c' should be fine: - newfs /dev/rwd2c - +&prompt.root; dd if=/dev/zero of=/dev/rwd2 count=2 +&prompt.root; disklabel /dev/rwd2 | disklabel -B -R -r wd2 /dev/stdin +We only want one partition, so using slice 'c' should be fine: +&prompt.root; newfs /dev/rwd2c @@ -239,14 +240,12 @@ - - dd if=/dev/zero of=/dev/rwd2 count=2 - disklabel /dev/r$d > /tmp/label - # Edit disklabel to add partitions: - vi /tmp/label - disklabel -B -R -r wd2 /tmp/label - # newfs partitions appropriately - +&prompt.root; dd if=/dev/zero of=/dev/rwd2 count=2 +&prompt.root; disklabel /dev/r$d > /tmp/label +Edit disklabel to add partitions: +&prompt.root; vi /tmp/label +&prompt.root; disklabel -B -R -r wd2 /tmp/label +newfs partitions appropriately @@ -271,50 +270,50 @@ Making Compatibility Mode Disks Using Sysinstall - -Start sysinstall as root by typing + +Start sysinstall as root by typing -/stand/sysinstall +&prompt.root; /stand/sysinstall -from the command prompt. +from the command prompt. -Select Index. -Select Partition. -Select the disk to edit with arrow keys and +Select Index. +Select Partition. +Select the disk to edit with arrow keys and SPACE. - -If you are using this entire disk for FreeBSD, select -A. + +If you are using this entire disk for FreeBSD, select +A. -When asked: +When asked: Do you want to do this with a true partition entry so as to remain cooperative with any future possible operating systems on the drive(s)? - answer yes. -Select Write. -When asked to install the boot manager, select None with -SPACE then hit ENTER for OK. -Quit the FDISK Editor. -You'll be asked about the boot manager, select + answer yes. +Select Write. +When asked to install the boot manager, select None with +SPACE then hit ENTER for OK. +Quit the FDISK Editor. +You'll be asked about the boot manager, select None -again. -Select Label from the Index -menu. -Label as desired. For a single partition, accept the +again. +Select Label from the Index +menu. +Label as desired. For a single partition, accept the default size, type filesystem, and a mountpoint (which isn't -used). -The filesystem will be newfs'd for you, unless you select otherwise (for news partitions you'll want to do this!). You'll get the error: +used). +The filesystem will be newfs'd for you, unless you select otherwise (for news partitions you'll want to do this!). You'll get the error: Error mounting /mnt/dev/wd2s1e on /mnt/blah : No such file or directory Ignore. - -Exit out by repeatedly pressing ESCAPE. - + +Exit out by repeatedly pressing ESCAPE. + Your new disk is now ready for use. @@ -330,36 +329,36 @@ Although adding swap space to existing disks is very difficult, a new disk can be partitioned with additional swap space. -To add swap space when adding a disk to a system: - -When partitioning the disk, edit the disklabel and +To add swap space when adding a disk to a system: + +When partitioning the disk, edit the disklabel and allocate the amount of swap space to add in partition `b' and the remainder in another partition, such as `a' or `e'. The size is given -in 512 byte blocks. -When newfsing the drive, do NOT newfs the `c' +in 512 byte blocks. +When newfsing the drive, do NOT newfs the `c' partition. Instead, newfs the partition where the non-swap space -lies. -Add an entry to /etc/fstab as follows: +lies. +Add an entry to /etc/fstab as follows: /dev/wd0b none swap sw 0 0 + Change /dev/wd0b to the device of the newly added -space. -To make the new space immediately available, use the +space. +To make the new space immediately available, use the swapon command. -$ swapon /dev/sd0b +&prompt.root; swapon /dev/sd0b swapon: added /dev/sd0b as swap space - - - + + @@ -371,13 +370,11 @@ do: - -mount /dev/wd2 /mnt -pax -r -w -p e /usr/home /mnt -umount /mnt -rm -rf /usr/home/* -mount /dev/wd2 /usr/home - +&prompt.root; mount /dev/wd2 /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 @@ -390,7 +387,7 @@ The Concatenated Disk Driver, or CCD, allows you to treat several identical disks as a single disk. Striping can result in increased disk performance by distributing reads and -writes across the disks. See the ccd(4) and ccdconfig(4) man pages or the +writes across the disks. See the &man.ccd.4; and &man.ccdconfig.8; man pages or the CCD Homepage for further details. To create a new CCD, execute the following commands. This describes @@ -406,21 +403,22 @@ - -cd /dev ; sh MAKDEV ccd0 - -disklabel -r -w sd0 auto -disklabel -r -w sd1 auto -disklabel -r -w sd2 auto +&prompt.root; cd /dev ; sh MAKDEV ccd0 -disklabel -e sd0c # change type to 4.2BSD -disklabel -e sd1c # change type to 4.2BSD -disklabel -e sd2c # change type to 4.2BSD +&prompt.root; disklabel -r -w sd0 auto +&prompt.root; disklabel -r -w sd1 auto +&prompt.root; disklabel -r -w sd2 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 -ccdconfig ccd0 32 0 /dev/sd0c /dev/sd1c /dev/sd2c +&prompt.root; ccdconfig ccd0 32 0 /dev/sd0c /dev/sd1c /dev/sd2c -newfs /dev/rccd0c - +&prompt.root; newfs /dev/rccd0c @@ -436,7 +434,7 @@ The author would like to thank the following individuals for -their contributions to this project: +their contributions to this project: Darryl Okahata (darrylo@hpnmhjw.sr.hp.com) for his @@ -453,7 +451,6 @@ work and pointing out inaccuracies, as well as miscellaneous support. - >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message