Forrest logo
back to the addpart tool

addpart:tldr:ced75

addpart: Tell the kernel about the existence of the specified partition.
$ addpart ${device} ${partition} ${start} ${length}
try on your machine

The command "addpart ${device} ${partition} ${start} ${length}" is used to add a partition to a specified device with specific start and length values.

Here's a breakdown of each parameter:

  • ${device}: It represents the device where you want to add a partition. This can be a storage device such as a hard drive (/dev/sda) or an image file (/path/to/image).
  • ${partition}: It specifies the partition number you want to create. This can be any integer value representing the partition number (e.g., 1, 2, 3, etc.).
  • ${start}: It indicates the starting block or sector for the new partition. This will determine the initial position of the partition on the device.
  • ${length}: It determines the length of the partition in blocks or sectors. This value defines how much space the partition will occupy on the device.

By running this command, you can create a partition on a device by specifying the device, partition number, start, and length values. The actual values you input for ${device}, ${partition}, ${start}, and ${length} will depend on your specific use case.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the addpart tool