LinuxQuestions.org
Review your favorite Linux distribution.
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 08-02-2016, 07:55 AM   #1
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Rep: Reputation: Disabled
Full disk encryption questions


I have a number of portable drives I'd like to encrypt but am unsure of the best way to do this:
Ideally I'd like the encryption to work across both linux format and windows NTFS drives.
Would Luks be suitable for this?
If I did use luks or similar what happens if there is a disk error - would that make the entrire file or drive unreadable/unrecoverable?

Is luks my best option for this or are there others (NOT symantic please)

thanks
 
Old 08-02-2016, 08:03 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Not if you expect Windows to be able to access it. And if Windows won't be used for that - why use NTFS?
 
Old 08-02-2016, 09:00 AM   #3
albinodrew
LQ Newbie
 
Registered: Mar 2014
Location: Quebec, Canada
Distribution: Debian 8 - Jessie
Posts: 20

Rep: Reputation: 5
Hi fred2014,

If you plan to use these drive on Windows and Linux you should look at the encryption program VeraCrypt, it is cross-platform, Windows, Linux and Mac, and may I suggest formatting in FAT instead since it can be read easily by all OS.

VeraCrypt: https://veracrypt.codeplex.com/
 
1 members found this post helpful.
Old 08-02-2016, 09:00 AM   #4
albinodrew
LQ Newbie
 
Registered: Mar 2014
Location: Quebec, Canada
Distribution: Debian 8 - Jessie
Posts: 20

Rep: Reputation: 5
Hi fred2014,

If you plan to use these drive on Windows and Linux you should look at the encryption program VeraCrypt, it is cross-platform, Windows, Linux and Mac, and may I suggest formatting in FAT instead since it can be read easily by all OS.

VeraCrypt: https://veracrypt.codeplex.com/
 
Old 08-02-2016, 03:17 PM   #5
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
Thanks for the replies ...


I've just downloaded veraCrypt to take a look at - for both windows and linux.

More info may help:
All the external drives are formatted NTFS as clients can read them.
I use both windows and linux myself - largely for the same reason.

All the drives are data only so I don't need any boot configs if that
makes any difference. None of them needs to boot.

I do have paragon EXTfs on my windows machines so I could use that
if I used an extFS but the client issue makes ntfs preferable -
Before anyone asks - I don't trust the stuff that comes with the drives as
far as I can spit - that solution is out of the question.

If anyone has more to add I'd welcome the input ---

Especially regarding the disk error question
And which would be the most secure encryption
(I don't understand encryption myself so just the name to select would do me)

thanks again
 
Old 08-03-2016, 05:23 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Since you are going to be sharing keys for the encryption with multiple systems... I don't see the purpose of encryption.

Encryption is usually used to prevent such sharing... If even ONE of the systems is compromised/stolen - you have to replace the keys for ALL of the systems.
 
Old 08-03-2016, 06:49 AM   #7
albinodrew
LQ Newbie
 
Registered: Mar 2014
Location: Quebec, Canada
Distribution: Debian 8 - Jessie
Posts: 20

Rep: Reputation: 5
jpollard no keys are stored anywhere, when Veracrypt create a encrypted volume you need to create a strong password, when you mount the encrypted volume via Veracrypt the password is required, nothing is stored locally.
Veracrypt is a port of Truecrypt and years ago Steve Gibson did a great podcast explaining how Truecrypt works, it's Security Now! episode number 41, you can find it here
on the TWiT network: https://twit.tv/shows/security-now/episodes/41
or at Steve Gibson website: https://www.grc.com/sn/past/2006.htm and look for episode 41, they also have a pdf transcrypt of the podcast.
 
Old 08-03-2016, 07:06 AM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
And everyone has the password...

You sure nobody will write it down?

Now, if everyone has a separate disk that no one else uses, then everyone has a separate password. Still a problem if they write password down, but at least it is only ONE disk that gets compromised.

I didn't say HOW the key was compromised - just the consequences of WHEN.

Last edited by jpollard; 08-03-2016 at 07:08 AM.
 
Old 08-04-2016, 04:58 AM   #9
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
jpollard

please stick to answering the questions asked.
If you don't know the answers please don't respond.
If you would like to understand please start your own thread
and stop polluting mine.
 
Old 08-04-2016, 05:02 AM   #10
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
The questions I'd most like answered for now are:

Especially regarding the disk error question is data recoverable etc.
And which would be the most secure encryption
(I don't understand encryption myself so just the name to select would do me)

thanks.
 
Old 08-04-2016, 07:20 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
+1 for VeraCrypt with an NTFS filesystem (choose the default encryption and hash algorithms, AES/SHA-512 if I remember correctly - they will do fine).

VeraCrypt is very flexible. I currently have ext4, fat32 and NTFS VeraCrypt containers, some partition-wide, others consisting of a single file container.

If a disk error affects the volume header in the container so that it doesn't even mount, you can try restoring the volume header from the backup embedded in the volume. If this isn't successful, you effectively won't be able to recover the data. If it affects somewhere else in the container, then you can try to use VeraCrypt's "Check Filesystem" and "Repair Filesystem" facilities to recover data. Always make a backup of the volume before carrying out any repairs.

Of course, you should be backing up your data regularly anyway so that any such disk errors cause minimum disruption/data loss.

Last edited by hydrurga; 08-04-2016 at 07:30 AM. Reason: Disk errors
 
Old 08-04-2016, 10:28 AM   #12
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
Thanks hydrurga
I've now had time to read the veraCrypt docs.
The docs seem very thorough and answer most questions.
I've just tried my first external drive configured
with 3 processors at 2.4Ghz each (keeping the fourth for the system.
A usb2 drive/interface seems very slightly sluggish at those settings
but I havn't had time to examine further yet.
(I dont want it for video but that seemed a good way to test the system
... ie does video/audio stay in sync and frame rate stay up)
It seems fast enough for my use though.

veraCrypt seems to be very well configured - my only concern is
that 256 bits is not very good encryption IMHO. regardless of US Govt. claims.
 
  


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
[SOLVED] Full disk encryption Crippled Linux - Security 7 05-27-2016 09:34 PM
Questions on jdb2 and fsck with full disk encryption IoannisM Linux - Newbie 2 05-17-2016 04:34 AM
disk full, encryption dawee Ubuntu 2 07-03-2012 02:46 AM
Can full disk encryption be removed? Amdx2_x64 Linux - Security 4 11-15-2010 12:11 AM
Full disk encryption ourskool Linux - Security 1 01-23-2008 11:52 AM

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

All times are GMT -5. The time now is 01:13 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