View Full Version : Hide GPT partition with GRUB2

November 13th, 2016, 02:14 PM
With MBR, a partition can be hidden by simply using parttool. However, GRUB2 has no parttool for GPT.
Is there any alternative to hide GPT partitions in GRUB2?

November 13th, 2016, 04:33 PM
Do not know details, but it is there.

man gdisk

a Set attributes. GPT provides a 64-bit attributes field that can

be used to set features for each partition. gdisk supports four
attributes: system partition, read-only, hidden, and do not
automount. You can set other attributes, but their numbers
aren't translated into anything useful. In practice, most OSes
seem to ignore these attributes.

November 27th, 2016, 01:59 PM
But gdisk is a Linux tool, right?
I was looking for a solution in GRUB2.

November 27th, 2016, 04:00 PM
In grub the hidden command is only for MBR(msdos) and for multiple FAT partitions to hide one or the other.

What is it that you want to do?

December 4th, 2016, 10:13 AM
Since GPT has also a hidden attribute, I am looking for an option to set this attribute.