Power & Source of Big Ideas

automount m2-SSD in Nano Pi R5s

Moderators: chensy, FATechsupport

hello all,
i have a short question about Nano Pi R5s with FriendlyWRT.
i installed a M2-SSD in my Nano Pi R5s. I could partition, format and mount the ssd. all works fine.
My only problem is, that the SSD isn't mounted autimatically.
I inserted the necessary entry in /etc/fstab, that seemed to work because i can mount the SSD with mount -a
what have i to config to get my ssd automatically mounted at system boot?
Is it necessary to make some entries in the uci-config-files?
I did something like:

# Setup Mount Points
mkdir -p /mnt/nvme0n1p9
mkdir -p /mnt/sda1
mount /dev/nvme0n1p9 /mnt/nvme0n1p9
mount /dev/sda1 /mnt/sda1

# we can find the UUID of the drives...
blkid

vi /etc/fstab
UUID="49346f6f-6e91-435f-8224-77641d72b5fc" /mnt/nvme0n1p9 ext4 defaults 0 2
UUID="a1246067-960f-4623-aabf-ae5cbac913f2" /mnt/sda1 ext4 defaults 0 2

# USB drive folder gets deleted, so we can make it at startup...
vi /etc/rc.local
mkdir -p /mnt/nvme0n1p9
mkdir -p /mnt/sda1
mount -a

# Make /etc/rc.local Executable
chmod +x /etc/rc.local

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests