LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2014, 07:28 PM   #1
badenov
LQ Newbie
 
Registered: Dec 2014
Location: new jersey
Distribution: centos
Posts: 3

Rep: Reputation: Disabled
luks encryption and boot


I have installed centos 6 and added an encrypted drive on a separate partition.
/dev/hda1 / ext4
/dev/hda2 /usr ext4
/dev/hda3 /user encrypted ext4

At boot time, the system hangs until the pass phrase for the encrypted partition is supplied.

I would like the system to boot without the /user file system, either after a timeout, or better yet boot without the partition so that there is no indication that the partition exists. I would then mount the disk manually when needed.

It might also be nice for the system to dismount the disk after some hours/days of inactivity on the file system, and require the user to re-enter the password.

Any ideas on how to do this?
 
Old 12-08-2014, 04:03 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
1. /etc/crypttab "noauto" keyword.

2. A small script should be able to do this.
 
Old 12-18-2014, 11:42 AM   #3
badenov
LQ Newbie
 
Registered: Dec 2014
Location: new jersey
Distribution: centos
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unfortunately this causes the system to go into maintenance mode at boot because it cannot mount the file system. I suppose one also needs to remove the entry for the file system in fstab?
I also could not find the "noauto" option for crypttab in the man page.
 
Old 12-18-2014, 11:43 AM   #4
badenov
LQ Newbie
 
Registered: Dec 2014
Location: new jersey
Distribution: centos
Posts: 3

Original Poster
Rep: Reputation: Disabled
Unfortunately this causes the system to go into maintenance mode at boot because it cannot mount the file system. I suppose one also needs to remove the entry for the file system in fstab?
I also could not find the "noauto" option for crypttab in the man page.
 
Old 12-18-2014, 01:38 PM   #5
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by badenov View Post
Unfortunately this causes the system to go into maintenance mode at boot because it cannot mount the file system. I suppose one also needs to remove the entry for the file system in fstab?
I also could not find the "noauto" option for crypttab in the man page.
use noauto in fstab

use noauto in crypttab

http://askubuntu.com/a/277986
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Luks disk encryption balaji2219@gmail.com Linux - Newbie 2 08-06-2014 02:51 PM
luks encryption on ssd deNiro Slackware 6 07-15-2011 11:42 AM
LUKS encryption, sets xyzone Linux - Security 1 06-21-2010 12:43 AM
Security of LUKS encryption PlatinumX Linux - Security 5 06-06-2009 04:08 PM
LUKS encryption question DarkpawT Linux - Software 4 11-05-2008 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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