Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[all variants] help getting TRIM to work on ssd

$
0
0
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:

Code:

$ sudo hdparm -I /dev/sda | grep TRIM
For the following command, I get an error:

Code:

$ sudo fstrim -v /
fstrim: /: the discard operation is not supported

With fdisk:

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

Would anyone shed some light please?

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>