Example using options
You can partition a DASD by using the -a or -c option without entering the menu mode.
This method is useful for partitioning by using scripts, for example, if you need to partition several hundred DASDs.
With
the -a option you can create one large partition
on a DASD:
# fdasd -a /dev/dasdzzz
auto-creating one partition for the whole disk...
writing volume label...
writing VTOC...
rereading partition table...
#
This example creates a partition as follows: Device start end length Id System
/dev/dasdzzz1 2 1499 1498 1 Linux native
Using
a configuration file that you can create several partitions. For example,
the following configuration file,
config
, creates
three partitions: [first,500]
[501,1100]
[1101,last]
Submitting the command with the -c option
creates the partitions: # fdasd -c config /dev/dasdzzz
parsing config file 'config'...
writing volume label...
writing VTOC...
rereading partition table...
#
This example creates partitions as follows: Device start end length Id System
/dev/dasdzzz1 2 500 499 1 Linux native
/dev/dasdzzz2 501 1100 600 2 Linux native
/dev/dasdzzz3 1101 1499 399 3 Linux native