RAH-66
Senior Member
admin@RT-AX88U:/tmp/home/root# hdparm -I /dev/sda | grep TRIM
* Data Set Management TRIM supported (limit 8 blocks)
* Deterministic read ZEROs after TRIM
* Data Set Management TRIM supported (limit 8 blocks)
* Deterministic read ZEROs after TRIM
May 5 10:05:17 kernel: usbcore: registered new interface driver usb-storage
May 5 10:05:17 kernel: scsi host0: uas
May 5 10:05:17 kernel: scsi 0:0:0:0: Direct-Access CT240BX5 00SSD1 4101 PQ: 0 ANSI: 6
May 5 10:05:17 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] 4096-byte physical blocks
May 5 10:05:17 kernel: usbcore: registered new interface driver uas
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] Write Protect is off
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 5 10:05:17 kernel: sda: sda1 sda2
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
May 5 10:05:17 kernel: scsi host0: uas
May 5 10:05:17 kernel: scsi 0:0:0:0: Direct-Access CT240BX5 00SSD1 4101 PQ: 0 ANSI: 6
May 5 10:05:17 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] 4096-byte physical blocks
May 5 10:05:17 kernel: usbcore: registered new interface driver uas
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] Write Protect is off
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
May 5 10:05:17 kernel: sda: sda1 sda2
May 5 10:05:17 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Code:
admin@RT-AX88U:/tmp/home/root# mount | grep sda
/dev/sda1 on /tmp/mnt/opt type ext4 (rw,nodev,relatime,data=ordered)
/dev/sda2 on /tmp/mnt/TDDOWNLOAD type ext4 (rw,nodev,relatime,data=ordered)
Created /jiffs/config/fstab
Code:
/dev/sda1 /tmp/mnt/opt ext4 rw,nodev,relatime,discard,data=ordered 0 0
/dev/sda2 /tmp/mnt/TDDOWNLOAD ext4 rw,nodev,relatime,discard,data=ordered 0 0
Code:
#!/bin/sh
mkdir -p /tmp/mnt/opt
mkdir -p /tmp/mnt/TDDOWNLOAD
After reboot
admin@RT-AX88U:/tmp/home/root# mount | grep sda
/dev/sda1 on /tmp/mnt/opt type ext4 (rw,nodev,relatime,discard,data=ordered)
/dev/sda2 on /tmp/mnt/TDDOWNLOAD type ext4 (rw,nodev,relatime,data=ordered)
Code:
admin@RT-AX88U:/tmp/home/root# lsblk --discard | grep sd
sda 0 0B 0B 0
├─sda1 0 0B 0B 0
└─sda2 0 0B 0B 0
The first partition is mounted with the disсard option, while the second is not. Is it generally possible to run a Trim on MerlinWRT?