2.4.14 set

Command: set number flag state

Changes a flag on the partition with number number. A flag can be either “on” or “off”. Some or all of these flags will be available, depending on what disk label you are using:

bios_grub

(GPT) - Enable this to record that the selected partition is a GRUB BIOS partition.

legacy_boot

(GPT) - this flag is used to tell special purpose software that the GPT partition may be bootable.

bls_boot

(MS-DOS, GPT) - Enable this to indicate that the selected partition is a Linux Boot Loader Specification compatible /boot partition.

boot

(Mac, MS-DOS, PC98) - should be enabled if you want to boot off the partition. The semantics vary between disk labels. For MS-DOS disk labels, only one partition can be bootable. If you are installing LILO on a partition that partition must be bootable. For PC98 disk labels, all ext2 partitions must be bootable (this is enforced by Parted).

msftdata

(GPT) - This flag identifies partitions that contain Microsoft filesystems (NTFS or FAT). It may optionally be set on Linux filesystems to mimic the type of configuration created by parted 3.0 and earlier, in which a separate Linux filesystem type code was not available on GPT disks. This flag can only be removed within parted by replacing it with a competing flag, such as boot or msftres.

msftres

(MS-DOS,GPT) - This flag identifies a "Microsoft Reserved" partition, which is used by Windows. Note that this flag should not normally be set on Windows filesystem partitions (those that contain NTFS or FAT filesystems).

irst

(MS-DOS, GPT) - this flag identifies an Intel Rapid Start Technology partition.

esp

(MS-DOS, GPT) - this flag identifies a UEFI System Partition. On GPT it is an alias for boot.

chromeos_kernel

(GPT) - this flag indicates a partition that can be used with the Chrome OS bootloader and verified boot implementation.

lba

(MS-DOS) - this flag can be enabled to tell MS DOS, MS Windows 9x and MS Windows ME based operating systems to use Linear (LBA) mode.

root

(Mac) - this flag should be enabled if the partition is the root device to be used by Linux.

linux-home

(GPT) - Enable this to indicate that the selected partition is a Linux /home partition.

swap

(MS-DOS, GPT, Mac) - this flag should be enabled if the partition is the swap device to be used by Linux.

hidden

(MS-DOS, PC98) - this flag can be enabled to hide partitions from Microsoft operating systems.

raid

(MS-DOS) - this flag can be enabled to tell linux the partition is a software RAID partition.

LVM

(MS-DOS) - this flag can be enabled to tell linux the partition is a physical volume.

PALO

(MS-DOS) - this flag can be enabled so that the partition can be used by the Linux/PA-RISC boot loader, palo.

PREP

(MS-DOS, GPT) - this flag can be enabled so that the partition can be used as a PReP boot partition on PowerPC PReP or IBM RS6K/CHRP hardware.

DIAG

(MS-DOS) - Enable this to indicate that a partition can be used as a diagnostics / recovery partition.

The print command displays all enabled flags for each partition.

Example:

(parted) set 1 boot on

Set the ‘boot’ flag on partition 1.