Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Difference between revisions of "Installer Partitioning"

From Void Linux Wiki
Jump to navigation Jump to search
(Removed categories to make it orphan on purpose as the contents are no longer applicable.)
m (Added Category:Installation)
Line 42: Line 42:
parted&gt; quit</pre>
parted&gt; quit</pre>
The EFI System Partition must be ''explicitly'' mounted at ''/boot/efi'' to properly load via the ''GNU GRUB2'' bootloader.
The EFI System Partition must be ''explicitly'' mounted at ''/boot/efi'' to properly load via the ''GNU GRUB2'' bootloader.

Latest revision as of 01:59, 25 August 2017

Note: this is outdated and cfdisk should be used for partitioning now, see void google groups page

  1. REDIRECT Disks

The Void installer gives flexibility by not forcing anybody to use a fixed layout, instead the user must create the desired partitions via GNU Parted.

BIOS system - MBR

For MBR, a partition table of type msdos must be created with parted:

parted> mktable msdos

At least two partitions, one for the rootfs and another one for swap must be created. For this example we'll create two primary partitions (adapt it to your needs):

parted> mkpart primary linux-swap 0% 10%
parted> mkpart primary ext2 10% 100%

This creates two primary partitions: 1st with 10% of total disk space for swap, and 90% of total disk space for the rootfs. Now the rootfs partition must be set as bootable, i.e:

parted> set 2 boot on
parted> quit

This is the minimum required for BIOS systems with a MBR partition table.

BIOS system - GPT

GPT partition tables do not have the limit of 4 primary partitions (unlike MBR) but requires an additional (small) partition to be able to boot from GNU GRUB. Use mktable gpt to initialize a disk with a GPT partition table:

parted> mktable gpt

3 partitions are at least required to use GPT: 1 small partition (1MB) with no filesystem at the first 2GB of the disk with toggle bios_grub used for booting, and 2 more for the rootfs and swap, i.e:

parted> mkpart primary ext2 1 2
parted> set 1 bios_grub on
parted> mkpart primary linux-swap 2 10%
parted> mkpart primary ext4 10% 100%
parted> quit

When selecting the filesystems and mount points later in the installer, do not select a mount point or filesystem type for the bios_grub partition. You only need to set a mount point and filesystem for the rootfs partition - usually '/' (without quotes) for the mount point and ext4 for the filesystem.

EFI system - GPT

For EFI systems GPT is mandatory but does not have the restrictions explained above. The only requirement is to have a bootable partition (EFI System Partition) of type FAT32 and with enough size to store the EFI drivers. 500MB should be enough to store a bunch of them:

parted> mktable gpt
parted> mkpart fat32 0% 500M
parted> set 1 boot on
parted> quit

The EFI System Partition must be explicitly mounted at /boot/efi to properly load via the GNU GRUB2 bootloader.