SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently replaced my laptop HDD with an SSD and installed Slackware64 14 using README_CRYPT.TXT to setup luks+lvm. I'm trying to enable trim support, I've followed this guide http://blog.neutrino.es/2013/howto-p...m-and-dmcrypt/ but when I do a dmsetup table --showkeys I don't see discards being allowed. Have I missed a step?
It looks like TRIM needs /etc/crypttab to activate on dm_crypt level. That's problematic I think, because if you used the directions from the section in README_CRYPT.TXT called "Combining LUKS and LVM", then "/etc/crypttab" is not used....
Not sure where to go from here, I don't have any SSD.
Hope this helped some.
EDIT: Sorry, guys, forgot to mention. I had to hack init script in /boot/initrd-tree, in order t make it work. Probably it's time to ask Eric to add this option to his great mkinitrd package.
EDIT2: it looks like it is better to leave everything as is (without working trim). Then periodically - once a week or monthly to boot from external drive, manually mount encrypted partitions with --allow-discards and run fstrim manually.
pengStudent,
In the link you posted, username Exon (on that page's comments section) posted links to two different pages which might help. Thanks for making your post I was not aware of this issue, and was already leery of SSDs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.