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 30th April 2011, 01:53 PM
CompizUser Offline
Registered User
 
Join Date: Mar 2009
Posts: 29
linuxfedorafirefox
can encrypted /home be converted to unencrypted or should the partition be removed?

Hi all,

I installed a Fedora14 recently on a small PC an had voted on /home encryption in anaconda. In retrospect this was not the greatest idea since it requires input upon boot and the PC is supposed to be a media station connected to a TV (and maybe controlled by IR remote in the future)...

Since it is a relatively new install I can just redo it and not encrypt /home. But since I use a custom 2.6.38 kernel (due to my relatively new realtek WLan which doesn't work in 2.6.35) this would also require a new compilation of said kernel (not the worst problem in the world but still time consuming).

So my question is thus: Can I simply decrypt the whole partition somehow (haven't seen anything in the cryptsetup dokumentation) or can I simply wipe it clean and reformat it, mounting it afterwards as the new /home? (This certainly requires adjustment of the initrd I'd assume since it expects an encrypted volume doesn't it?)

Thanks for your ideas!
CU

Edit: After doing some more research it seems that just wiping the /home partition is not a solution since it's inside a lv mapped partition. I also found something like dmconvert, unfortunately it is sparsly documented and I cannot make it reencrypt my partition with an empty passphrase.
Btw I don't know why I had this lvm in the first place and not simply set up different partitions. Can anyone tell me why anaconda always does this as a default?
Summarising: I'll reinstall my system and encrypt specific directories when the system is setup correctly.
__________________
Fedora 13, Core2Duo CPU, ATI 3470, 3GB Ram

Last edited by CompizUser; 30th April 2011 at 03:20 PM.
Reply With Quote
  #2  
Old 30th April 2011, 04:42 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 546
linuxredhatmozilla
Re: can encrypted /home be converted to unencrypted or should the partition be remove

Hello,
the crypto settings are stored in the file /etc/crypttab (see 'man crypttab' for more information).
If you do not want the password to be asked, you can write it into the file (I will not comment this...).
I guess you can just reformat the home partition, but do not forgot to update the file /etc/crypttab, and maybe
/etc/fstab.
__________________
:confused:
Reply With Quote
  #3  
Old 1st May 2011, 09:21 AM
japafi Offline
Registered User
 
Join Date: Mar 2010
Posts: 87
linuxfirefox
Re: can encrypted /home be converted to unencrypted or should the partition be remove

Quote:
Edit: After doing some more research it seems that just wiping the /home partition is not a solution since it's inside a lv mapped partition
having partition inside LVM does not affect wiping the partition or keeping/removing encryption.

Simple solutions:
Either set the unlock password to /etc/crypttab
or
- copy the stuff from your home somewhere else
- checkwhat is the device being decrypted (/etc/crypttab will tell you)
- remove the encrypted partition from /etc/crypttab and /etc/fstab
- mkfs the device which was previously used to be decrypted

before doing any of the above though, please provide your
/etc/fstab
and
/etc/crypttab

here, we can give you more detailed instructions and there is less chance of accidental data loss.
Reply With Quote
  #4  
Old 1st May 2011, 11:15 AM
CompizUser Offline
Registered User
 
Join Date: Mar 2009
Posts: 29
linuxfedorafirefox
Re: can encrypted /home be converted to unencrypted or should the partition be remove

I haven't reinstalled everything yet so I might do it as suggested above.

Here is my fstab:
Code:
/dev/mapper/vg_kleener-LogVol00 /                       ext4    defaults        1 1
UUID=7994c93b-b54e-491a-84ef-487a1c52c3ca /boot                   ext4    defaults        1 2
/dev/mapper/luks-584c5376-873f-449d-9414-93ea47c6a313 /home                   ext4    defaults        1 2
/dev/mapper/vg_kleener-LogVol02 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults   luks-584c5376-873f-449d-9414-93ea47c6a313 UUID=584c5376-873f-449d-9414-93ea47c6a313 none 
     0 0
and my crytptab
Code:
luks-584c5376-873f-449d-9414-93ea47c6a313 UUID=584c5376-873f-449d-9414-93ea47c6a313 none

so if I understood this correctly I just umount my partition, reformat it and wipe it from fstab and crypttab. Then I can just put it in fstab wih the proper fs type and reboot?
CU
__________________
Fedora 13, Core2Duo CPU, ATI 3470, 3GB Ram
Reply With Quote
  #5  
Old 1st May 2011, 11:51 AM
japafi Offline
Registered User
 
Join Date: Mar 2010
Posts: 87
linuxfirefox
Re: can encrypted /home be converted to unencrypted or should the partition be remove

You need to copy the contents of /home to somewhere safe, where you can restore them.

Start by
blkid | grep 584c5376-873f-449d-9414-93ea47c6a313

if the result is not /dev/mapper/vg_kleener-LogVol01
then DO NOT PROCEED, then instructions below may be bad.

once you've taken backups:

umount /home
cryptsetup luksClose luks-584c5376-873f-449d-9414-93ea47c6a313
mkfs.ext4 /dev/mapper/vg_kleener-LogVol01


modify /ec/fstab to mount /dev/mapper/vg_kleener-LogVol01 as home

Mount it and restore backup
Reply With Quote
Reply

Tags
converted, encrypted, or home, partition, removed, unencrypted

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
Encrypted Home Partition JConLine Security and Privacy 12 13th February 2011 03:11 AM
install F13 with old encrypted /home ddan Installation and Live Media 3 24th June 2010 07:10 PM
[SOLVED] Installing a virtual machine on an encrypted /home partition theAdmiral Using Fedora 0 15th March 2010 12:48 AM
Security risk of an unencrypted /boot partition? zackf Security and Privacy 5 10th April 2009 03:07 PM
encrypted /home vs. not encrypted /home storskogen Using Fedora 1 13th August 2008 10:23 PM


Current GMT-time: 13:37 (Monday, 20-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