Answer the question
In order to leave comments, you need to log in
Where is /boot mounted on Linux with GPT partitioning?
I'm trying to build software raid1 using mdadm on Linux with GPT. Previously, this was done with a bang when using the MBR.
Disk layout:
parted -s /dev/sda print
Model: ATA ST1000NC001-1DY1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 1049kB 1031kB bios_grub
2 1049kB 134MB 133MB fat32 boot, esp
3 134MB 1000GB 1000GB lvm
parted -s /dev/sdb print
Model: ATA ST1000NC001-1DY1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 1049kB 1031kB bios_grub
2 1049kB 134MB 133MB raid
3 134MB 1000GB 1000GB raid
cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext4 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
Answer the question
In order to leave comments, you need to log in
Nowhere, the ESP partition is mounted in /boot/efi.
Here is my simplified configuration:
env LANG=C sudo parted -s /dev/sdb print
Model: ATA KINGSTON SMS200S (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 525MB 524MB fat32 boot, esp
2 525MB 120GB 120GB btrfs
cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
tmpfs /tmp tmpfs defaults 0 0
UUID=5170aca4-061a-4c6c-ab00-bd7fc8ae6030 / btrfs compress=lzo,noatime,relatime,ssd,subvol=/root 0 1
UUID=8EE3-7796 /boot/efi vfat defaults,discard 0 0
A separate partition for boot was needed only because it was not possible to put a driver into the bootloader of the first stage for each fs. But you have a bios_grub section on your gpt partition. Its minimum size (if my memory serves me right) is 32 kilobytes. There already grub can write half of its modules and drivers for all supported fs, for raid, etc. So there is no need for a separate boot partition.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question