Next: , Previous: select, Up: Command explanations


2.4.16 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:

`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).
`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.
`swap'
(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) - 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.

The print command displays all enabled flags for each partition.

Example:

          (parted) set 1 boot on
     

Set the `boot' flag on partition 1.