diff options
author | peter <peter@FreeBSD.org> | 1995-12-07 10:34:59 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-12-07 10:34:59 +0000 |
commit | 03382d7ccd5ed3c8bf17b6719df445c2d9c5dea6 (patch) | |
tree | 3d31cd880ab6a9af9ad3ab3c6313d70e1c542d60 /usr.sbin/sade/help | |
parent | 53a232b78efd4ef6c84ff8047a3a43c3d8cf0a25 (diff) | |
download | FreeBSD-src-03382d7ccd5ed3c8bf17b6719df445c2d9c5dea6.zip FreeBSD-src-03382d7ccd5ed3c8bf17b6719df445c2d9c5dea6.tar.gz |
Update the -current sources from the 2.1 branch.
Approved (in spirit) by: jkh
Diffstat (limited to 'usr.sbin/sade/help')
-rw-r--r-- | usr.sbin/sade/help/partition.hlp | 196 | ||||
-rw-r--r-- | usr.sbin/sade/help/slice.hlp | 61 |
2 files changed, 167 insertions, 90 deletions
diff --git a/usr.sbin/sade/help/partition.hlp b/usr.sbin/sade/help/partition.hlp index 19b6ce1..cbce9a4 100644 --- a/usr.sbin/sade/help/partition.hlp +++ b/usr.sbin/sade/help/partition.hlp @@ -1,21 +1,50 @@ This is the FreeBSD DiskLabel Editor. +NOTE: If you're entering this editor from the update procedure then +you probably shouldn't (C)reate anything at all but rather use only +the (M)ount command to check and mount existing partitions for +upgrading. + +If you would like the label editor to do most of the following for +you, simply type `A' for automatic partitioning of the disk. + +If you wish to create partitions manually you may do so by moving the +highlighted selection bar with the arrow keys over the FreeBSD +partition(s) displayed at the top of the screen. Typing (C)reate +while a partition with available free space is selected will allow you +to create a BSD partition inside of it using some or all of its +available space. + +Typing (M)ount over an existing partition entry (displayed in the +middle of the screen) will allow you to set a mount point for it +without initializing it. If you want it initialized, use the (T)oggle +command to flip the Newfs flag. When Newfs is set to "Y", the +filesystem in question will be ERASED and rebuilt from scratch! + +NOTE: The (W)rite option is HIGHLY DANGEROUS and should NOT BE USED if +you're installing a new system! It's only for use in resurrecting +or changing an existing system, and will cause unpredictable things to +happen if you use it in any other circumstances. Don't do it! Wait +for the final commit dialog if you're express/novice installing, or +use the "Commit" menu item if you're custom installing, and do it there. + + You should use this editor to create at least the following filesystems: - Name Purpose Min Size? Optional? - ---- ------- --------- --------- - / Root filesystem 20MB No - swap Swap space 2 * MEM No - /usr System & user files 80MB or more Yes + Name Purpose Min Size? Optional? + ---- ------- --------- --------- + / Root filesystem 20MB No + swap Swap space 2 * MEM No + /usr System & user files 80MB or more Yes Note: If you do not create a /usr filesystem then your / filesystem will need to be bigger - at least 100MB. This is not recommended as any media errors that may occur during disk I/O to user files will corrupt the filesystem containing vital system files as well. It is for this reason that / is generally kept on its own filesystem, where -it's basically considered "read only" by the system and hence a good -deal safer. +it should be considered essentially "read only" in your administration +of it. Swap space is a little tricker, and the rule of "2 * MEM" is simply a best-guess approximation and not necessarily accurate for your @@ -44,79 +73,88 @@ instead. You may therefore wish to make the / partition bigger if you expect a lot of mail or news and do not want to make /var its own partition. - -If you're new to this installation, you should also first understand -how FreeBSD 2.0.5's new "slices" paradigm for looking at disk storage -works. It's not very hard to grasp. A "fully qualified slice name", -that is the name of the file we open in /dev to talk to the slice, is -optionally broken into 3 parts: - - First you have the disk name. Assume we have two SCSI - drives in our system, which gives us `sd0' and `sd1'. - - Next you have the "Slice" (or "FDISK Partition") number, - as seen in the Partition Editor. Assume that our sd0 contains - two slices, a FreeBSD slice and a DOS slice. This gives us - sd0s1 and sd0s2. Let's also say that sd1 is completely devoted - to FreeBSD, so we have only one slice there: sd1s1. - - Next, if a slice is a FreeBSD slice, you have a number of - (confusingly named) "partitions" you can put inside of it. - These FreeBSD partitions are where various filesystems or swap - areas live, and using our hypothetical two-SCSI-disk machine - again, we might have something like the following layout on sd0: - - Name Mountpoint - ---- ---------- - sd0s1a / - sd0s1b <swap space> - sd0s1e /usr - - Because of historical convention, there is also a short-cut, - or "compatibility slice", that is maintained for easy access - to the first FreeBSD slice on a disk for those programs which - still don't know how to deal with the new slice scheme. - The compatibility slice names for our filesystem above would - look like: - - Name Mountpoint - ---- ---------- - sd0a / - sd0b <swap space> - sd0e /usr - - FreeBSD automatically maps the compatibility slice to the first - FreeBSD slice it finds (in this case, sd0s1). You may have multiple - FreeBSD slices on a drive, but only the first one may be the - compatibility slice! - - The compatibility slice will eventually be phased out, but - it is still important right now for several reasons: - - 1. Some programs, as mentioned before, still don't work - with the slice paradigm and need time to catch up. - - 2. The FreeBSD boot blocks are unable to look for - a root file system in anything but a compatibility - slice right now. This means that our root will always - show up on "sd0a" in the above scenario, even though - it really lives over on sd0s1a and would otherwise be - referred to by its full slice name. - -Once you understand all this, then the label editor becomes fairly -simple. You're either carving up the FreeBSD slices displayed at the -top of the screen into smaller pieces (displayed in the middle of the -screen) and then putting FreeBSD file systems on them, Or you're just -mounting existing partitions/slices into your filesystem hierarchy; -this editor lets you do both. Since a DOS partition is also just -another slice as far as FreeBSD is concerned, you can mount one into -in your filesystem hierarchy just as easily with this editor. For -FreeBSD partitions you can also toggle the "newfs" state so that -the partitions are either (re)created from scratch or simply checked -and mounted (the contents are preserved). +If you're new to this installation, you might also want to read the +following explanation of how FreeBSD's new "slice" paradigm for +looking at disk storage works: + + +In FreeBSD's new system, a device name can be broken up into up to 3 +parts. Take a typical name like ``/dev/sd0s1a'': + + The first three characters represent the drive name. If we had + a system with two SCSI drives on it then we'd see /dev/sd0 and + /dev/sd1 as the device entries representing the entire drives. + + Next you have the "slice" (or "FDISK Partition") number, + as seen in the Partition Editor. Assuming that our sd0 + contained two slices, a FreeBSD slice and a DOS slice, that + would give us /dev/sd0s1 and /dev/sd0s2 as device entries pointing + to the entire slices. + + Next, if a slice is a FreeBSD slice, you can have a number of + (confusingly named) "partitions" inside of it. + + These partitions are where various filesystems or swap areas live, + and using our hypothetical two-SCSI-disk machine again, we might + have something like the following layout on sd0: + + Name Mountpoint + ---- ---------- + sd0s1a / + sd0s1b <swap space> + sd0s1e /usr + + Because of historical convention, there is also a short-cut, + or "compatibility slice", that is maintained for easy access + to the *first* FreeBSD slice on a disk. This gives some + backwards compatibility to utilities that still may not know + how to deal with the new slice scheme. + + The compatibility slice names for our filesystem above would + also look like: + + Name Mountpoint + ---- ---------- + sd0a / + sd0b <swap space> + sd0e /usr + + Again, let it be noted: FreeBSD automatically maps the + compatibility slice to the first FreeBSD slice it finds + (in this case, sd0s1). You may have multiple FreeBSD slices on a + drive, but only the first one will be mapped to the compatibility + slice! + + The compatibility slice will eventually be phased out, but + it is still important right now for several reasons: + + 1. Some programs, as mentioned before, still don't work + with the slice paradigm and need time to catch up. + + 2. The FreeBSD boot blocks are unable to look for + a root file system in anything but a compatibility + slice right now. This means that our root will always + show up on "sd0a" in the above scenario, even though + it really lives over on sd0s1a and would otherwise be + referred to by its full slice name. + +Once you understand all this, then the purpose of the label editor +becomes fairly clear: You're carving up the FreeBSD slices displayed +at the top of the screen into smaller pieces, which are displayed in +the middle of the screen, and then assigning FreeBSD file system names +(mount points) to them. + +You can also use the label editor to mount existing partitions/slices +into your filesystem hierarchy, as is frequently done for DOS FAT +slices. For FreeBSD partitions, you can also toggle the "newfs" state +so that the partitions are either (re)created from scratch or simply +checked and mounted (the contents are preserved). When you're done, type `Q' to exit. No actual changes will be made to the disk until you (C)ommit from the -Install menu! You're working with what is essentially a copy of -the disk label(s), both here and in the FDISK Partition Editor. +Install menu or (W)rite directly from this one. You're working with +what is essentially a copy of the disk label(s), both here and in the +FDISK Partition Editor, and the actual on-disk labels won't be +affected by any changes you make until you explicitly say so. + diff --git a/usr.sbin/sade/help/slice.hlp b/usr.sbin/sade/help/slice.hlp index e055ca4..1c1581b 100644 --- a/usr.sbin/sade/help/slice.hlp +++ b/usr.sbin/sade/help/slice.hlp @@ -1,15 +1,23 @@ -This is the Main Partition (or ``Slice'') Editor. +This is the Main Partition (or ``FDISK'') Editor. + +Possible commands are printed at the bottom and the Master Boot Record +contents are shown at the top. You can move up and down with the +arrow keys and (C)reate a new partition whenever the highlighted +selection bar is over a partition whose type is marked as "unused." + +You are expected to leave this screen with at least one partition +marked "FreeBSD." Note that unlike Linux, you don't need to create +multiple FreeBSD fdisk partition entries for different things like +swap, file systems, etc. The usual convention is to create ONE +FreeBSD partition per drive and then subsection this partition into +swap and file systems with the Label editor. -Possible commands are printed at the bottom, and the Master Boot Record -contents are at the top. You can move up and down with the arrow keys -and can (C)reate a new partition whenever the "bar" is over a partition -whose type is set to "unused". The flags field has the following legend: - '=' -- Partition is properly aligned. - '>' -- The partition doesn't end before cylinder 1024 - 'R' -- Has been marked as containing the root (/) filesystem + '=' -- This partition is properly aligned. + '>' -- This partition doesn't end before cylinder 1024 + 'R' -- This partition contains the root (/) filesystem 'B' -- Partition employs BAD144 bad-spot handling 'C' -- This is the FreeBSD 2.0-compatibility partition (default) 'A' -- This partition is marked active. @@ -21,8 +29,39 @@ If no partition is marked Active, you will need to either install a Boot Manager (the option for which will be presented later in the installation) or set one Active before leaving this screen. -To leave this screen, type `Q'. +To leave the partition editor, type `Q'. No actual changes will be made to the disk until you (C)ommit from the -Install menu! You're working with what is essentially a copy of -the disk label(s), both here and in the Label Editor. +Install menu or use the (W)rite option here! You're working with what +is essentially a copy of the disk label(s), both here and in the Label +Editor. + +NOTE: The (W)rite option is HIGHLY DANGEROUS and should NOT BE USED if +you're installing a new system! It's only for use in resurrecting +or changing an existing system, and will cause unpredictable things to +happen if you use it in any other circumstances. Don't do it! Wait +for the final commit dialog if you're express/novice installing, or +use the "Commit" menu item if you're custom installing, and do it there. + +If you want to use the entire disk for FreeBSD, type `A'. You'll be +asked whether or not you wish to keep the disk (potentially) compatible +with other operating systems, i.e. the information in the FDISK table +should be kept valid. If you select the default of `Yes', slices will be +aligned to fictitious cylinder boundaries and space will be reserved +in front of the FreeBSD slice for a [future] possible boot manager. + +For the truly dedicated disk case, you can select `No' at the +compatibility prompt. In that case, all BIOS geometry considerations +will no longer be in effect and you can safely ignore any +``The detected geometry is invalid'' warning messages you may later +see. It is also not necessary in this case to set a partition bootable +or install an MBR boot manager as both things are then irrelevant. + +The FreeBSD slice will start at absolute sector 0 of the disk (so that +FreeBSD's disk label is identical to the Master Boot Record) and +extend to the very last sector of the disk medium. Needless to say, +such a disk cannot have any sort of a boot manager, `disk manager', +or anything else that has to interact with the BIOS. This option is +therefore only considered safe for SCSI disks and most IDE disks and +is primarily intented for people who are going to set up a dedicated +FreeBSD server or workstation, not a typical `home PC'. |