Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th November 2008, 06:44 AM
ralf Offline
Registered User
 
Join Date: Nov 2008
Posts: 3
LUKS encrypted physical volume on removable USB disk

Hi,

I am using LUKS to encrypt a removable USB disk. Encryption works but the handling is bothering me:

I used LVM to create an encrypted PV on the Disk. This was then added to VG which was used to create several LVs. So far so good. Whenever I plug in the disk, the f9 prompts me for the passphrase of the encrypted disk. On entering the passphrase it does not mount the disk, but fails to recognize the VG and the LV on top.
Where are the scripts handling encrypted removable disks so I can fiddle with them, or is there an easier way to do this?

Ralf
Reply With Quote
  #2  
Old 5th November 2008, 07:54 PM
LBCoder Offline
Registered User
 
Join Date: Oct 2008
Posts: 221
The easier way to do this is to NOT USE LVM!!
Reply With Quote
  #3  
Old 5th November 2008, 11:04 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
i just played with this today on rawhide. upon entering he password, the vg should be listed with vgdisplay
however there may not be an entry in /dev/mapper.

to find that you should use: /sbin/vgchange -a y VolumeGroupHereVG00

now your volume group is added and available in /dev/mapper where you can mount it:

mount /dev/mapper/VolumeGroupHereVG00-LogicalVolumeHereLV00 /data

i also found noticed a bug in selinux policy related to hald/dbus and lvm in preview. the policy maintainer is aware of it and it should be fixed soon upstream.
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/
Reply With Quote
  #4  
Old 6th November 2008, 04:17 AM
ralf Offline
Registered User
 
Join Date: Nov 2008
Posts: 3
Quote:
Originally Posted by LBCoder View Post
The easier way to do this is to NOT USE LVM!!
True, I could have left lvm out of the picture, but I personally like lvm.
Reply With Quote
  #5  
Old 6th November 2008, 04:21 AM
ralf Offline
Registered User
 
Join Date: Nov 2008
Posts: 3
Thanks a lot for your answer. I have used this manual way for the last couple of weeks. I would like to automate the process. Would it be possible with udev?
Quote:
Originally Posted by domg472 View Post
i just played with this today on rawhide. upon entering he password, the vg should be listed with vgdisplay
however there may not be an entry in /dev/mapper.
I have used vgscan in the past to actually find the volume group followed by the next command:
Quote:
to find that you should use: /sbin/vgchange -a y VolumeGroupHereVG00

now your volume group is added and available in /dev/mapper where you can mount it:

mount /dev/mapper/VolumeGroupHereVG00-LogicalVolumeHereLV00 /data

i also found noticed a bug in selinux policy related to hald/dbus and lvm in preview. the policy maintainer is aware of it and it should be fixed soon upstream.
Remember to disable the volume group before removing the device:
umount /data
vgchange -a n VolumeGroup

Any ideas on automating the process? As soon as the volume is plugged in the password is asked automatically. I think this is done by Gnome-Volume-Manager. Only the vg is not recognized and the volume not mounted.
Reply With Quote
Reply

Tags
luks, lvm, usb

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
How to Image luks system encrypted logical HDD AnimeFreak Security and Privacy 8 17th June 2009 02:32 PM
mounting encrypted luks partition with keyfile gnapp Using Fedora 0 27th March 2009 08:27 AM
Mount luks encrypted volumes from a livecd AnimeFreak Using Fedora 0 13th March 2009 10:01 PM
Mounting luks encrypted external HD sentry Hardware & Laptops 6 28th February 2009 03:14 PM
Can't find physical volume or volume group at boot vifa84 Using Fedora 3 4th February 2007 05:10 PM


Current GMT-time: 03:57 (Sunday, 26-05-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