Mounting nvme over PCIe Raspberry Pi5

I can mount my nvme:

volumio@volumio:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 472.4M 0 loop /static
mmcblk0 179:0 0 59.5G 0 disk
|-mmcblk0p1 179:1 0 91.6M 0 part /boot
|-mmcblk0p2 179:2 0 2.5G 0 part /imgpart
`-mmcblk0p3 179:3 0 56.9G 0 part
nvme0n1 259:0 0 465.8G 0 disk

`-nvme0n1p1 259:1 0 465.8G 0 part /media/nvme
volumio@volumio:~$

however not to /mnt/USB and in /media/nvme Volumio is not finding the music .
How to change that Volumio is searching in /media/nvme ?

Hi Carofa, this is where I put my music on NVMe. I just create a sub folder call iMusic in order not to mix with my Music folder on NAS.

/data/INTERNAL/iMusic

Thank You. You solved the problem. Now Volumio is finding the music in INTERNAL

I add to the file config.txt
$sudo nano /boot/userconfig.txt
dtparam=pciex1

I created the directory nvme
$mkdir /data/INTERNAL/nvme

I mounted
$sudo mount /dev/nvme0n1p1 /data/INTERNAL/nvme

I find out the UUID
$sudo blkid

I add to the UUID to the file fstab
$sudo nano /etc/fstab
UUID=34A2-94A1 /data/INTERNAL/nvme exfat defaults 1 1

I reboot
$sudo reboot

I check
$lsblk

Result :slight_smile:

Add these 2 lines in the /boot/userconfig.txt and it will increase the PCIe x2 to x3 speed.

dtparam=nvme
dtparam=pciex1_gen=3

Enjoy!

[Wheaten=edit]
Correct the location.

please do not suggest to add settings in /boot/config.txt

custom settings must be added on /boot/userconfig.txt

there is also a big warning at the beginning of the config.txt file, but people keep ignoring it

Thanks Darmur, I am currently using RPi4 with a USB 3.0 (with NVMe) which doesn’t require any setting. I’ll switch to the RPi5 with a NVMe on board and see how I set it up. The speed is basically double.

1 Like