Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: How to change the "HOME" dir to another disk

  1. #1
    Join Date
    Dec 2019
    Beans
    11

    How to change the "HOME" dir to another disk

    Pls, help, this is the disk where i need to move the SO: /dev/sda4, and in this disk is the actual HOME: /dev/sdb2

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,213
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: How to change the "HOME" dir to another disk

    None but ourselves can free our minds

  3. #3
    Join Date
    Dec 2019
    Beans
    11

    Re: How to change the "HOME" dir to another disk

    i try but the "home dir" is the same.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How to change the "HOME" dir to another disk

    Quote Originally Posted by klays View Post
    Pls, help, this is the disk where i need to move the SO: /dev/sda4, and in this disk is the actual HOME: /dev/sdb2
    Those are device names, which can change from boot to boot. Best to use UUIDs or LABELs or by-path/ links which do not change to control where the partitions are mounted.

    Where do you want to move HOME? /users/home/klays? Somewhere else? To do that, just change the HOME directory location specified in the password entry field. That won't move any data, but at the next login, the home will be in the new directory. If you correctly mount new storage there with a unix file system (don't use NTFS or FAT-whatever, that will break things), then you can move the old /home/klays stuff over as you like.

    I'm pretty certain that help.ubuntu.com has a step-by-step guide to accomplish this. Google should find it easily.
    Last edited by TheFu; December 12th, 2019 at 12:18 PM.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to change the "HOME" dir to another disk

    To move /home uses rsync- Be sure to use parameters to preserve ownership & permissions
    https://help.ubuntu.com/community/Pa...ng/Home/Moving
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    1,567
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How to change the "HOME" dir to another disk

    did you try usermod? that's what i used to move a few home directories to another partition.
    What do you call someone who speaks 3 languages? Trilingual.
    What do you call someone who speaks 2 languages? Bilingual.
    What do you call someone who speaks 1 language? American.

  7. #7
    Join Date
    Dec 2019
    Beans
    11

    Re: How to change the "HOME" dir to another disk

    ready, but when i download a app from app center this saves in the old disk, (2.1GB) and i need to save in the new disk (500GB), how i can do?

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How to change the "HOME" dir to another disk

    Quote Originally Posted by klays View Post
    ready, but when i download a app from app center this saves in the old disk, (2.1GB) and i need to save in the new disk (500GB), how i can do?
    We need some facts to help.

    What facts?
    • What partitions are mounted?
    • Where are those partitions mounted?
    • Did the previous partition/directory with the HOME directories get moved to the new partition?
    • Did the password entry for the relevant usernames get updated?


    Please help us to help you, by answering those questions. Nothing is all that hard, but asking questions without answering ours isn't going to work. The output from these commands will be very helpful:
    Code:
    df -hT -x squashfs -x tmpfs -x devtmpfs
    lsblk -o name,size,type,fstype,mountpoint
    getent passwd  klays
    Please, please wrap them in 'code tags' like I've done, so the post here is lined up correctly and columns look like they do in the terminal. Too hard to read/interpret without that.
    Last edited by TheFu; December 13th, 2019 at 12:25 AM.

  9. #9
    Join Date
    Dec 2019
    Beans
    11

    Re: How to change the "HOME" dir to another disk

    Code:
    klays@klays:~$ df -hT -x squashfs -x tmpfs -x devtmpfs
    S.ficheros     Tipo    Tamaño Usados  Disp Uso% Montado en
    /dev/sdb2      ext4       14G    12G  1,9G  86% /
    /dev/sda2      vfat      296M    55M  242M  19% /boot/efi
    /dev/sda1      ext4      441G   1,8G  417G   1% /home
    /dev/sdc1      fuseblk   932G   520G  413G  56% /media/klays/DISCO
    klays@klays:~$ lsblk -o name,size,type,fstype,mountpoint
    NAME     SIZE TYPE FSTYPE   MOUNTPOINT
    loop0  149,9M loop squashfs /snap/gnome-3-28-1804/67
    loop1   14,8M loop squashfs /snap/gnome-characters/296
    loop2   53,1M loop squashfs /snap/instagramport/5
    loop3  137,7M loop squashfs /snap/code/22
    loop4   68,5M loop squashfs /snap/ghost-desktop/80
    loop5   54,4M loop squashfs /snap/core18/1066
    loop6   44,2M loop squashfs /snap/gtk-common-themes/1353
    loop7  156,7M loop squashfs /snap/gnome-3-28-1804/110
    loop8    3,7M loop squashfs /snap/gnome-system-monitor/100
    loop9   1008K loop squashfs /snap/gnome-logs/61
    loop10  54,6M loop squashfs /snap/core18/1279
    loop11  89,1M loop squashfs /snap/core/8213
    loop12 181,1M loop squashfs /snap/spotify/36
    loop13  42,8M loop squashfs /snap/gtk-common-themes/1313
    loop14  88,5M loop squashfs /snap/core/7270
    loop15  14,8M loop squashfs /snap/gnome-characters/367
    loop16     4M loop squashfs /snap/gnome-calculator/406
    loop17   217M loop squashfs /snap/atom/242
    loop18   4,2M loop squashfs /snap/gnome-calculator/544
    loop19   956K loop squashfs /snap/gnome-logs/81
    loop20   108M loop squashfs /snap/mc-installer/447
    loop21  65,9M loop squashfs /snap/discord/101
    loop22   3,7M loop squashfs /snap/gnome-system-monitor/111
    loop23 140,7M loop squashfs /snap/gnome-3-26-1604/98
    sda    465,8G disk          
    ├─sda1 448,8G part ext4     /home
    ├─sda2   300M part vfat     /boot/efi
    ├─sda3   128M part          
    └─sda5    16G part ntfs     
    sdb     14,6G disk          
    ├─sdb1   512M part vfat     
    └─sdb2  14,1G part ext4     /
    sdc    931,5G disk          
    └─sdc1 931,5G part ntfs     /media/klays/DISCO
    sr0     1024M rom           
    klays@klays:~$ getent passwd  klays
    klays:x:1000:1000:Tomás Barros,,,:/home/klays:/bin/bash
    klays@klays:~$
    Yes, the home directory has been moved.

  10. #10
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    1,567
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How to change the "HOME" dir to another disk

    so you have a very small old disk and a much larger new disk. i'd suggest doing a complete fresh new install on the new disk (then do dist-upgrade to bring it fully up to date). do not format the old disk, for obvious reasons. create all the old users as new users on the new disk. copy each home directory from old to new. copy the entire old disk raw, sector by sector, as a compressed image file on the new disk as an archival backup.
    What do you call someone who speaks 3 languages? Trilingual.
    What do you call someone who speaks 2 languages? Bilingual.
    What do you call someone who speaks 1 language? American.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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