How to auto mount various volumes at startup?

Just at mountpoints you should have mounted what you want to mount. It will automatically mount on startup.

Majordomo as well as LXC are 2 partitions running on my internal mSATA drive. In case of the RAID, you have to use the UUID of the RAID and NOT of the parition. If i remember correctly of my own NAS (not Omnia), it was the same. Using the UUID is unique and will not change. So if you type “blkid” if i am correct you will see the UUID of your RAID.

blkid:

> root@K-Router:/etc/config# blkid
/dev/mmcblk0p1: UUID="5a0c7fd9-f1cf-48f4-9812-0d6cfa15574f" UUID_SUB="0e81e00b-3676-43fa-b1b5-19500f0f105e" TYPE="btrfs" PARTUUID="b6b3faa0-01"
/dev/sda1: UUID="e9e630b9-00de-4e19-9661-fef45c1fdd94" UUID_SUB="7b511f96-1565-4b0d-b6c5-d7a3e3963e44" TYPE="btrfs" PARTUUID="12774218-01"
/dev/sda2: UUID="b3964b7b-cd45-4137-9624-49cf6e67b220" UUID_SUB="d56b8215-4a67-4e17-a4b9-5dcb05482a17" TYPE="btrfs" PARTUUID="12774218-02"
/dev/mmcblk0: PTUUID="b6b3faa0" PTTYPE="dos"

As you can see there is the UUID and the UUID_SUB. The UUID is of the harddrive itself, but the UUID_SUB is of the partition. Post your “blkid” result here to see what you are having as a result.

Here my fstab file.

config global
        option anon_swap '0'
        option anon_mount '0'
        option auto_swap '1'
        option auto_mount '1'
        option delay_root '5'
        option check_fs '0'

config mount
        option target '/mnt/majordomo'
        option enabled '1'
        option uuid '7b511f96-1565-4b0d-b6c5-d7a3e3963e44'
        option fstype 'btrfs'

config mount
        option uuid 'd56b8215-4a67-4e17-a4b9-5dcb05482a17'
        option target '/mnt/LXC'
        option fstype 'btrfs'
        option enabled '1'

config swap
        option device '/dev/sda3'
        option label 'swap'
        option enabled '0'
1 Like