Linux fstab to mount different fs with the same label

If you have different partitions (such as USB ones) with the same label (so that you can syncro them with the same script) but with different filesystem (such as btrfs and ext4) you can modify your fstab line using auto instead of etx4 or btrfs.

I mean something like this:

LABEL="your-label"  /media/your-mount-path  auto  users,noauto,noatime,nodiratime  0  2

In this way you will be able to mount your usb devices (either etx4 or btrfs or another fs) without problems.

update-grub on btrfs bootable partition

Update-grub could not recognized as bootable a btrfs partition.

A workaround to make a btrfs (bootable) partition recognized by update-grub is to create symlinks to /boot and /etc folders, in this simple way:

  • go to the mounted btrfs partition
  • create symlink for boot
    ln -s @/boot boot
  • create symlink for etc
    ln -s @/etc etc
  • do update-grub