Hi. I have a dual drive setup, where I put the home folder inside the HDD and the rest of the system in the SSD. I formatted my PC a few weeks ago and reinstalled Debian, and forgot to set up the home folder in the HDD before copying my files over from the backup. This resulted in an active home folder in the SSD, and an older home in the HDD, still formatted as an ext4 filesystem however.
I followed the steps here https://www.howtogeek.com/442101/how-to-move-your-linux-home-directory-to-another-hard-drive/
except for the part where they create and format the partitions and all that, since the folder, partition and filesystem were already in place.
I simply copied my SSD's home into the HDD, backing up the older home just in case, and then edited fstab with the last line as follows:
Now, the last line is currently commented, because when I reboot the system I can't get past the login screen. I just enter my password, it looks like it's logging in and then puts me right back in the login screen again.
My current solution to this is commenting the last line of fstab and then switching to a terminal and mounting the folder manually, with
and then I can log in as normal.
It is also worth noting that I know it's a mount problem because when switching to the terminal in tty2 I get a message saying there was a mount error and $HOME=/ will be used
What I don't understand is what I could be doing wrong with the fstab entry in my file, or if it's a different problem altogether that I'm not catching.
I followed the steps here https://www.howtogeek.com/442101/how-to-move-your-linux-home-directory-to-another-hard-drive/
except for the part where they create and format the partitions and all that, since the folder, partition and filesystem were already in place.
I simply copied my SSD's home into the HDD, backing up the older home just in case, and then edited fstab with the last line as follows:
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb3 during installation
UUID=6fee783a-1d86-431f-a994-30d72a2e190c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdb2 during installation
UUID=A744-AHD4 /boot/efi vfat umask=0077 0 1
# new home folder location
/dev/sda3 /home ext4 defaults 0 0
Now, the last line is currently commented, because when I reboot the system I can't get past the login screen. I just enter my password, it looks like it's logging in and then puts me right back in the login screen again.
My current solution to this is commenting the last line of fstab and then switching to a terminal and mounting the folder manually, with
Code:
sudo mount /dev/sda3 /home
It is also worth noting that I know it's a mount problem because when switching to the terminal in tty2 I get a message saying there was a mount error and $HOME=/ will be used
What I don't understand is what I could be doing wrong with the fstab entry in my file, or if it's a different problem altogether that I'm not catching.