Results 1 to 5 of 5

Thread: Switch /home to other distribution

  1. #1
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    183

    Default Switch /home to other distribution

    Hi,
    I'm thinking of switching my system to Linux Mint Cinnamon. On my current system I have got separate /home (it's encrypted).
    From what I read Mint doesn't support installing existing /home disk (or it does?).

    I need some advice from you.

    1. How to easily install Mint and use my existing encrypted /home directory?

    2. My idea of solution is:
    - install clean Mint with whatever /home it offers (and without touching my encrypted /home)
    - then on running system point or change Mint's /home to my encrypted /home

    I would appreciate any help and ideas of how to do it.
    Linux 4.12.14
    openSUSE Leap 15.0 - 64 bit
    KDE Plasma 5.12.15
    KDE Framework 5.44.0
    Qt - 5.9.4

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,681
    Blog Entries
    3

    Default Re: Switch /home to other distribution

    If the concern is only with "/home", then I would suggest:

    1. Install Mint without sharing "/home". Just leave "/home" as part of the root file system for Mint.
    2. Make sure that "cryptsetup" is installed in Mint
    3. Create "/etc/crypttab" to be used by Mint
    4. Manually decrypt your old "/home" and see if you can mount it at "/mnt"
    5. If that all works, then check ownership and permissions on the mounted file system;
    6. If all looks good, edit "/etc/fstab" so that on next boot, your old "/home" will be mounted at "/home".
    7. Reboot. Be prepared to login at command line as root if you run into problems.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    183

    Default Re: Switch /home to other distribution

    Thanks,

    and what about usermod command?
    Will this work?
    Code:
    usermod -m -d /newhome/username username
    or manual changing?
    Code:
    /etc/default/useradd
    Linux 4.12.14
    openSUSE Leap 15.0 - 64 bit
    KDE Plasma 5.12.15
    KDE Framework 5.44.0
    Qt - 5.9.4

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Switch /home to other distribution

    You have to make sure that the user 'username' has the same numeric ID, and groups+ID as the user has on openSUSE. IIRC Mint uses the username for both owner and group, so you'd have to address that somehow.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5

    Default Re: Switch /home to other distribution

    Cinnaman is also available for opensuse, you can always try it then decide
    ------------------------------------
    Correct me if I'm wrong .
    ------------------------------------

Posting Permissions

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