addpart
simple wrapper around the "add partition" ioctl
see also :
delpart - fdisk - parted - partprobe - partx
Synopsis
addpart
device partition start length
add an example, a script, a trick and tips
examples
source
OBJ = bsd.o dos.o
partx.o solaris.o unixware.o
all: addpart delpart partx
partx: $(OBJ)
addpart: addpart.o
addpart: addpart.o
delpart: delpart.o
clean:
rm -f $(OBJ)
addpart.o delpart.o addpart delpart partx *~
$(OBJ): partx.h
description
addpart
is a program that informs the Linux kernel of new
partition.
This command
doesn’t manipulate partitions on hard drive.
availability
The addpart command is part of the util-linux package and is
available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
parameters
device
Specify the disk device.
partition
Specify the partition number.
start
Specify the begin of the partition (in 512-byte sectors).
length
Specify the length of the partition (in 512-byte sectors).
see also
delpart ,
fdisk , parted , partprobe ,
partx