Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th June 2012, 06:55 PM
greno Offline
Registered User
 
Join Date: Oct 2005
Location: U.S.A.
Posts: 262
linuxchrome
Redux: F17 and Discard (TRIM) support on LUKS/dm-crypt devices

Refer to this archived thread for context: http://forums.fedoraforum.org/showthread.php?t=278455

I followed the configuration changes outlined in that thread in my F17 installation and it seems I may now have discard support on my luks partition which is on SSD.

Code:
# cryptsetup status luks-cc282d6b-3831-448d-afa8-a53b30ee98e6
/dev/mapper/luks-cc282d6b-3831-448d-afa8-a53b30ee98e6 is active and is in use.
  type:    LUKS1
  cipher:  aes-xts-plain64
  keysize: 512 bits
  device:  /dev/sda3
  offset:  4096 sectors
  size:    330133504 sectors
  mode:    read/write
  flags:   discards
So I tried manually running fstrim:
Code:
# time fstrim -v /
/: 132014465024 bytes were trimmed

real	2m39.631s
user	0m0.000s
sys	0m0.814s
Not sure I trust the number of bytes trimmed since its showing about 130G !!

So how do I perform an actual test that I can see the TRIM occur on the encrypted block device? eg: all zeroes

UPDATE: painstakingly I went and followed through all the offsets of all the layers and was able to read a file sector and determine that yes TRIM is working on my LUKS partition.

Hope we see a tool to do this at some point.



.

Last edited by greno; 8th June 2012 at 01:05 AM.
Reply With Quote
Reply

Tags
devices, discard, f17, luks or dmcrypt, redux, support, trim

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F17 and Discard (TRIM) support on LUKS/dm-crypt devices Japplo F17 Development Forum 19 30th May 2012 06:17 AM
Fedora 16 and Discard (TRIM) support on LUKS/dm-crypt devices NoHumanBeing F16 Development 9 19th September 2011 07:52 PM
how to remove boot mount of dm-crypt LUKS md1 skiffx Security and Privacy 11 24th December 2009 05:40 AM
crypt-luks drive is 0.9 GB short in size patemos Security and Privacy 2 7th November 2009 07:43 PM
mini-HOWTO encrypt devices using dm-crypt and LUKS. raoul Links 2 23rd September 2005 07:22 PM


Current GMT-time: 20:29 (Wednesday, 20-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat