Page 1 of 1

automount m2-SSD in Nano Pi R5s

Posted: Sun Feb 02, 2025 6:44 pm
by peterlepan
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?

Re: automount m2-SSD in Nano Pi R5s

Posted: Fri Feb 21, 2025 6:10 am
by bob
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