You are not logged in.

#1 2021-02-18 11:39:30

FCardelle
Member
Registered: 2021-01-18
Posts: 6

[SOLVED] Coming back to my old home

Hi. I have just reinstalled my system with Lithium. I selected to install all the system in one partition in my SSD. My previous /home is intact in another HDD. I want my previous /home to be my /home again.

I know that this can be done because I did it once in the past, and it was not difficult. But I can't remember the steps, and I can't find them in google.

Thanks.

Last edited by FCardelle (2021-02-20 11:46:31)

Offline

#2 2021-02-18 18:57:31

ohnonot
...again
Registered: 2015-09-29
Posts: 5,445
Website

Re: [SOLVED] Coming back to my old home

It's on another hard drive? Do you plan to install this hard drive in your current computer?
Then you can mount it under /home, after rearranging folders a bit.
Is the old home on a separate partition?

Be prepared to boot either into recovery or, better yet, boot from a live medium.


BL quote proposals to this thread please.

Offline

#3 2021-02-18 19:34:06

FCardelle
Member
Registered: 2021-01-18
Posts: 6

Re: [SOLVED] Coming back to my old home

I have a SSD, where I have installed Lithium, all in one partition, including /home.
I have my previous /home in a HDD. It is working now, I can access the files as root.
So yes, I have to mount my HDD as /home and make some rearrangements. It wasn't difficult, but I don't think I can do it without some help. I don't know what folders I have to copy from my current /home to my previous /home.

Offline

#4 2021-02-18 19:55:46

ohnonot
...again
Registered: 2015-09-29
Posts: 5,445
Website

Re: [SOLVED] Coming back to my old home

So, the HDD is in your computer anyhow.
Boot live, delete everything on that old Hdd except /home.
Assuming the username is fcardelle, move the fcardelle folder to the drive's root, so that /home becomes an empty directory that you can delete.
Now rename /home on your current system disk - the SSD you said. Just rename it to /home.old or something.
Now edit /etc/fstab on your current system disk, add a line like this:

UUID=nnnnnnnn-nnnn-nnnn-nnnnnnnnn       /home       ext4            rw,relatime     0 2

This is of course assuming the partition is formatted ext4.
It willmount the partition identified by the UUID on your system's /home
You also need to find out the partitions UUID - you can use

sudo blkid

to identify it.


BL quote proposals to this thread please.

Offline

#5 2021-02-19 05:54:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,909
Website

Re: [SOLVED] Coming back to my old home

Depending on the space available, it might be worth thinking of copying the data on the HDD home/ to the SSD, considering how much faster SSD access is.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#6 2021-02-19 14:04:37

ohnonot
...again
Registered: 2015-09-29
Posts: 5,445
Website

Re: [SOLVED] Coming back to my old home

^ um, yes of course.


BL quote proposals to this thread please.

Offline

#7 2021-02-20 00:22:21

FCardelle
Member
Registered: 2021-01-18
Posts: 6

Re: [SOLVED] Coming back to my old home

Great. That worked smoothly, like magic!

Offline

#8 2021-02-20 03:55:52

ohnonot
...again
Registered: 2015-09-29
Posts: 5,445
Website

Re: [SOLVED] Coming back to my old home

FCardelle wrote:

Great. That worked smoothly, like magic!

Please share your solution in full, then edit the title of your first post to include the word "[SOLVED]".
Others will benefit.


BL quote proposals to this thread please.

Offline

#9 2021-02-20 11:45:10

FCardelle
Member
Registered: 2021-01-18
Posts: 6

Re: [SOLVED] Coming back to my old home

OK. Feel free to edit my mistakes.

(1) I had a broken system with a SSD where Lithium was intended to be, and a HDD, my previous /home, with all my data, where my /home I wanted to be again.
(2) I installed Lithium in the SSD, all in one partition, from a USB stick.
(3) Copy and paste the whole folder from the new /home (in the SSD), in my case the fcardelle folder, over the previous fcardelle folder in the HDD, in order to keep in use the Lithium config files. Accept to replace all. (Back up the configurations you want to restore. I forgot to save my internet bookmarks, I think they are lost)
(4) Rename the /home in the SSD to /home.old
(5) Find out the UUID of the HDD with

sudo blkid

(6) Edit /etc/fstab on your current system disk, add a line like this:

UUID=nnnnnnnn-nnnn-nnnn-nnnnnnnnn       /home       ext4            rw,relatime     0 2

(7) Reboot. Done.

Offline

#10 2021-02-20 13:43:44

ohnonot
...again
Registered: 2015-09-29
Posts: 5,445
Website

Re: [SOLVED] Coming back to my old home

^ Great, thanks!


BL quote proposals to this thread please.

Offline

Board footer

Powered by FluxBB