I am trying to use the fstrim command on my machine. The configuration is as follows :
ubuntu@ip-172-16-10-56:~/test$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.10 Release: 12.10 Codename: quantal
And I have created the fstrim in the /etc/cron.daily using the following commands:
sudo root vi /etc/cron.daily/fstrim
And fstrim file contains :
#! /bin/sh # By default we assume only / is on an SSD. # You can add more SSD mount points, separated by spaces. # Make sure all mount points are within the quotes. For example: # SSD_MOUNT_POINTS='/ /boot /home /media/my_other_ssd' SSD_MOUNT_POINTS='/mnt' for mount_point in $SSD_MOUNT_POINTS do fstrim $mount_point done
and then saved it and tried to run it using the command:
ubuntu@ip-172-16-10-56:/etc/cron.daily$ sudo /etc/cron.daily/fstrim fstrim: /mnt: FITRIM ioctl failed: Operation not supported
I get that error everytime. I am not sure what is it that I am doing wrong.
I am following the instructions mentioned in How to enable TRIM?
Any help will be greatly appreciated.