disksetup(1M) UNIX System V(Base System) disksetup(1M)
NAME
disksetup - disk set up utility
SYNOPSIS
/etc/disksetup -I -B [-d defaults-file] -bboot-file raw-device (Install primary disk)
/etc/disksetup -I [-d defaults-file] raw-device (Install additional disk)
/etc/disksetup -b boot-file raw-device (write boot code to the disk)
DESCRIPTION
-I will cause the raw-device to be installed (surface analysis,
creation/writing the pdinfo, VTOC, and alternates tables (for non-
SCSI drives).
-B is flag to designate that the raw-device will be the system boot
device.
-d defaults-file
is used to pass in a default layout for the raw-device. The
information from the defaults file will be used to generate the
default slices for the UNIX System partition. The layout of the
file is explained in one of the following sections.
-b boot-file
will cause the disksetup to write the boot code found the boot file
into the boot slice of the UNIX System partition. The boot code
can be in either ELF or COFF format. Only the required
sections/segments will be loaded. The boot file provided with the
system is /etc/boot.
raw-device
the required raw-device argument is the character special device
for the disk drive to be accessed. It should the slice 0 device to
represent the entire device (e.g., /dev/rdsk/0s0 or
/dev/rdsk/c0t0d0s0).
disksetup handles the low level activities required to install the
primary drive or additional drives. The tasks which are required for the
setup of disks include surface analysis, assisting a user create the
layout of slices (either through a set of defaults or by querying them),
writing the pdinfo, VTOC and alternates tables out to the drive, issuing
need mkfs calls, creating mount points, mounting filesystems and updating
the /etc/vfstab file. program.
In regards to disksetup's method for assisting a user define the layout
of slices, if no defaults-file is provided, a user is queried first on
which slices they wish to create, and then are queried on the sizes for
those slices. (The user must ultimately confirm their choices and can
repeat the above steps if they are unsatisfied with their choices.) If a
defaults-file is provided, a default layout of slices will be created
based on the defaults-file. If the user selects the default layout a VTOC
representing the default layout is written to the drive. If the user does
not select the default layout they will be allowed to specify the sizes
10/89 Page 1
disksetup(1M) UNIX System V(Base System) disksetup(1M)
for slices defined in the defaults-file.
The layout for the defaults-file is as follows:
slice # slice name FStype slice size
1 / s5 35M
2 /dev/swap - 2m
3 /usr ufs 60W
4 /home ufs 40W
10 /stand bfs 5M
The slice number is the entry in VTOC where the slice will be located.
Slice name is mount point if the slice is a filesystem or descriptive
name if no file system will be created. FStype is the file system type
for the slice where s5, ufs and bfs mean that type of mkfs is to be
issued, an - means issue no mkfs for this slice. Slice size is an
integer value followed by size specifier character. The M size specifier
character means megabytes (MB), so 35M means 35 MB slice size. The m size
specifier meands times the size of memory, so assuming 4 MB of memory 2m
means 8 MB slice size. The W size specifier character means weighted
proportion. To calculate a weighted proportion of xW, x is divided by
the sum of the W requests and then that value is multiplied with the
remaining disk space (after M and m type requests were handled) to give
the slice size. Assuming a 100 MB disk with 4 MB of memory, the above
defaults file would yield:
slice 1 35M = 35 MB size
slice 2 2m = (2 * 4MB) = 8 MB size
slice 3 60W = (60/100 * 52 MB) = 31 MB size
slice 4 40W = (40/100 * 52 MB) = 21 MB size
slice 5 5M = 5 MB size
FILES
/dev/dsk/1s?
/dev/dsk/c?t?d?s?
/dev/rdsk/1s*
/dev/rdsk/c?t?d?s0
/etc/vfstab
SEE ALSO
fdisk(1M), mkdir(1M) mkfs(1M), mount(1M), swap(1M).
Page 2 10/89