What's the correct way to mount an additional drive under an Atomic spin?

I’m reasonable familiar with /etc/fstab, but I haven’t had any luck mount my secondary drive under Kinoite (actually Bazzite but based on Kinoite).

I’m try to mount under /var/games, since I can’t mount directly on root.

Here is a snippet from /etc/fstab:

UUID=a1dfe35e-53b5-425d-b8f9-aa0943b1c49d   /var/games   btrfs   subvol=games,nofail                                                                          0 0 

lsblk -f gives me:

NAME        FSTYPE FSVER LABEL          UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0                                                                                       [SWAP]
nvme1n1                                                                                     
└─nvme1n1p1 btrfs                       a1dfe35e-53b5-425d-b8f9-aa0943b1c49d                
nvme0n1                                                                                     
├─nvme0n1p1 vfat   FAT32                1B2B-5EA8                             586.3M     2% /boot/efi
├─nvme0n1p2                                                                                 
├─nvme0n1p3 ntfs                        96CA656BCA654897                                    
├─nvme0n1p4 ext4   1.0                  a9869d2a-e3e0-402a-8d7f-71d54ba642b3  596.4M    32% /boot
├─nvme0n1p5 btrfs        bazzite_fedora 0cded990-c6eb-4231-bf1e-03524ef963b5  482.1G     5% /usr/bin/sunshine-2024.629.13903.copr
│                                                                                           /var/home
│                                                                                           /var
│                                                                                           /sysroot/ostree/deploy/default/var
│                                                                                           /usr
│                                                                                           /etc
│                                                                                           /
│                                                                                           /sysroot
└─nvme0n1p6 ntfs                        E43297F03297C5C8                                    

systemctl list-unit-files -t mount shows the mount point as generated:

var-games.mount               generated - 

I haven’t had much luck finding relevant docs on the proper way to do this. Would appreciate any suggestions or pointers in the right direction.

I performed some of the debugging steps listed here, How to add mount in /etc/fstab? and was eventually able to get it to work by using the mount point /var/mnt/games instead of /var/games.

Would love a deeper explanation of what is going on. Can you not mount directly under /var?

Hello @mysticlighthouse and welcome to :fedora: !

I have no problem mounting an Ubuntu ext4 partition that resides on a separate drive to a mount point /var/ubuntu on Fedora Silverblue.

1 Like

Interesting, maybe it was a permissions issue. I chowned /var/mnt/games to my user based one something I was reading, though it doesn’t make sense then I would have to given that I though fstab was mouting with root permissions.

Maybe try again and then check the logs?

I typically try to make my forum posts useful for folks finding it later, but in this case, I am going to move on to troubleshooting some of my other issues instead of experimenting with this solution further.

That other thread I found has some useful debugging tips. Going to mark what I did to solve the issue as a solution.

Added atomic-desktops, silverblue

There are 2 ways

udisksctl is way easier to use but normally not persistent