PDA

View Full Version : [SOLVED] 13.10 testing Trim on Intel SSD



xigen
April 27th, 2014, 01:52 AM
I tried to install Trim as a chron job ... unfortunately, when I attempt to test to see if trim is working... $sudo fstrim -v / the terminal does not give any output.

Thoughts?

meow@meow:~$ sudo hdparm -I /dev/sda | grep "TRIM supported"
[sudo] password for meow:
* Data Set Management TRIM supported (limit 1 block)
meow@meow:~$ sudo fdisk -l

Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 468862128 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
Disk identifier: 0x000826ff

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 468860927 234179585 5 Extended
/dev/sda5 501760 468860927 234179584 8e Linux LVM

Disk /dev/mapper/ubuntu--vg-root: 231.2 GB, 231244562432 bytes
255 heads, 63 sectors/track, 28113 cylinders, total 451649536 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
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu--vg-swap_1: 8552 MB, 8552185856 bytes
255 heads, 63 sectors/track, 1039 cylinders, total 16703488 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
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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
Disk identifier: 0x00091905

Device Boot Start End Blocks Id System
/dev/sdb1 4096 1953523711 976759808 7 HPFS/NTFS/exFAT

Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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
Disk identifier: 0x0002a926

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 484206591 242102272 83 Linux
/dev/sdc2 484208638 488396799 2094081 5 Extended
/dev/sdc5 484208640 488396799 2094080 82 Linux swap / Solaris
meow@meow:~$ gksu gedit /etc/cron.daily/trim
meow@meow:~$ sudo fstrim -v /
meow@meow:~$

xigen
April 27th, 2014, 06:01 AM
meow@meow:~$ sudo fstrim -v /
[sudo] password for meow:
/: 9075040256 bytes were trimmed
meow@meow:~$

I tried it again based on this article:
http://www.howtogeek.com/176978/ubuntu-doesnt-trim-ssds-by-default-why-not-and-how-to-enable-it-yourself/

Trim took a minute or two to work.

I thought it would take less time.

Solved.