LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-12-2015, 03:06 PM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Does LUKS encrypt on the fly?


Hi LQ.

How does LUKS or other full disk encryptions work? After you boot up and enter your passphrase, after you login does the encryption work when you edit files or does it only kick in when you are logging off/shutting down to re-encrypt everything again?
 
Old 11-13-2015, 08:15 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Drivers are layered. Reads from the layer below are decrypted as they pass through, writes from the layer above are encrypted as they pass through. So while data is in memory or in any layer above LUKS, it is unencrypted. In any layer below it is encrypted. That way you can run LUKS on top of a disk, a partition, a RAID set or an LVM without change to any other code.
 
1 members found this post helpful.
Old 11-13-2015, 01:19 PM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,717

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thumbs up

Quote:
Originally Posted by smallpond View Post
Drivers are layered. Reads from the layer below are decrypted as they pass through, writes from the layer above are encrypted as they pass through. So while data is in memory or in any layer above LUKS, it is unencrypted. In any layer below it is encrypted. That way you can run LUKS on top of a disk, a partition, a RAID set or an LVM without change to any other code.
Hi smallpond. Thanks for the info. My PC is still speedy even with full disk encryption so the overhead seems minimal.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to encrypt a partition with DM-Crypt LUKS on Linux LXer Syndicated Linux News 0 04-24-2015 06:21 AM
LXer: CrazyFlie 6-DOF Review – Fly away now, fly away LXer Syndicated Linux News 0 04-20-2013 12:12 AM
[SOLVED] HOWTO encrypt a tar file on the fly lleb Linux - Newbie 10 03-12-2012 03:30 PM
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 09:35 AM
LXer: How to encrypt a diskdrive in (X)Ubuntu Feisty with dm-crypt and LUKS LXer Syndicated Linux News 0 04-12-2007 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration