Use Disks to format (e.g., ext4) new disk and set to automount (gear icon → Edit Mount Options... → disable "User Session Defaults" → enable "Mount at system startup" → configure Mount Point as desired, e.g., /newhome)
Boot into recovery mode (via Shift for BIOS systems or Esc for UEFI systems* → Advanced options for Linux Mint... → Linux Mint...(recovery mode)) and select root
mount -o rw,remount /
usermod -d /newhome/bob -m bob
*If you find yourself at a grub> prompt, type
normal → Enter → Esc.
On one test system, had to reenable autologin afterwards:
Rather than moving the entire home directory, individual folders like Desktop and Downloads can be redirected by editing ~/.config/user-dirs.dirs then running
More complicated and error-prone methods top the search results; they may come in handy if Disks or
usermod is not available:
Adrian Ho's answer, which points out some advantages of this method over more manual processes, including "No typos possible - the home directory and /etc/passwd are guaranteed to remain in sync." and "In addition to the normal permissions, usermod also automatically preserves any ACLs (access control lists) and extended attributes."
/nix | Jan 28, 2021
Subscribe or visit the archives.