You are not logged in.
The laptop I use for work suffered a stroke and I was forced to re-install Lithium. I backed up important files, but had /home and root on different partitions, so during re-install I only formatted and installed on the smaller root partition and leaved the larger /home partition untouched.
Now that I'm back up and running, I wanted to ask what the best way to deprecate the current /home/user on /dev/sda1 would be and redirect everything to /home/user on /dev/sda6? I made a temporary mount point in /media for /dev/sda6 and can confirm the important docs and local environment settings for my browser are there and functional. If i leave anything trying to save to the /home folder on sda1 it will quickly fill the smaller partition.
Thanks as always for your help oh mighty linux power users.
Last edited by horo (2021-07-28 22:18:00)
Offline
Boot bunsenlab iso to live session.
Mount your root partition (sda1?)
Run command "lsblk -f" in a terminal as root.
Copy the UUID for your old home-partition (sda6).
Edit your fstab in your mounted root-partition (/mounted-sda1/etc/fstab)
Add entry for Home:
# /home is on /dev/sda6
UUID=[your-UUID-pasted-here] /home ext4 defaults 0 2
If you have another filesystem than ext4, change the above line.
Just for the sake of it, run fsck on your old unmounted home partition.
Was /home on your newly installed sda1 or did you create a new partion? if so, you have to delete that entry in fstab.
Reboot. Now you should have get sda6 mounted on /home.
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
Running fsck now and getting some errors, most appear related to data bases in Brave browser. How safe is it to follow fsck's default behavior on fixing an issue?
I did not create any new partitions on the re-install root and /home were generated on sda1
edit:
I just accepted all the default actions of fsck since the files shouldn't have been anything important. I'm now logged back in with /home in the correct place and getting various programs re-installed. Success!
When i run `apt-get install {someprogram}` that I have .configs for will my .configs get over written? Is there a flag to stop this behavior?
Last edited by horo (2021-07-27 22:44:46)
Offline
Edit your fstab
In a nutshell, that is the answer to your original question.
Running fsck now and getting some errors, most appear related to data bases in Brave browser. How safe is it to follow fsck's default behavior on fixing an issue?
Never without a data backup.
When i run `apt-get install {someprogram}` that I have .configs for will my .configs get over written? Is there a flag to stop this behavior?
No, and no.
PS: If you think the original problem is solved, please edit your first post to prepend [SOLVED] to the title.
Last edited by ohnonot (2021-07-28 07:05:11)
Offline
Everything seems to be working smoothly, thanks again for the support.
Offline