|
|
coherent
hard disk Technical Information hard disk
The hard disk is the primary means of storing and accessing data
under the COHERENT system. This article introduces some aspects
of the COHERENT system that affect the care and feeding of your
hard disk.
***** Device Drivers *****
The COHERENT system comes with two sets of drivers for hard
disks: the aatt drivers, for AT-style hard disks; and the ssccssii
drivers, for the SCSI family of hard disks. See their respective
articles in the Lexicon for details.
***** Partitioning *****
The COHERENT command ffddiisskk displays information about how your
hard disk is currently configured. You can also use it to
repartition your hard disk and reassign partitions from MS-DOS to
COHERENT, or vice versa.
Note that this is an extremely powerful command, with which you
can create much mayhem on your system. Like any powerful tool,
it should be treated carefully and with respect. See the article
on ffddiisskk in the Lexicon for details on how to use this command.
Partitioning your hard drive can be an uncomplicated procedure.
We offer these guidelines in an effort to make it as simple as
possible. Before attempting any partitioning you should first
back-up all the data currently on your hard drive. If you do not
do this you risk losing data permanently. You should also know
the correct physical parameters of your hard drive. This
information can be obtained from your machine documentation or
from the drive manufacturer. It is best not to rely on the
parameters given in the BIOS: these may be translation
parameters.
If your drive is formatted for MS-DOS, it is advisable to run MS-
DOS ffddiisskk before you start to install COHERENT. If the whole
drive is taken up by DOS partitions, you must use MS-DOS ffddiisskk to
create a non-DOS area on the drive. It is not sufficient to have
an empty MS-DOS logical drive set aside for COHERENT. COHERENT
does not recognise MS-DOS logical drives, it only sees the whole
partition. In the following diagram, the top column shows the
way MS-DOS ffddiisskk sees your drive, and lower the column shows the
way COHERENT ffddiisskk sees your drive:
Z-------------------------?
| DOS Root Partition |
C-------------------------4
| DOS Extended Partition |
| C-------------------4 |
| | Logical Drive 1 | |
| C-------------------4 |
| | Logical Drive 2 | |
COHERENT Lexicon Page 1
hard disk Technical Information hard disk
| C-------------------4 |
| | Logical Drive 3 | |
| @-------------------Y |
@-------------------------4
Z--------------------------?
| DOS Root Partition |
C--------------------------4
| |
| |
| |
| |
| DOS Extended Partition |
| |
| |
| |
@--------------------------4
If you use COHERENT ffddiisskk to repartition MS-DOS space, you risk
causing MS-DOS ffddiisskk to hang. One further word of warning. If
you have an automated disk formatting and partitioning utility on
your MS-DOS partition such as Disk Manager or Speedstor, you
should operate it in ``manual'' mode, not in ``automatic''.
Some hard drives have more than 1,024 cylinders. COHERENT can
only recognise a drive up to this limit. You may have a utility
such as Speedstor that allows you to place MS-DOS partitions
beyond that boundary. COHERENT will not see those partitions,
but you can still access them as usual through MS-DOS. However,
when partitioning a drive with more than 1,024 cylinders, it is
necessary to follow the following principles:
11. Run the partitioning utility before you start to install
COHERENT. You should create a non-DOS partition that falls
completely within the 1,022-cylinder boundary. Your next
MS-DOS partition should start no sooner than the 1,026th
cylinder.
***** Adding a COHERENT Partition *****
The following describes how to add a new COHERENT partition on
your hard disk.
During your initial installation of COHERENT, the installation
program handled the details of preparing your hard disk for
COHERENT. Adding a partition after the system is installed is
not difficult, but it requires that you understand the operation
of the following commands: bbaaddssccaann, cchhmmoodd, cchhoowwnn, ffddiisskk, ffsscckk,
mmkkffss and mmoouunntt. See the Lexicon articles for each of these
commands for further information before attempting to add a
partition.
COHERENT Lexicon Page 2
hard disk Technical Information hard disk
In general, the following steps are required when creating a
partition for use by COHERENT. Please note that you must not
change the size of your existing root partition, or you may no
longer be able to boot COHERENT from the hard disk.
11. Completely back up all partitions on your hard disk. Be sure
to back up the COHERENT partitions, as well as any non-
COHERENT partitions (e.g., those for MS-DOS or OS/2). Verify
that your backups are _r_e_a_d_a_b_l_e and _c_o_r_r_e_c_t.
22. Log in as the superuser rroooott. Make sure all other users are
off the system; then invoke the command /eettcc/sshhuuttddoowwnn. This
shuts down COHERENT and returns the system to single-user
mode. Type the command ssyynncc to flush all buffers.
33. Invoke the COHERENT command ffddiisskk and add the COHERENT
partition to your disk, as described above. Be sure to write
down the device name associated with your new partition (e.g.,
/ddeevv/aatt00cc) and its size.
44. The command bbaaddssccaann checks the device for bad blocks. If your
partition resides on a non-SCSI device (e.g., MFM, RLL, ESDI,
or IDE), run the command bbaaddssccaann as follows:
/etc/badscan -v -o /conf/proto._d_e_v_i_c_e _r_a_w__d_e_v_i_c_e _x_d_e_v_i_c_e
where _d_e_v_i_c_e specifies the four-character block-special device
name for the partition (e.g., aatt00cc), _r_a_w__d_e_v_i_c_e is the full
device path name for the character-special device associated
with the partition (e.g., /ddeevv/rraatt00cc), and _x_d_e_v_i_c_e specifies
the partition-table device for the disk drive (e.g.,
/ddeevv/aatt00xx).
55. Invoke the command mmkkffss to create a COHERENT file system on
the new partition, as follows:
/etc/mkfs /dev/_d_e_v_i_c_e /conf/proto._d_e_v_i_c_e
This invocation will cause mmkkffss to use the contents of the
``proto'' file that bbaaddssccaann created when it built the
_b_a_d__b_l_o_c_k list for the new partition.
66. If need be, use command mmkkddiirr to create a directory to use as
a _m_o_u_n_t _p_o_i_n_t for the newly created file system. The mount
point is the directory onto which this directory's file system
will be appended. Usually, this directory is located under
`/', also called the _r_o_o_t _d_i_r_e_c_t_o_r_y. You can, however, mount
a file system onto any directory that already exists. If you
create a new directory (e.g., /ww or /mmyyddiirr), use the commands
cchhoowwnn and cchhmmoodd to set an appropriate ownership and mode for
for the directory.
77. Edit the file /eettcc/mmoouunntt.aallll and add a line of the following
form:
COHERENT Lexicon Page 3
hard disk Technical Information hard disk
/etc/mount _d_e_v_i_c_e /_m_o_u_n_t__p_o_i_n_t
where _d_e_v_i_c_e is the full path name of the device that
specifies your new partition (e.g., /ddeevv/aatt00cc), and
_m_o_u_n_t__p_o_i_n_t is the name of the directory that you created in
the earlier step.
88. Finally, edit the file /eettcc/cchheecckklliisstt and add the character
special device name (e.g., /ddeevv/rraatt00cc) of the new COHERENT
partition to it. This will ensure that COHERENT will
automatically run ffsscckk on that partition's file system
whenever you boot the system. This can be vital in recovering
from a system crash.
***** Adding Another Hard Disk *****
If you wish to add another hard disk to your system, you may have
to run some low-level routines that are hardware specific. See
the documentation that accompanies your hardware for details.
In brief, when you install the hard disk, you must partition it,
as you did your original hard disk when you first installed
COHERENT. If you wish to add non-COHERENT operating systems to
one or more partitions, do so first; then add COHERENT to the
remaining partitions, as described above.
***** Changing the Size of the Root Partition *****
Changing the size of your rroooott file system requires that you
reinstall COHERENT. It is strongly advised that you back up _a_l_l
partitions of your system before you attempt to do this. In
addition, to reduce the time involved in restoring your data
files, make an additional backup of all directories and files
that have changed form your original MWC installation. The
command ffiinndd will help you locate all such files; see its Lexicon
entry for details.
You should then follow the directions given in the release notes
for installing COHERENT. Note that when you attempt to install
COHERENT over an existing COHERENT partition, COHERENT will ask
you if you are sure you know what you're doing before the
installation procedure creates a new file system on the
partition. Be sure to request that a new file system be created,
or the installation will fail.
After installing the COHERENT distribution onto your new root
partition, restore any data files and directories from the second
set of backups that you performed.
***** See Also *****
aatt, bbaaddssccaann, cchhmmoodd, cchhoowwnn, ffddiisskk, ffsscckk, tteecchhnniiccaall iinnffoorrmmaattiioonn,
mmkkffss, mmoouunntt, ssccssii
COHERENT Lexicon Page 4
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.