[SOLVED] Wanting to add a drive, do I use fstab or systemd?

EOC_Jason

New Member
Apr 16, 2022
4
0
1
I'm not really sure what would be the correct / preferred method so I figured I would ask here.

Proxmox currently boots to a ZFS pool, so the only thing in my /etc/fstab file is a line for /proc.

I have a SSD with ext4 partition that has existing data on it that I'm wanting to put in this machine.

I've never created a systemd mount, only via fstab. I didn't know if there would be any sort of issue with mounting / startup order of everything if I used fstab.

What should I do?

Thanks!
 
In general fstab should work fine. If you encounter problems you can always create a systemd service later to be able to define when exacltly to mount it.
 
systemd will create a systemd unit mount automagically, it parse fstab at reboot.
 
Just a follow up. Adding the drive to /etc/fstab worked fine. I didn't see any reason to run the script to convert it to systemd. Had to manually enable the fstrim timer for the SSD and all that jazz, but that's not surprising.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!