Results 1 to 5 of 5

Thread: Yast will not encrypt my home directory

  1. #1
    Join Date
    Mar 2009
    Location
    Adelaide, Australia
    Posts
    62

    Default Yast will not encrypt my home directory

    I have tried encrypting my 'home' partition with yast and keep getting the following error message:

    "Could not set encryption.
    System error code is -3016

    The encryption password provided could be incorrect."

    PS. I do not have internet at home currently, so cannot upgrade without losing all of my programs. (witch I am not going to do)

    Linux kernel ver: 3.7.10-1.16-desktop
    openSUSE 12.3 (x86_64)

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,643
    Blog Entries
    3

    Default Re: Yast will not encrypt my home directory

    I don't know if this will help.

    Before you try encrypting the home directory, do (as root)
    Code:
    # modprobe loop
    If that does help, then you will need to configure your system to force the load of the loop module during boot -- otherwise you might not be able to access your home directory after a reboot until a corresponding "modprobe".
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Yast will not encrypt my home directory

    On 2015-08-18 09:56, jsbjsb001 wrote:
    >
    > I have tried encrypting my 'home' partition with yast and keep getting
    > the following error message:


    The entire home partition, that applies to all users? It must be a new
    or empty partition. I can give you a manual procedure for doing it.

    Or are you setting up encryption for a single user? In that case I
    believe it has to be a new user.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,643
    Blog Entries
    3

    Default Re: Yast will not encrypt my home directory

    Quote Originally Posted by jsbjsb001 View Post
    I have tried encrypting my 'home' partition with yast and keep getting the following error message:
    My earlier reply assumed you meant an encrypted home directory. That typically creates a container file which it encrypts, and then loop-mounts the container.

    If you are encrypting the home partition, that's a different thing entirely.

    For that, you would need to do:
    1. Backup your home partition (encrypting will lose the contents);
    2. Code:
      # mount --bind / /mnt
    3. copy your own home directory to "/mnt/home/USER" (recursively). That is, copy the diretory tree "/home/USER" to "/mnt/home/USER" (for the appropriate value of "USER"). You are copying to under the mount point. Make sure there is space in the root file system for this before you copy. (You can first delete large files since you have just made a backup).
    4. Code:
      # umount /mnt
    5. Comment out the entry for "/home" in "/etc/fstab"
    6. Reboot, and login. Your login should now be using the copy of your home directory that you had made in step 3.
    7. Use Yast partitioner to encrypt your home directory, to be mounted at "/xhome" (because you don't want it to overlay the home directory that you are currently using).
    8. If that goes well, then restore from your backup to the mounted "/xhome". That should get back all of the files that were in the home partition.
    9. Edit "/etc/fstab" and change that "/xhome" to "/home"
    10. Reboot. You should now be using the encrypted partition.
    11. Code:
      # mount --bind / /mnt
    12. remove /mnt/home/USER -- you no longer need that temporary copy


    Note that I have not tried the above. And I don't recommend it.

    If you want to switch to encrypted home partition, the safer way is:
    • Backup the home partition
    • Do a clean install, where you encrypt the home partition
    • Restore from the backup

    I would suggest waiting until you next plan on doing a clean install.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  5. #5
    Join Date
    Mar 2009
    Location
    Adelaide, Australia
    Posts
    62

    Default Re: Yast will not encrypt my home directory

    Yes I think I will just wait for a clean install.

Posting Permissions

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