Yeni84
Flight Engineer
Flight Engineer
  • 1,230 Views

Partition flags: parted /dev/sdb set 1 lvm(boot/root/swap) on .Effect on partition or just info?

Hello,

Related to partition flags, do they have an effect on the partitions when set OR they are just as information, like a comment: "this partition is used for lvm/swap/boot/root" ?

//from the man 8 parted

Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba", "legacy_boot" and "palo". state should be either "on" or "off".

Thank you01 lvm flag with parted.JPG

Labels (5)
0 Kudos
2 Replies
Alexandre
Starfighter Starfighter
Starfighter
  • 1,223 Views

Hello.

A little more information about flags can be found in the documentation pages of the GNU project, for example: https://www.gnu.org/software/parted/manual/html_node/set.html

I hope those info help you to undestend propose of flags.

0 Kudos
Yeni84
Flight Engineer
Flight Engineer
  • 1,210 Views

@Alexandre Thank you for link. But it does not tell if do they have an effect on the partitions when set OR they are just as information, like a comment: "this partition is used for lvm/swap/boot/root" .

For example: 

In this case " ‘LVM’ (MS-DOS) - this flag can be enabled to tell linux the partition is a physical volume", it is said "this flag can be enabled". So "can", it does not say "should" like in the next example: ‘root’ (Mac) - this flag should be enabled if the partition is the root device to be used by Linux.

So my understanding is that for a partition on a disk with MS-DOS disk label for which we want to configure it with LVM, it is not mandatory to set the LVM flag on this partition. And in case that we set it, it will work as an information/comment. 

Any other sources, comments are welcomed? Thank you.

 

Join the discussion
You must log in to join this conversation.