I don’t know how you have the VM configured as it pertains to the outside world.
As far as Linux (in the VM) is concerned –
- The kernel boots
- It finds all the devices
- It mounts all filesystems listed in /etc/fstab <---- KEY POINT HERE
- It starts launching the remaining services <— Of which Plex is one.
How it all works –
- Linux uses
systemdto sequence everything. - File system mounts are sequenced first
- Other system services are next
- After all those system-global services are started, it then launches user-installed
- Plex is one of those user-installed services.
This means you can always guarantee the SSD is mounted before Plex starts
(I assume the VM creates the passthrough automatically as well before it loads the kernel)
In /etc/fstab, you’ll want a standard “auto” mount statement.
Example,
/dev/sdb1 /home/plex ext4 defaults,auto,rw 0 2
This assumes:
- /dev/sdb1 is where the device is mapped into the VM
- You’re mounting it on
/home/plex - it’s been formatted with ext4
Feel free to adjust here as you see fit to match your actual installation.
I have a lot of How-To’s here. Feel free to avail yourself of them