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 with scripts, for example, if you need to partition several hundred DASDs.
With
the -a parameter 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 command creates a partition as follows:
Device start end length Id System /dev/dasdzzz1 2 1499 1498 1 Linux native
Using
a configuration file, you can create several partitions. For example,
the following configuration file,
config, creates
three partitions: [first,500]
[501,1100,swap]
[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 command 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 swap /dev/dasdzzz3 1101 1499 399 3 Linux native