fstab mount by UUID

I recently ran across a bug when installing Fedora 20. The installer crashed when trying to probe mdraid. This also happened when I (completely) disconnected the array from the computer. The problem was, that the installer was probing the /etc/fstab in the old fedora installation I wanted to overwrite. Here the raid array was mounted as

This is however now anyway deprecated . The proposed (and preffered) way to mount Raid arrays and any disks is using persistent block device naming. In most cases this would mean mounting by UUID.

In order to show the UUIDs of all disks one can use

The changing the corresponding line in /etc/fstab is rather easy:

11 thoughts on “fstab mount by UUID”

Leave a Reply

Your email address will not be published. Required fields are marked *