Issue mounting and auto loading nvme drives

Hello all. I finally decided to make the switch from Windows today. I’m not a complete Linux noob, and I am very comfortable working with the terminal and VIM. That said, I am new to Arch and Cachyos.

I went through the install and everything worked, except it didn’t allow me to format my non-root nvme drives (I use them to store games). No biggie, I’ll just do it after boot with gparted. So, that’s what I did. I wiped them and reformatted them both as btrfs with a single partition. I then opened my terminal, created directories under /media for them, added the UUIDs and mount points to my fstab, restarted systemctl, went to mount and…error for no such directory.

I’ve tried this at least 5 different ways, and nothing that I do changes the error. So now I’m on the verge of reinstalling and trying again. Does anyone have any advice?

Did you try it manually, and did it work? (ie manually mounting)?
If that worked, I’ve not had fstab fail. Usually a bad edit results in a boot error…

I tried mount -a as well as mounting straight from dolphin. Both ways it errors out and says no file or directory found. I have had no boot errors either.

would you show the fstab ?

Then that implies you didn’t do it right. Posting more information here, someone might be able to help.
Including your directory structure, /etc/fstab,lsblk output, etc.

1 Like

Sorry for the late reply. I have been away from my computer for a few days. Today, I tried a fresh install and the problem still persists. The exact error that I get is:
mount: /media/nvme: fsconfig system call failed: No such file or directory. dmesg(1) may have more information after failed mount system call.
I also get this same error for my SSD drive.

Here is the output of lsblk -f:

NAME        FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                   
└─sda1      btrfs        SSD      e2e56c0a-cbb7-485e-852a-decc537b4d9a                
sdb                                                                                   
├─sdb1      vfat   FAT32          E48A-A118                               1.8G    12% /boot
└─sdb2      btrfs                 0d64e824-cdfd-4a10-93b4-d8207f42aa6e  215.5G     6% /var/tmp
                                                                                      /var/log
                                                                                      /var/cache
                                                                                      /home
                                                                                      /root
                                                                                      /srv
                                                                                      /
sdc                                                                                   
├─sdc1                                                                                
└─sdc2      exfat  1.0   External 66CE-59E6                                           
zram0                                                                                 [SWAP]
nvme0n1                                                                               
└─nvme0n1p1 btrfs        NVME     59f39742-95a0-4e77-9e05-67d5c15e9746                

Here is my fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=E48A-A118                            /boot          vfat    defaults   0 2
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /              btrfs   subvol=/@,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /home          btrfs   subvol=/@home,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /srv           btrfs   subvol=/@srv,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=0d64e824-cdfd-4a10-93b4-d8207f42aa6e /var/log       btrfs   subvol=/@log,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

# Additional Drives
UUID=59f39742-95a0-4e77-9e05-67d5c15e9746 /media/nvme btrfs subvol=/@nvme,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=e2e56c0a-cbb7-485e-852a-decc537b4d9a /media/ssd btrfs subvol=/@ssd,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0

Before I made the fstab edits, I created the /media/nvme and /media/ssd directories, and made sure that my user was set as the owner of those directories.

So, I’m an idiot. The issue was that I had not created the btrfs subvolumes first. Removing the subvol option from the fstab entries allowed the drives to mount properly. Of course, now I am having issues with permissions, but I think I can figure that out.

I was told that the subvolumes would be good to have, but I honestly am not sure whether or not I need them. Admittedly, I also do not understand their purpose very well. Can anyone advise me on this? Again, I only use these two drives for storing games. I keep separate directories on each drive for where the game comes from (eg: steam, gog, itch.io, etc), so maybe those would make better targets for subvolumes?