Should I set discard into my fstab?

Hello together,

some days ago I installed manjaro kde on my new laptop. All works fine, but I have one Question:

Should I put the discard - option into my fstab?

Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: 86B1FD00-4D35-4A6C-9CB2-1AF0D3BB7825

Gerät             Anfang      Ende  Sektoren  Größe Typ
/dev/nvme0n1p1      2048   1050623   1048576   512M EFI-System
/dev/nvme0n1p2   1050624 471625727 470575104 224,4G Linux-Dateisystem
/dev/nvme0n1p3 471625728 488397134  16771407     8G Linux Swap

UUID=A082-2FA5                            /boot/efi      vfat    umask=0077 0 2
UUID=bd414b00-491b-4e59-8b15-979bb27e746c /              ext4    defaults,noatime 0 1
UUID=8ad2f757-948e-4040-be3a-11e385ab1f21 swap           swap    defaults,noatime 0 0

System:    Kernel: 5.10.7-3-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.20.5 Distro: Manjaro Linux 
Machine:   Type: Laptop System: TUXEDO product: TUXEDO Pulse 15 Gen1 v: Standard serial: <filter> 
           Mobo: TUXEDO model: PULSE1501 v: Standard serial: <filter> UEFI: American Megatrends v: N.1.07.A02 date: 12/08/2020 
Battery:   ID-1: BAT0 charge: 89.8 Wh condition: 91.6/91.6 Wh (100%) 
CPU:       Info: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP L2 cache: 4 MiB 
           Speed: 1397 MHz min/max: 1400/2900 MHz Core speeds (MHz): 1: 1397 2: 1397 3: 1397 4: 1396 5: 1398 6: 1397 7: 1397 
           8: 1397 9: 1397 10: 1396 11: 1398 12: 1396 13: 1397 14: 1397 15: 1397 16: 1396 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir driver: amdgpu v: kernel 
           Device-2: Chicony HD Webcam type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.10 driver: loaded: amdgpu,ati unloaded: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.7-3-MANJARO LLVM 11.0.1) v: 4.6 Mesa 20.3.3 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k5.10.7-3-MANJARO 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi 
           IF: wlp1s0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: eno1 state: down mac: <filter> 
Drives:    Local Storage: total: 232.89 GiB used: 24.08 GiB (10.3%) 
           ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M8250G size: 232.89 GiB 
Partition: ID-1: / size: 219.86 GiB used: 24.08 GiB (11.0%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: /boot/efi size: 511 MiB used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 35.6 C mobo: N/A gpu: amdgpu temp: 35.0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 322 Uptime: 38m Memory: 7.26 GiB used: 1.61 GiB (22.1%) Shell: Bash inxi: 3.2.02 

Thank you

No. See Solid state drive/NVMe - ArchWiki

Enable the fstrim.timer and it will discard unused blocks once a week:

systemctl enable --now fstrim.timer

OK, I did it.

Thank you very much :smiley:


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.