TabletHater wrote:Bug 4736.
https://bugs.mageia.org/post_bug.cgi
louielouie wrote:Don't forget the trim option for SSD's by using 'discard' in the options list.
Mount Flags
There are several key mount flags to use in one's /etc/fstab entries for SSD partitions.
[...]
discard - The discard flag will enable the benefits of the TRIM command so long as one is using kernel version >=2.6.33. It does not work with ext3; using the discard flag for an ext3 root partition will result in it being mounted read-only.
[...]
The factual accuracy of this article or section is disputed.
Please help improve the article and verify/correct/remove disputed content. (Discuss)
Warning: It is critically important that users switch the controller driving the SSD to AHCI mode (not IDE mode) to ensure that the kernel is able to use the TRIM command.
Warning: Users need to be certain that kernel version 2.6.33 or above is being used AND that their SSD supports TRIM before attempting to mount a partition with the discard flag. Data loss can occur otherwise!
Warning: Using an OCZ Vertex II SSD (supports TRIM) and kernel 2.6.37.4 on Arch, some people experienced trouble with the discard option: all changes made to the filesystem would disappear after a reboot! According to this ( http://www.mjmwired.net/kernel/Document ... t4.txt#356) discard is disabled by default because it not stable enough.
Note: For an alternative to the discard flag, see this discussion http://opensuse.14.n6.nabble.com/SSD-de ... 13048.html
[root@localhost ~]# seq 1 1000 > testfile
[root@localhost ~]# hdparm --fibmap testfile
testfile:
filesystem blocksize 4096, begins at LBA 2048; assuming 512 byte sectors.
byte_offset begin_LBA end_LBA sectors
0 11159520 11159527 8
[root@localhost ~]# sync
[root@localhost ~]# hdparm --read-sector 11159520 /dev/sda
/dev/sda:
reading sector 11159520: succeeded
0a31 0a32 0a33 0a34 0a35 0a36 0a37 0a38
0a39 3031 310a 0a31 3231 310a 0a33 3431
310a 0a35 3631 310a 0a37 3831 310a 0a39
3032 320a 0a31 3232 320a 0a33 3432 320a
....................................................
[root@localhost ~]# rm testfile
rm: remove regular file `testfile'? y
[root@localhost ~]# sync
[root@localhost ~]# hdparm --read-sector 11159520 /dev/sda
/dev/sda:
reading sector 11159520: succeeded
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
....................................................
[root@localhost ~]#
[burak@localhost ~]$ su
Password:
[root@localhost burak]# seq 1 1000 > testfile
[root@localhost burak]# hdparm --fibmap testfile
testfile:
filesystem blocksize 4096, begins at LBA 2048; assuming 512 byte sectors.
byte_offset begin_LBA end_LBA sectors
0 - - -
[root@localhost burak]#
dubigrasu wrote:Enabling Trim is essential for prolonging SSD´s lifespan. However, you must check if is properly working. You can use this method (second page):
http://techgage.com/article/enabling_an ... er_linux/1
Users browsing this forum: No registered users and 1 guest