1 |
On 1/10/21 3:46 PM, antlists wrote: |
2 |
> On 10/01/2021 21:42, thelma@×××××××××××.com wrote: |
3 |
>> I want to move /home directory to a new partition (save drive). |
4 |
>> |
5 |
>> I have 1-SSD drive: |
6 |
>> Filesystem Size Used Avail Use% |
7 |
>> /dev/sda4 916G 405G 464G 47% / |
8 |
>> |
9 |
>> |
10 |
>> Home directory is on it taking about 360GB |
11 |
>> |
12 |
>> I was planning doing it in stages. |
13 |
>> |
14 |
>> Stage-1 |
15 |
>> Using Gparted to resize "/" portion shirk it to about 450GB |
16 |
>> create new ext4 partition for /home /dev/sda5 |
17 |
>> |
18 |
>> Boot-strap the PC with live-gentoo |
19 |
>> mv /home /home.org |
20 |
>> mkdir /home |
21 |
>> mount ext4 /dev/sda5 /home/ |
22 |
>> |
23 |
>> cp -rp /home.org/* /home/ |
24 |
>> |
25 |
>> edit fstab: |
26 |
>> /dev/sda5 /home ext4 default 0 0 |
27 |
>> reboot and test home |
28 |
>> |
29 |
>> Am I missing something? |
30 |
> |
31 |
> Couple of things. |
32 |
> |
33 |
> Firstly, why use a gentoo live disk? Just log in as root. |
34 |
> |
35 |
> Secondly, why rename home? Just mount sda5 on /mnt to do the move, then add it to fstab to mount on /home. |
36 |
> |
37 |
> And a little bit you might have missed - DON'T put root's home on a mounted disk - if it's currently in /home, move it to /. Don't forget to edit /etc/passwd if you have to move it. |
38 |
|
39 |
Can you elaborate pls.? |
40 |
My current "home" is in "/"; so why move it there, it is already there. |
41 |
I don't have extra disk around, but I could copy /home over network to another PC. |
42 |
|
43 |
I was planning to move "home" to another partition as I plan to wipe old installation (it is impossible for me to upgrade); it will be easier to reinstall. |
44 |
My old installation is: |
45 |
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r10, 4.9.72-gentoo x86_64) |
46 |
|
47 |
Since, old installation has home or "/" (root) partition, if I wipe the root, home will be gone as well. So I was planning on moving "home" to another partition, this way all data will be there. |
48 |
So, after moving "home" to another partition "sda5" I can wipe the "sda4" and re-install gentoo. "home" data would not be touched by upgrade. |