Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] resizing and moving home directory to new partition on save drive
Date: Sun, 10 Jan 2021 21:42:28
Message-Id: c25f22e2-739d-67a7-3cfb-9079970b3c6d@sys-concept.com
1 I want to move /home directory to a new partition (save drive).
2
3 I have 1-SSD drive:
4 Filesystem Size Used Avail Use%
5 /dev/sda4 916G 405G 464G 47% /
6
7
8 Home directory is on it taking about 360GB
9
10 I was planning doing it in stages.
11
12 Stage-1
13 Using Gparted to resize "/" portion shirk it to about 450GB
14 create new ext4 partition for /home /dev/sda5
15
16 Boot-strap the PC with live-gentoo
17 mv /home /home.org
18 mkdir /home
19 mount ext4 /dev/sda5 /home/
20
21 cp -rp /home.org/* /home/
22
23 edit fstab:
24 /dev/sda5 /home ext4 default 0 0
25 reboot and test home
26
27 Am I missing something?
28 If everything works, remove /home.org
29
30 Stage-2:
31 With Gparted resize both root and home portion, giving root about 200GB and rest to /home (dev/sda5)

Replies

Subject Author
Re: [gentoo-user] resizing and moving home directory to new partition on save drive antlists <antlists@××××××××××××.uk>