Fstab advice on SSD

fstab

UUID=DF4C-3EF6                              /boot/efi                    vfat    umask=0077                                                                                  0 2 
#Internal SSD chip
UUID=2d64975e-0469-4806-9920-f8d58dcf648a   /                            ext4    noatime                                                                                     0 1 
UUID=ba7cb6b7-a319-4d4a-868f-bdca4fc94f3e   /home                        ext4    noatime                                                                                     0 2 
UUID=040e631a-349b-4735-bec8-07df04ff8342   /Videos                      ext4    noatime                                                                                     0 2 
UUID=1045fc46-4a83-4180-9150-8c997a230e99   /home/1234/Partitions/VA   btrfs   noatime,space_cache,autodefrag                                                              0 2 
UUID=a52f518e-0fe2-47a2-b313-dfb938dc1c8e   /home/1234/Partitions/VB   ext4    noatime                                                                                     0 2 
UUID=e9c78e78-522b-4a18-ad6e-1192c600cbf9   /home/1234/Partitions/VC   ext4    noatime                                                                                     0 2 
UUID=0d7b716a-dd90-497b-9976-8118372c6cad   /home/1234/Partitions/VD   ext4    noatime                                                                                     0 2 
UUID=67b66f14-cdb8-4c12-94eb-b0eb14a2bb13   /home/1234/Partitions/VE   ext4    noatime                                                                                     0 2 
UUID=75e8521b-f184-403c-819e-6a4916e0007d   /home/1234/Partitions/VF   ext4    noatime                                                                                     0 2 
UUID=637f7c1e-7231-4616-aea4-338d74a9b637   /home/1234/Partitions/VG   btrfs   noatime,space_cache,autodefrag                                                              0 2 
#External removeable SSD
UUID=132b10ff-f475-42bb-ad35-b4f362590bcd   /home/1234/Partitions/EVB   btrfs   noafail,noatime,x-systemd.automount,x-systemd.x-systemd.idle-timeout=1min,space_cache,noautodefrag,ssd,ssd_spread,discard,norecovery 0 0

findmnt

findmnt
TARGET                         SOURCE         FSTYPE      OPTIONS
**/                              /dev/nvme1n1p2 ext4        rw,noatime**
β”œβ”€/proc                        proc           proc        rw,nosuid,nodev,noexec,relatime
β”‚ └─/proc/sys/fs/binfmt_misc   systemd-1      autofs      rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pip
β”‚   └─/proc/sys/fs/binfmt_misc binfmt_misc    binfmt_misc rw,nosuid,nodev,noexec,relatime
β”œβ”€/sys                         sys            sysfs       rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/firmware/efi/efivars  efivarfs       efivarfs    rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/security       securityfs     securityfs  rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/fs/cgroup             cgroup2        cgroup2     rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
β”‚ β”œβ”€/sys/fs/pstore             pstore         pstore      rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/fs/bpf                bpf            bpf         rw,nosuid,nodev,noexec,relatime,mode=700
β”‚ β”œβ”€/sys/kernel/debug          debugfs        debugfs     rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/tracing        tracefs        tracefs     rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/config         configfs       configfs    rw,nosuid,nodev,noexec,relatime
β”‚ └─/sys/fs/fuse/connections   fusectl        fusectl     rw,nosuid,nodev,noexec,relatime
β”œβ”€/dev                         dev            devtmpfs    rw,nosuid,relatime,size=8047340k,nr_inodes=2011835,mode=755,inode64
β”‚ β”œβ”€/dev/shm                   tmpfs          tmpfs       rw,nosuid,nodev,inode64
β”‚ β”œβ”€/dev/pts                   devpts         devpts      rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
β”‚ β”œβ”€/dev/mqueue                mqueue         mqueue      rw,nosuid,nodev,noexec,relatime
β”‚ └─/dev/hugepages             hugetlbfs      hugetlbfs   rw,relatime,pagesize=2M
β”œβ”€/run                         run            tmpfs       rw,nosuid,nodev,relatime,mode=755,inode64
β”‚ β”œβ”€/run/credentials/systemd-sysusers.service
β”‚ β”‚                            ramfs          ramfs       ro,nosuid,nodev,noexec,relatime,mode=700
β”‚ └─/run/user/1000             tmpfs          tmpfs       rw,nosuid,nodev,relatime,size=1621712k,nr_inodes=405428,mode=700,ui
β”‚   β”œβ”€/run/user/1000/doc       portal         fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
β”‚   └─/run/user/1000/gvfs      gvfsd-fuse     fuse.gvfsd- rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
β”œβ”€/tmp                         tmpfs          tmpfs       rw,nosuid,nodev,size=8108572k,nr_inodes=1048576,inode64
β”œβ”€/Videos                      /dev/sda2      ext4        rw,noatime
β”œβ”€/home                        /dev/sda1      ext4        rw,noatime
β”‚ β”œβ”€/home/bryans/Partitions/EVB /dev/sdb1      btrfs       rw,relatime,space_cache=v2,subvolid=5,subvol=/
β”‚ β”œβ”€/home/bryans/Partitions/EVB /dev/sdb1      btrfs       rw,relatime,space_cache=v2,subvolid=5,subvol=/
β”‚ β”œβ”€/home/bryans/Partitions/EVB /dev/sdb1      btrfs       rw,relatime,space_cache=v2,subvolid=5,subvol=/
/                               /dev/nvme1n1p2 ext4        rw,noatime
β”œβ”€/proc                         proc           proc        rw,nosuid,nodev,noexec,relatime
β”‚ └─/proc/sys/fs/binfmt_misc    systemd-1      autofs      rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pi
β”‚   └─/proc/sys/fs/binfmt_misc  binfmt_misc    binfmt_misc rw,nosuid,nodev,noexec,relatime
β”œβ”€/sys                          sys            sysfs       rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/firmware/efi/efivars   efivarfs       efivarfs    rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/security        securityfs     securityfs  rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/fs/cgroup              cgroup2        cgroup2     rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
β”‚ β”œβ”€/sys/fs/pstore              pstore         pstore      rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/fs/bpf                 bpf            bpf         rw,nosuid,nodev,noexec,relatime,mode=700
β”‚ β”œβ”€/sys/kernel/debug           debugfs        debugfs     rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/tracing         tracefs        tracefs     rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/config          configfs       configfs    rw,nosuid,nodev,noexec,relatime
β”‚ └─/sys/fs/fuse/connections    fusectl        fusectl     rw,nosuid,nodev,noexec,relatime
β”œβ”€/dev                          dev            devtmpfs    rw,nosuid,relatime,size=8047340k,nr_inodes=2011835,mode=755,inode6
β”‚ β”œβ”€/dev/shm                    tmpfs          tmpfs       rw,nosuid,nodev,inode64
β”‚ β”œβ”€/dev/pts                    devpts         devpts      rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
β”‚ β”œβ”€/dev/hugepages              hugetlbfs      hugetlbfs   rw,relatime,pagesize=2M
β”‚ └─/dev/mqueue                 mqueue         mqueue      rw,nosuid,nodev,noexec,relatime
β”œβ”€/run                          run            tmpfs       rw,nosuid,nodev,relatime,mode=755,inode64
β”‚ └─/run/user/1000              tmpfs          tmpfs       rw,nosuid,nodev,relatime,size=1621712k,nr_inodes=405428,mode=700,u
β”‚   β”œβ”€/run/user/1000/doc        portal         fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
β”‚   └─/run/user/1000/gvfs       gvfsd-fuse     fuse.gvfsd- rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
β”œβ”€/tmp                          tmpfs          tmpfs       rw,nosuid,nodev,size=8108572k,nr_inodes=1048576,inode64
β”œβ”€/boot/efi                     /dev/nvme1n1p1 vfat        rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,sho
β”œβ”€/home                         /dev/sda1      ext4        rw,noatime
β”‚ β”œβ”€/home/bryans/Partitions/EVB /dev/sdb1      btrfs       rw,relatime,space_cache=v2,subvolid=5,subvol=/
/                               /dev/nvme1n1p2 ext4        rw,noatime
β”œβ”€/proc                         proc           proc        rw,nosuid,nodev,noexec,relatime
β”‚ └─/proc/sys/fs/binfmt_misc    systemd-1      autofs      rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pi
β”‚   └─/proc/sys/fs/binfmt_misc  binfmt_misc    binfmt_misc rw,nosuid,nodev,noexec,relatime
β”œβ”€/sys                          sys            sysfs       rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/firmware/efi/efivars   efivarfs       efivarfs    rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/security        securityfs     securityfs  rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/fs/cgroup              cgroup2        cgroup2     rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
β”‚ β”œβ”€/sys/fs/pstore              pstore         pstore      rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/fs/bpf                 bpf            bpf         rw,nosuid,nodev,noexec,relatime,mode=700
β”‚ β”œβ”€/sys/kernel/debug           debugfs        debugfs     rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/tracing         tracefs        tracefs     rw,nosuid,nodev,noexec,relatime
β”‚ β”œβ”€/sys/kernel/config          configfs       configfs    rw,nosuid,nodev,noexec,relatime
β”‚ └─/sys/fs/fuse/connections    fusectl        fusectl     rw,nosuid,nodev,noexec,relatime
β”œβ”€/dev                          dev            devtmpfs    rw,nosuid,relatime,size=8047340k,nr_inodes=2011835,mode=755,inode6
β”‚ β”œβ”€/dev/shm                    tmpfs          tmpfs       rw,nosuid,nodev,inode64
β”‚ β”œβ”€/dev/pts                    devpts         devpts      rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
β”‚ β”œβ”€/dev/hugepages              hugetlbfs      hugetlbfs   rw,relatime,pagesize=2M
β”‚ └─/dev/mqueue                 mqueue         mqueue      rw,nosuid,nodev,noexec,relatime
β”œβ”€/run                          run            tmpfs       rw,nosuid,nodev,relatime,mode=755,inode64
β”‚ └─/run/user/1000              tmpfs          tmpfs       rw,nosuid,nodev,relatime,size=1621712k,nr_inodes=405428,mode=700,u
β”‚   β”œβ”€/run/user/1000/doc        portal         fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
β”‚   └─/run/user/1000/gvfs       gvfsd-fuse     fuse.gvfsd- rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
β”œβ”€/tmp                          tmpfs          tmpfs       rw,nosuid,nodev,size=8108572k,nr_inodes=1048576,inode64
β”œβ”€/boot/efi                     /dev/nvme1n1p1 vfat        rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,sho
β”œβ”€/home                         /dev/sda1      ext4        rw,noatime
β”‚ β”œβ”€/home/bryans/Partitions/EVB /dev/sdb1      btrfs       rw,relatime,space_cache=v2,subvolid=5,subvol=/
β”‚ β”œβ”€/home/1234/Partitions/EVB /dev/sdb1      btrfs       rw,relatime,space_cache=v2,subvolid=5,subvol=/
β”‚ β”œβ”€/home/1234/Partitions/VB /dev/sda4      ext4        rw,noatime
β”‚ β”œβ”€/home/1234/Partitions/VD /dev/sda6      ext4        rw,noatime
β”‚ β”œβ”€/home/1234/Partitions/VC /dev/sda5      ext4        rw,noatime
β”‚ β”œβ”€/home/1234/Partitions/VE /dev/sda7      ext4        rw,noatime
β”‚ β”œβ”€/home/1234/Partitions/VF /dev/sda9      ext4        rw,noatime
β”‚ β”œβ”€/home/1234/Partitions/VA /dev/sda3      btrfs       rw,noatime,space_cache,autodefrag,subvolid=5,subvol=/
β”‚ └─/home/1234/Partitions/VG /dev/sda8      btrfs       rw,noatime,space_cache,autodefrag,subvolid=5,subvol=/
└─/boot/efi                    /dev/nvme1n1p1 vfat        rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shor

UUID=2d64975e-0469-4806-9920-f8d58dcf648a / ext4 noatime 0 1

UUID=132b10ff-f475-42bb-ad35-b4f362590bcd /home/1234/Partitions/EVB btrfs noafail,noatime,x-systemd.automount,x-systemd.x-systemd.idle-timeout=1min,space_cache,noautodefrag,ssd,ssd_spread,discard,norecovery 0 0

/home/1234/Partitions/EVB mounts only manually. This tells me that I have done something stupid in my fstab setup. Objective is to save the SSD drive as long as I can and to be able to unmount and mount when I want…
The / partition is also an SSD and I would also love to save it for as long as possible. Is the noatime option all I need?

Yes. although you may get a bit of a performance gain by adding the ssd option. Some filesystems like btrfs can automatically detect whether they’re on an SSD or an HDD, but I do not know whether ext4 detects this automatically.

That’s not a valid mount option. It should read nofail . Other than that, if you want it automounted at boot, you should also add auto.

head hitting wall

Thanks for the fast response.
Tried

UUID=132b10ff-f475-42bb-ad35-b4f362590bcd   /home/1234/Partitions/EVB   btrfs   nofail,auto,noatime,x-systemd.automount,x-systemd.x-systemd.idle-timeout=1min,space_cache,noautodefrag,ssd,ssd_spread,discard,norecovery 0 0

That also didn’t work. I think I understand what most of those commands do, but have no idea what the interactions are like. Then of cource could my order be a problem.

It looks like you have a long long list. The entry for my ssd is short
ext4 noatime,defaults 0 0.
You might want to simplify, to limit what could be wrong, and then add things one at a time if you think you need them.

2 Likes