Setting up an nvme as rom storage...
-
Hello friends. I was hoping I can get some advice setting up my nvme as kind of a storage drive for roms and movies for my RetroPie 4.8 installation, which is running off of the emmc of my compute module 4 and Waveshare CM4 carrier board (https://www.waveshare.com/CM4-IO-BASE-A.htm). Just to make it clear as I mentioned RetroPie is running off the emmc but I would like to store the roms on the attached nvme m.2 drive.
What I've done to the drive so far :
1.Created a primary partition using
sudo fdisk /dev/nvme0n1
2.Created a file system with
sudo mkfs -t ext4 /dev/nvme0n1p1
3.Created a mount point and mounted the partition using
sudo mount /dev/nvme0n1p1 /media/nvme
4.To get it to mount every time I added a line to /etc/fstab:
UUID=<nvme UUID> /media/nvme ext4 defaults 0 0
, using the UUID of my drive, which I found by using the command sudo blkid.I would really appreciate any help with moving and setting up the appropriate folders to the nvme drive and anything else that might have to be done to make this possible?
-
Copy everything under
$HOME/RetroPie
to the new drive's partition and then mount the partition over$HOME/RetroPie
instead of/media/nvme
.Make sure you add the
uid=pi,gid=pi
mount
options (instead of thedefaults
) to/etc/fstab
. -
@mitu Thank you very much for helpful reply. I was wondering if it's possible to use symbolic links instead. Does anyone know?
-
@t01mkr said in Setting up an nvme as rom storage...:
. I was wondering if it's possible to use symbolic links instead. Does anyone know?
Yes, but why ? You're already mounting your disc, why not use the right folder for it in the first place.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.