System Upgrades
Upgrading the Main Memory
15-10
SPARCbook Portable Workstation User Guide
ò
Checking for Free Space
1.
To check how much free space is available in
/export/home
enter the following command:
#
df -k /opt
Filesystem
kbytes
used
avail
capacity Mounted on
/dev/dsk/c0t0d0s5 2471936 494388 1977548 20%
/opt
In this example, the available disk space = 1977548 Kbytes.
Note
The
df -k
command displays the disk space usage and availability information in
KBytes. Note that 1MB = 1024 Kbytes.
2.
Subract the additional disk space required (see Table 15-2) from
the available free space. In this example a 64MB to 128MB
upgrade:
1977548 - 98304 = 1879244
The result shows that there is sufficient space on this hard disk
for the upgrade to succeed.
However, if there is not sufficient space (that is, result is a small
or negative value), you will have to use a larger hard disk and
load the operating system from the Tadpole or Sunsoft CDs or
remove unwanted files from
/opt
.
ò
Calculating the New Partition Sizes
Before you can repartition the drive, you need to calculate the new size
of the
swap
,
save
and
home
partitions. Partition sizes are expressed in
cylinders and blocks.
To calculate the number of blocks per cylinder, multiply the
hd
size by
the
sec
size which are shown when you first issue the
format
command. In this example,
hd = 8
, and
sec = 64
(see the
format
command on page 15-12):
1 cylinder = 8 x 64 = 512 blocks
S3UG4_Book Page 10 Friday, August 8, 1997 11:37 am