Change /home to new drive

There is not much space left in my ssd, so How can I move my /home to my hdd?
I have 2 OS windows and clear linux in my ssd.

There is not much space left in my ssd, so How can I move my /home to my hdd?
I have 2 OS windows and clear linux in my ssd.

It is the same as others distros:

But can you tell us more regarding that HDD, so we can give you the
right instructions.

It is a new one?
It is a used with partitions?
You will use one new partition for your /home?
You will use an existing partition?

Describe more your expectations.

They all have solutions.

Screenshot%20from%202019-05-20%2003-31-18
Screenshot%20from%202019-05-20%2003-31-33

this is my setup
I want to move /home folder to partition 3 in hdd

the partition 3 in your image looks like is /dev/sda2, if not, just change the last number.

  1. format your partition
    sudo mkfs.ext4 /dev/sda2
  2. mount it in a temporary directory
    sudo mount /dev/sda2 /mnt
  3. copy your home directory to it
    sudo cp -a $HOME /mnt
  4. create the file /etc/fstab if it does not exist and add a new entry as:
#[Device]      [Mount Point] [File System Type] [Options] [Dump] [Pass]
/dev/sda2      /home         ext4              defaults   0       2
  1. `reboot

You new home will be at /dev/sda2

You old /home files still in your SSD, you can delete it by

  1. do not login in the graphical session
  2. switch to a linux terminal by hit Ctrl+Alt+F2 keys (at same time)
  3. log in as root
  4. unmount your current home
    umount /home
  5. remove your old directory from /home/, just be sure you are removing your home from the ssd and not from hda
  6. mount again your home
    mount /home

This is not the unique solution, there are others.

1 Like

After rebooting the system I can not access log in screen.
I stuck here

This is likely caused by nvidia driver.

yeah adding kernel parameter fix the problem

For future references, would you list the kernel parameter(s) you added?

I don’t know why this worked for me.
It varies with hardware, but the kernel parameters are
pci=noacpi
nouveau.modeset=0

Sorry for piggy-backing an old post, but I’m having a problems with something very similar. I’ve added a HDD, 500 GB to my tower, my primary is 1TB SSD, similar to the OP.
Any time I add a /etc/fstab I cannot successfully reboot. I’ve tried several variations of fstab, mainly I am adding the 500GB HDD as /mnt/storage . It is formatted as NTFS. My fstab is as follows;
#[Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]
/dev/sdb1 /mnt/storage ntfs defaults 0 2

Any comments or advice?