persist 2nd disk of intel nuc in /etc/fstab

hi,
how can I permanently mount an additional internal disk? on a linux system, i would add an entry in /etc/fstab, but the filesystem on that the file lies on, is only RO

I use an Intel NUC with an NVME as OS Disk and a SATA SSD as Storage Disk. I can create an filesystem on the SSD (/dev/sda) and mount it manually, but I need a way to persist the mount.

the data SSD should be mounted within /var/lib/docker/volumes, so that all named-volumes use that disk. So I need a way, that the disk is mounted before the docker daemon.

regards,
christian

Hello Christian, thank you for using the balena forums.

i’m checking your question with the engineers, having said that, is it possible to know why do you use two different disks?

Let’s stay connected

Hi mpous,
the main idea was to separate OS and container data to avoid a full disk scenario.
regards
Christian

Hello Christian, This is not currently possible, but has come up before and may be implemented in a future release.

Hi,
ok, thx for the Info.
last question - would it be a good solution to edit the fstab file in the image? I’m wondering if it would be kept after an OS Update?

regards
Christian

Hi Christian, The OS filesystem should not be user modified (and in this case the fstab file would indeed be overwritten), so that’s not a solution unfortunately. I have created a github issue for the 2nd disc support request, so that you can keep track of progress on this https://github.com/balena-os/meta-balena/issues/2046 . Thank you

ok, thank you

Hi @mpous
we’re running right now into the same issue. We want to use the internal disk of our Intel NUC for BalenaOS and the containers and a secondary disk (SATA) mounted permanently to use as data disk for our containers.
We could not add the changes to the /etc/fstab (so we’re stuck in the same position as @gigi696 ).
I have seen the open GitHub issue Add support for data partion residing on second drive · Issue #2046 · balena-os/meta-balena · GitHub but there is no progress visible. Is this still on your roadmap or are there any other options?

Thanks
Fritz