Been using Garuda for a couple of months now, Cinnamon most recently. I originally setup the fstrim.timer to automatically trim weekly. But when I checked the logs, I noticed it only trimmed my EFI partition.
I manually ran sudo fstrim -av and it did the same thing, outputting just a single line for EFI and ignoring my LUKS/BTRFS volume/subvolumes.
I know my drive supports trim, as I always used it before. So I assume there is something I don't understand about interactions between LUKS, BTRFS and trim. But I tried Googling it and it seems it is supported and should work. So not really sure what's up.
Here is my fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=1217-F606 /boot/efi vfat defaults,noatime 0 2
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f / btrfs subvol=/@,defaults,noatime,compress=zstd 0 0
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f /home btrfs subvol=/@home,defaults,noatime,compress=zstd 0 0
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f /root btrfs subvol=/@root,defaults,noatime,compress=zstd 0 0
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f /srv btrfs subvol=/@srv,defaults,noatime,compress=zstd 0 0
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f /var/cache btrfs subvol=/@cache,defaults,noatime,compress=zstd 0 0
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f /var/log btrfs subvol=/@log,defaults,noatime,compress=zstd 0 0
/dev/mapper/luks-33f83e27-a041-4247-8546-0ae6caf4106f /var/tmp btrfs subvol=/@tmp,defaults,noatime,compress=zstd 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
And system info:
System:
Kernel: 6.4.3-zen1-2-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=2cd206d5-5974-450c-b126-23cec2e9e234 rw rootflags=subvol=@
quiet rd.luks.uuid=33f83e27-a041-4247-8546-0ae6caf4106f quiet
rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
Desktop: Cinnamon v: 5.8.4 tk: GTK v: 3.24.38 wm: muffin vt: 7 dm: LightDM
v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: ROG Zephyrus S17 GX703HS_GX703HS
v: 1.0 serial: <superuser required>
Mobo: ASUSTeK model: GX703HS v: 1.0 serial: <superuser required>
UEFI: American Megatrends LLC. v: GX703HS.311 date: 09/28/2021
Battery:
ID-1: BAT0 charge: 57.5 Wh (72.5%) condition: 79.3/90.0 Wh (88.1%)
volts: 15.9 min: 15.9 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
status: not charging cycles: 90
ID-2: hidpp_battery_0 charge: 96% condition: N/A volts: 4.1 min: N/A
model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
serial: <filter> status: discharging
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1
microcode: 0x44
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 1859 high: 3330 min/max: 800/4600 scaling:
driver: intel_pstate governor: powersave cores: 1: 3094 2: 2300 3: 1259
4: 2300 5: 1765 6: 3330 7: 1806 8: 2300 9: 2379 10: 800 11: 1193 12: 800
13: 2311 14: 939 15: 2300 16: 872 bogomips: 73728
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: ASUSTeK driver: i915
v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
active: none off: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB]
vendor: ASUSTeK driver: nvidia v: 535.54.03 alternate: nouveau,nvidia_drm
non-free: 535.xx+ status: current (as of 2023-07) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 2 speed: 5 GT/s lanes: 8
link-max: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none off: DP-3
empty: none bus-ID: 01:00.0 chip-ID: 10de:249c class-ID: 0300
Device-3: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2:2 chip-ID: 13d3:5458
class-ID: fe01 serial: <filter>
Device-4: Logitech Logitech Webcam C925e driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-8.1:19
chip-ID: 046d:085b class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting,nvidia
dri: iris gpu: i915,nvidia,nvidia-nvswitch display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
s-diag: 777mm (30.58")
Monitor-1: DP-3 mapped: DP-0 note: disabled pos: primary
model: Dell S3222DGM serial: <filter> built: 2021 res: 2560x1440 dpi: 93
gamma: 1.2 size: 697x392mm (27.44x15.43") diag: 806mm (31.7") ratio: 16:9
modes: max: 2560x1440 min: 640x480
Monitor-2: eDP-1 mapped: eDP-1-1 note: disabled model: AU Optronics 0xde95
built: 2020 res: 2560x1440 dpi: 256 gamma: 1.2 size: 381x214mm (15x8.43")
diag: 437mm (17.2") ratio: 16:9 modes: 3840x2160
API: OpenGL v: 4.6.0 NVIDIA 535.54.03 renderer: NVIDIA GeForce RTX 3080
Laptop GPU/PCIe/SSE2 direct-render: Yes
Audio:
Device-1: Intel Tiger Lake-H HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
chip-ID: 8086:43c8 class-ID: 0403
Device-2: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:228b class-ID: 0403
Device-3: Logitech Logitech Webcam C925e driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-8.1:19
chip-ID: 046d:085b class-ID: 0102 serial: <filter>
Device-4: XMOS EDIFIER S3000 Pro driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-8.3:16
chip-ID: 20b1:30a0 class-ID: 0300
Device-5: XMOS iFi (by AMR) HD USB Audio
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
lanes: 1 mode: 2.0 bus-ID: 3-8.4:17 chip-ID: 20b1:3008 class-ID: 0300
serial: <filter>
API: ALSA v: k6.4.3-zen1-2-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 0.3.74 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 3000 bus-ID: 2e:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: eno2 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
lanes: 1 bus-ID: 2f:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlo1 state: down mac: <filter>
IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-14:11
chip-ID: 13d3:3563 class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 1.84 TiB used: 415.6 GiB (22.0%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: MZVL21T0HCLR-00B00 size: 953.87 GiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: GXA7301Q temp: 47.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:6 vendor: Samsung model: SSD 980 PRO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 5B2QGXA7 temp: 49.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
used: 415.6 GiB (44.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-33f83e27-a041-4247-8546-0ae6caf4106f
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 724 KiB (0.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:7
ID-3: /home raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
used: 415.6 GiB (44.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-33f83e27-a041-4247-8546-0ae6caf4106f
ID-4: /var/log raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
used: 415.6 GiB (44.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-33f83e27-a041-4247-8546-0ae6caf4106f
ID-5: /var/tmp raw-size: 931.21 GiB size: 931.21 GiB (100.00%)
used: 415.6 GiB (44.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-33f83e27-a041-4247-8546-0ae6caf4106f
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.03 GiB used: 122 MiB (0.4%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 59.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 406 Uptime: 13h 50m wakeups: 49 Memory: total: 32 GiB note: est.
available: 31.03 GiB used: 15.32 GiB (49.4%) Init: systemd v: 253
default: graphical tool: systemctl Compilers: gcc: 13.1.1 Packages:
pm: pacman pkgs: 1518 libs: 479 tools: octopi,paru Shell: fish v: 3.6.1
default: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.28
Garuda (2.6.16-1):
System install date: 2023-07-02
Last full system update: 2023-07-17
Is partially upgraded: No
Relevant software: snapper NetworkManager dracut nvidia-dkms
Windows dual boot: Probably (Run as root to verify)
Failed units: