Linux Commands Examples

A great documentation place for Linux commands

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

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
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

How can this site be more helpful to YOU ?


give  feedback