Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > 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 1st August 2012, 10:27 PM
sidd2 Offline
Registered User
 
Join Date: Aug 2012
Location: France
Posts: 26
linuxfirefox
Controlling LUKS

I moved from Ubuntu for the sake of simplicity in order to have my disk encrypted. Later it just hit me I checked Encrypted for the drive. I had no idea how. I found out in the Fedora docs that was AES128 and SHA256. And I assume a change would mean backup the whole system, choose another, say Twofish, than restore the system. But how can I tune it for the future? Is there a GUI? Had I missed something in the installer where I could have chosen among the dm-crypt options?

And second how do I do to make a portable storage on some USB flash drive? How do I make it both fully encrypted and as easy to use as my system: just push the flash in and be just asked for a passphrase? I'm trying to move from TrueCrypt as I see it's not very liked over here. But I would like some automation, or at least a GUI.
Reply With Quote
  #2  
Old 2nd August 2012, 01:24 AM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,731
linuxfedorafirefox
Re: Controlling LUKS

Quote:
Originally Posted by sidd2 View Post
I moved from Ubuntu for the sake of simplicity in order to have my disk encrypted. Later it just hit me I checked Encrypted for the drive. I had no idea how. I found out in the Fedora docs that was AES128 and SHA256. And I assume a change would mean backup the whole system, choose another, say Twofish, than restore the system. But how can I tune it for the future? Is there a GUI? Had I missed something in the installer where I could have chosen among the dm-crypt options?
As far as I know, you cannot configure what algorithm you need from the installation screen. I do not know about netinstall - but I doubt it.

Again, as far as I know, if you want to change an encryption scheme, it is necessary to make backups and then re-encrypt the device. if there is an alternative, I do not know and would be very interested in knowing.

Quote:
Originally Posted by sidd2 View Post
And second how do I do to make a portable storage on some USB flash drive? How do I make it both fully encrypted and as easy to use as my system: just push the flash in and be just asked for a passphrase? I'm trying to move from TrueCrypt as I see it's not very liked over here. But I would like some automation, or at least a GUI.
There is a utility called cryptsetup that can be used for dealing with LUKS. The man page gives more details. I personally have two external USB drives encrypted that I use as backup - all of which was done using cryptsetup.

Hope this helps. Cheers.
Reply With Quote
  #3  
Old 2nd August 2012, 06:33 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,847
linuxfirefox
Re: Controlling LUKS

Quote:
Originally Posted by nonamedotc View Post
As far as I know, you cannot configure what algorithm you need from the installation screen. I do not know about netinstall - but I doubt it.
The only way of explicitly controlling the encryption parameters when installing Fedora is to create the partitions and encrypt them manually prior to installation, using cryptsetup. Then use the manual partitioning option in the installer to assign the existing encrypted partitions – the installer won't re-encrypt them.

Quote:
There is a utility called cryptsetup that can be used for dealing with LUKS. The man page gives more details.
Replace the parameters in italics as appropriate:
Code:
su -
cryptsetup -c aes-xts-plain64 -s 512 -y --use-random luksFormat /dev/sdb
cryptsetup luksOpen /dev/sdb crypt
mkfs -t ext4 -L "Crypt" /dev/mapper/crypt
cryptsetup luksClose /dev/mapper/crypt
When the device is next plugged in, the encryption parameters will be discovered automatically and you'll just be asked for the password.

EDIT: Added "--use-random". I knew I was missing an argument that I'd normally use, and it's just come back to me...

Last edited by Gareth Jones; 3rd August 2012 at 02:25 AM.
Reply With Quote
  #4  
Old 5th August 2012, 11:37 AM
sidd2 Offline
Registered User
 
Join Date: Aug 2012
Location: France
Posts: 26
linuxfirefox
Re: Controlling LUKS

Thank you Gareth. It's an excellent answer as it works precisely like that. But I should gather there is no GUI for doing anything like that. Hmmm
Reply With Quote
  #5  
Old 5th August 2012, 01:12 PM
flyingfsck Online
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,093
linuxfirefox
Re: Controlling LUKS

The other way is to use Kickstart (and edit the script to do what you want), but that is mostly used to configure multiple machines the same.

More info here:
http://www.aeronetworks.ca/howtos/luks-usb-howto.html
...including two Perl utilities that I wrote many moons ago.

Last edited by flyingfsck; 5th August 2012 at 01:16 PM.
Reply With Quote
  #6  
Old 5th August 2012, 05:16 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,847
linuxfirefox
Re: Controlling LUKS

Quote:
Originally Posted by flyingfsck View Post
The other way is to use Kickstart (and edit the script to do what you want), but that is mostly used to configure multiple machines the same.
Kickstart gives more control over encryption key handling, but it doesn't allow you to specify the algorithm or strength for the encryption. Again, pre-created encrypted volumes can be used without reformatting though.
Reply With Quote
  #7  
Old 5th August 2012, 05:20 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,847
linuxfirefox
Re: Controlling LUKS

Quote:
Originally Posted by sidd2 View Post
Thank you Gareth. It's an excellent answer as it works precisely like that. But I should gather there is no GUI for doing anything like that. Hmmm
I'm not aware of a GUI, but then I've never looked.

flyingfsck's link mentions "gnome-luks-format", which seems to be part of a package called "luks-tools", but the project's ChangeLog hasn't been updated since 2005 and it isn't in the Fedora repositories.
Reply With Quote
  #8  
Old 5th August 2012, 11:06 PM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,731
linuxfedorafirefox
Re: Controlling LUKS

I actually looked for a GUI sometime back. I could not find anything in my searches ... except for the gnome-luks-format which as Gareth said has not been updated forever! So, I guess it is cryptsetup all the way!
Reply With Quote
  #9  
Old 6th August 2012, 04:38 AM
flyingfsck Online
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,093
linuxfirefox
Re: Controlling LUKS

As far as I can remember my Perl wizards only need cryptsetup. Just download and look at the little scripts, they are very simple. There is only one 'dd' trick in there to test things before going ahead and formatting the wrong drive...

Cheers,

H.

Last edited by flyingfsck; 6th August 2012 at 04:42 AM.
Reply With Quote
Reply

Tags
controlling, luks

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
Kpowersave not controlling CPU CentaurHauler Hardware & Laptops 4 16th February 2008 09:49 PM
What is controlling my touchpad? Frank616 Hardware & Laptops 19 21st January 2008 07:37 PM
Controlling YUM sunckell Using Fedora 5 17th March 2005 06:31 PM


Current GMT-time: 06:22 (Wednesday, 19-06-2013)

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