I have a compact SoC (System On a Chip) Dell laptop with the DF4032 SanDisk eMMC 32 GB storage device soldered to its only PCB, and there is no information concerning TRIM support for it anywhere. The file fstrim is present at /etc/cron.weekly/
#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true
Running fstrim manually returns "30 GB ('N' bytes) trimmed" (apparently working, right?)
sudo hdparm -I /dev/mmcblk0 | grep "TRIM supported"
BUT the above command returns
HDIO_DRIVE_CMD(identify) failed: Invalid argument
So how else can I check if Ubuntu is performing TRIM out-of-the-box for this eMMC or if it even supports it? Would it be safe to include --no-model-check on the fstrim file? I would need to specify the /dev/mmcblk0 device so it would not mess with the SDHC card inserted. TRIM can be deadly for some not so popular devices.
/dev/mmcblk0? The message you see is printed to standard error. Since standard output is being filtered by grep and no lines match your pattern, all you see is the error. What is it that is confusing you? – terdon Jun 29 '16 at 15:18mmcblk0and how did you decide that was the device it uses? Besides that: emmc is equal to a ssd? trim is for ssd's. – Rinzwind Jun 29 '16 at 15:18