Hi guys,
installing a new HDD in my 2 years old OMV NAS I also experienced the new situation of new mounting points going to be by-id instead of by-label. I don't want to discuss this in general if it's bad or good, there are enough topics here about this. As I am a creature of habit, I just wanted to have my new drive mounted like all my other old drives. Here is a tutorial how I succeed to to this:
- Make sure you have backups of your system and data. This might destroy your OMV config and data. You should know what you will do. I'm not an linux expert, I just figured out how to solve my issues and it worked. Red text needs to be replaced with your custom values like UUID and label. I tried this on 5.6.15-1 (Usul)
- Shutdown, insert your new hard drive in your NAS case, boot up again (if not hot swap nas)
- Wipe the new drive. Login into your OMV UI --> Storage --> Disks --> select the new drive. Make sure all data on the new drive is not needed any more, because this will completely clean your new drive
- Optional: Encrypt the new drive with the label you desire (LUKS encryption). E.g. mylabel2000. Once created, unlock the drive with you just encrypted
- Create a new filesystem (I am using btrfs) for your new drive and insert the desired label as well. E.g. mylabel2000. But do not mount the new drive!
- Open omv config, e.g.
nano /etc/openmediavault/config.xml
Search for "<hdparm>". Watch out for the drive you added, it should be listed in one of the <devicefile> elements. Copy the uuid between <uuid> and </uuid> - Open fstab to add your new drive, e.g.
nano /etc/fstab
Insert new line before
# <<< [openmediavault]
and insert the following (change the label name mylabel2000 to your defined label):
/dev/disk/by-label/mylabel2000 /srv/dev-disk-by-label-mylabel2000 btrfs defaults,nofail 0 2
Save your configuration - Open omv config, e.g.
nano /etc/openmediavault/config.xml
Search for <fstab>
Add new drive directly after <fstab>, e.g. (change YOUR_UUID_OF_NEW_DRIVE and mylabel2000 to your defined label name)
<mntent> <uuid>YOUR_UUID_OF_NEW_DRIVE</uuid> <fsname>/dev/disk/by-label/mylabel2000</fsname> <dir>/srv/dev-disk-by-label-mylabel2000</dir> <type>btrfs</type> <opts>defaults,nofail</opts> <freq>0</freq> <passno>2</passno> <hidden>0</hidden> </mntent> - Maybe you need to reboot again,I don't remember if I did this or not

- Once up and running again, decrypt and after some seconds the mounting should happend automatically
Make sure you have backups and a rollback strategy if something goes wrong!
Best
Michael