• 5 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: July 18th, 2023

help-circle



  • Old drive with current home directory = Drive A

    New drive I wish to use a home directory = Drive B, I gave it an extra file named confirm.txt

    I did have a root user account, I just didn't know how to boot into it

    The first time around I forgot to copy my old home folder into my new home folder, but now I know that wasn't the issue.

    After a bit of fiddling I decided to reinstall fedora.

    I tried to separate my / and /home from the fedora installer; for some reason fedora wouldn't let me. Any time I tried to set my /home on my 1TB drive fedora would place my / into said drive. Just to clarify I want my / and everything in it to stay in my 500GB nvme and my /home to be in my 1TB ssd.

    I just cut my loses and let fedora do it's usual install in Drive A. Drive B was left untouched.

    For the new install I decided to do some thing different

    In / I made two new partitions /new_home and /old_home

    I went into fstab and made both drives mount; Drive A mounted into /home and Drive B into /new_home

    I rebooted; Logged in as normal and Drive B successfully mounted

    From here I reversed it, Drive A into /old_home and Drive B into /home

    I rebooted; I entered into the KDE Login screen as usual. I typed my password correctly but after a short animation I was placed back into the login screen.

    I logged in as root and checked if everything mounted correctly. It did. From / my /home would place me into Drive B the one with confirm.txt. And Drive A was in /old_home

    So now I'm confused. Everything mounted properly but I still can't login with my account. I'm assuming this might be a KDE problem but I'd like your opinion.


  • OK so I tried the steps you detailed and now I cant login, I'm currently typing this from a Live Environment

    old home partition = partition A (nvme0n1p3)

    new drive/home partition = drive B (sda1)

    I formatted drive B following this tutorial link 1. I formatted it with the GPT table

    I then partitioned drive B using this tutorial link 2. Made it one large partition with ext4

    I then made 2 new directories /media/home_new and /media/home_old

    I mounted drive B to /media/home_new/

    I mounted partition A to /media/home_old/ (I think this was the problem)

    I then edited fstab to mount drive B as new home( I am absolutely sure I used the correct UUID)

    I typed in terminal "reboot"

    I arrived at the login screen, when I typed my password it accepted the password, the screen played an animation, it would then kick me back to the login screen. Any time I inputted my password correctly it would kick me back to the login screen after the animation.

    I'm kind of lost on how to salvage this. I understand I did something wrong but how do I fix this?

    *Update: I was able to log back in after changing the fstab back to the old partition

    But I'd still like to swap my home directories so where do I go from here



  • Thank you for answering.

    spoiler

    Just to be clear the AUR thing was just a typo, I meant to type arch wiki mb.

    I'd like to ask you some clarifying question.

    1. Linux uses the File System Hierarchy which Windows does not use. How do I keep my system organized while keeping to the FSH.

    2. This isn't really a question but my thoughts on your answer.

    I really like the command line. I enjoy using it more than GUIs, but I don't think the terminal should be pushed to the common user for mass adoption. Many of my friends don't own desktop computers, some don't own any other computer besides their phone. When I introduced them to my desktop, they were typing at less than 20 wpm with 2 fingers. No matter how great of a product Linux becomes in the future, It won't see mass adoption as long as

    A) non consumer friendly UX gets pushed and

    B) There is no marketing force behind it

    I really only learned of and got into Linux because SomeOrdinaryGamer and r/Unixporn. These were my first positive introductions to Linux. On my marketing point, Android, for example, has side loading, Fdroid, and lots of options for customizability, yet iOS is still the dominant market share and is continuing to grow.

    If Linux want true mass adoption then there must be a real effort to make the command line as optional as possible, or the linux community must start trying to appeal to the types of people that would give Linux a shot if they new it existed. Returning to SomeOrdinaryGamer, that man gets millions of views per month and I seriously doubt most of them are Linux users.