Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Decrypt and move /Home?

    I want to move my /home dir to a new partition, but it is encrypted at install time.
    Does anyone know how to decrypt and move it to new partition?

  2. #2
    Just Joined!
    Join Date
    Apr 2010
    reserved memory
    Quote Originally Posted by bdsfnq View Post
    I want to move my /home dir to a new partition, but it is encrypted at install time.
    Does anyone know how to decrypt and move it to new partition?
    So... you mean that it is a luks-encrypted partition? How did you set up the encryption?

    Post the contents of your /etc/fstab file. And it wouldn't hurt to tell us what Linux distro you are using.

  3. #3
    Hmmm sorry for my ignorance not sure what you mean by Luks ( or am I being really dumb and it stands for lunux?)

    I am running a clean install of Ubuntu 10.04 64bit. Normally when I do a clean install I place the root on /dev/sda1 and /home on /dev/sdb5. This time for some unknown reason I neglected to do that and so I have ended up with the whole lot on /dev/sda1.
    So I want to 'move' /home to /dev/sdb5/ preservng all the lnks etc. I have done this before, but when I tried this time, the encryption prevented it.

    Encryption was an option in the install process, and I thought "why not". I have the passphrase available. But the other thing I noticed on the install CD is you cannot boot into a "trial" system like you used to be able to do. It's either "recover a broken system" or "Install" I could use an older live cd I suppose - maybe??

    The entry in /etc/fstab below that reads # Home is on sdb5 - is what I wanted but did not occur. so currenlty I have sym links from the real /home on /dev/sda1 to the Lucid/home on /dev/sdb5 which works but it's not really satisfactory.

    douglas@ubuntu:~$ cat /etc/fstab
    # /etc/fstab: static file system information.
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=2812c688-5ef8-40d3-a3b9-69def80cc6dd /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    #UUID=9bd43782-45b1-4093-9872-a61bfeb1843f none            swap    sw              0       0
    # Home is on /dev/sdb5
    UUID=3b5d7f0a-2918-44d7-b77a-47c68fd37b57  /mnt/Lucid		ext4	defaults	0	0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
    /dev/mapper/cryptswap1 none swap sw 0 0
    # Mounts the Music partition on sdb1
    UUID=6875d601-79d5-4418-9876-2e8a12e6e31f  /mnt/Music 	ext3 	 defaults 	0	 0
    Would really appreciate some help

  4. $spacer_open
  5. #4
    What I'd do in this case is to copy the whole contetnt of your home directory to /mnt/Lucid (as sdb5 is mounted there), rename the encripted /home to kepp the original files intact, just in case anything goes wrong, and create a new, empty non encripted /home. After this I'd edit /etc/fstab, replace /mnt/Lucid with /home and reboot.
    You have to be root to do these.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts