Using Partition Labels In Fstab
The Linux /etc/fstab file can be set up to use partition labels similar to grub2. This adds stability and simplicity to the environment. Here's the fstab I use for Ubuntu. The Suse and Fedora fstab files are nearly identical.
Once you have the partition labels set, the systems boot and mount reliably even after major disk reshuffles. The swap and EFI partitions are also mounted via label. None of those nasty UUID’s. The nofail parameter prevents Linux from hanging if a particular partition is not available at boot time.
This file is available in the C:\grub2\winhelp directory as sample.fstab.
#
# /etc/fstab ** Ubuntu **
#
# <file system> <mount point> <type> <options> <dump> <pass>
#
LABEL=ubuntu-22.04 / ext4 errors=remount-ro 0 1
LABEL=swap none swap nofail,sw 0 0
LABEL=EFI-PART /boot/efi vfat nofail,umask=0077 0 1
#
#
LABEL=suse-tumbleweed /suse ext4 nofail
LABEL=fedora-36.0 /fedora ext4 nofail
#
LABEL=btrfs-testing /btrfs-testing btrfs nofail
#
LABEL=Windows /C: ntfs-3g nofail
LABEL=Data /D: ntfs-3g nofail
#
LABEL=OS-X /OS-X hfsplus nofail,ro
LABEL=Time-Machine /Time-Machine hfsplus nofail,ro
Created with the Personal Edition of HelpNDoc: Easily create Qt Help files