LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-29-2011, 09:08 PM   #1
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
make system ask password for encrypted partitions only once, not for each of them?


Hi all,
I have installed debian 6 on two of my laptops. During installation I chose to encrypt my partitions (swap, root and home). Now I find it annoying that during boot up I'm asked for password, for each of these partions seperately. I have given same password for all three of them. How can I make the system ask for the password only once. I know it can be done because on fedora it was like that before.

Thanks in advance.
 
Old 05-29-2011, 09:38 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Fedora uses LMV2. A single Physical volume may have been encrypted below the logical volumes.
 
Old 05-30-2011, 05:10 AM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
scroll down to the bold headline "adding a keyfile":
http://www.debianuserforums.org/viewtopic.php?f=9&t=460

I did not do it (ever), but knew that i read about it. Not sure if its what you ask for, just check.

Last edited by j1alu; 05-30-2011 at 05:12 AM.
 
1 members found this post helpful.
Old 06-01-2011, 01:25 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Thanks j1alu. Excellent idea to use a passphrase on the first partition, and place the keyfile for the other encrypted partitions in that one.
 
Old 06-02-2011, 10:11 AM   #5
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Original Poster
Rep: Reputation: 2
Hi jschiwal,
Sorry if I was not more specific. I do have an lvm set up(debian doesn't use lvm2? 'lvm version' gives me, lvm version: 2.02.66(2)). I have sda1 as /boot (ext2) and sda2 as lvm setup where i have swap, root, home and multimedia volumes. I have also gone for encryption during installation. j1alu's link was a great help. Thats exaclty what I wanted to achieve.

Hi j1alu,
Thank you very much. instructions on your link solved the problem. However on Fedora for same setup, I didnot see any keyfiles being added, yet it did not ask password multiple times. Even now, during installation process, it mounts encrypted volumes and at password prompt has a checkbox saying 'this is global passphrase' (I don't remember exact words). I was actually looking for this 'global passphrase' kind of thing. Anyway keyfile trick works for me. Thank you again.

Last edited by saivnoba; 06-02-2011 at 10:12 AM. Reason: grammar correction
 
Old 06-02-2011, 01:07 PM   #6
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
to be honest: i only gave the link ( i didn't even read that part of the how-to carefully).
fsmithred does a good job with his how-tos (he has got some at forums.debian.net too, iirc). If trouble is there he usually helps good too. So: He is the one to thank.
But i am glad that it worked.
 
  


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
encrypted file system: password-less encryption? hydraMax Linux - Security 1 01-24-2011 12:33 AM
Installing to encrypted partitions? compu73rg33k Ubuntu 2 11-03-2007 07:54 PM
Accessing encrypted partitions from OpenBSD avallach *BSD 2 06-12-2007 05:04 AM
Creating and using encrypted partitions as non-root v00d00101 Linux - Security 3 06-25-2006 05:31 PM
Hacking the initrd for encrypted partitions sonicbuddha Linux - Security 2 12-20-2005 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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