I have Xubuntu 16.04 installed with VirtualBox on a MacBook Pro host. I set the hard disk type to be SSD on VirtualBox. But recently I found TRIM doesn't seem to work. For instance, the following command returns nothing:
For the following command, I get an error:
With fdisk:
Would anyone shed some light please?
Code:
$ sudo hdparm -I /dev/sda | grep TRIM
Code:
$ sudo fstrim -v /
fstrim: /: the discard operation is not supported
Code:
$ sudo fdisk -l
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfffe1e7c
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 41943039 41940992 20G 83 Linux