addpart
Inform the kernel about a new partition
TLDR
Tell the kernel about the existence of a partition
SYNOPSIS
addpart device partition start length
DESCRIPTION
addpart is a simple wrapper around the "add partition" ioctl that notifies the Linux kernel about a partition that exists on disk but was not detected automatically. This is useful when partition tables are modified while the disk is in use, or when the kernel's partition scanning missed an entry during boot.
The command only updates the kernel's in-memory partition table; it does not create or modify the actual partition table on disk.
PARAMETERS
device
The block device containing the partition (e.g., /dev/sda)partition
The partition number to addstart
The starting sector of the partitionlength
The length of the partition in sectors
CAVEATS
This command only informs the kernel about partitions; it does not create or modify the actual partition table on disk. Use tools like fdisk or parted to modify partition tables.
HISTORY
Part of the util-linux package, which provides essential system utilities for Linux.
