LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-17-2010, 02:54 AM   #1
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Mounting encrypted disk


Hi all,

Is it possible to mount an encrypted disk? I have the password and it is encrypted with crypto_luks. The filesystem that is encrypted is ext4. BackTrack 4 is available through PXE boot.

I hope anyone knows how to do this.
 
Old 06-17-2010, 07:09 AM   #2
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Original Poster
Rep: Reputation: Disabled
Will mount.crypt do the job?
 
Old 06-18-2010, 02:46 AM   #3
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Original Poster
Rep: Reputation: Disabled
Ok, I figured it out myself.
If you are not using LVM then installing pam_mount is required and you will be able to mount the disk with:
Code:
# mount.crypt -o cipher=aes /dev/sda2 /mnt
In case you are using LVM, you might need to install LVM2 (Not sure if you need pam_mount installed too, as I already had it installed). After this run the following commands:
Code:
# modprobe dm-mod
# vgscan --mknodes
# vgchange -ay <VolGroup>
# lvs
# mount /dev/<VolGroup>/<Vol_root> /mnt
 
  


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
mounting / rescue encrypted volume simonwil Ubuntu 2 11-02-2009 02:58 PM
Mounting encrypted linux directory on Windows whho Linux - Security 6 07-20-2009 10:26 PM
mounting encrypted img without being root crashsystems Linux - Security 7 03-09-2007 12:08 PM
why mounting 20GB encrypted data takes 2 seconds rino.caldelli Linux - General 2 03-05-2006 03:13 AM
writing encrypted data to disk rblampain Linux - Security 14 07-31-2005 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:41 PM.

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