Using SCSI Devices
Configuring an External Hard Disk – Worked Example
7-10
SPARCbook Portable Workstation User Guide
Once the partitions have been defined, the resulting partition table looks
like this:
partition>
Part Tag
Flag
Cylinders
Size
Blocks
0
unassigned
wm
0
0
(0/0/0)
0
1
unassigned
wm
0
0
(0/0/0)
0
2
unassigned
wm
0
0
(0/0/0)
0
3
unassigned
wm
0
0
(0/0/0)
0
4
unassigned
wm
0
0
(0/0/0)
0
5
unassigned
wm
0
0
(0/0/0)
0
6
unassigned
wm
0 - 6179
772.50 (6180/0/0) 1582080
7
unassigned
wm
0
0
(0/0/0)
0
Having defined the required partitions, the partition map is written and
the disk labeled with the following commands:
partition>
label
Ready to label disk, continue?
y
partition>
quit
format>
quit
#
ò
Create and then check a filesystem on the new disk
1.
Become superuser.
2.
At the Solaris prompt, enter the following commands:
#
newfs /dev/rdsk/c0t2d0s6
#
fsck /dev/rdsk/c0t2d0s6
ò
Create a mount point and mount the filesystem
In this example, a new directory is created in the root directory to
provide the mount point, and then the new filesystem is mounted. This
is carried out at the Solaris prompt with the following commands:
#
cd
#
mkdir /external
#
mount /dev/dsk/c0t2d0s6 /external
Filesystems can be mounted automatically at boot time by creating an
entry in the
/etc/vfstab
file for each filesystem to be mounted. The
file can be edited by the superuser. The new entry contains information
about the filesystem’s special files, intended mount point, filesystem
type and filesystem checking option.
S3UG4_Book Page 10 Friday, August 8, 1997 11:37 am