From: thelma@sys-concept.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] resizing and moving home directory to new partition on save drive
Date: Sun, 10 Jan 2021 17:31:05 -0700 [thread overview]
Message-ID: <73566364-c791-ca4b-44e8-d348c5c410f4@sys-concept.com> (raw)
In-Reply-To: <0de4c60d-1889-3bae-eab7-64cd8279952e@youngman.org.uk>
On 1/10/21 3:46 PM, antlists wrote:
> On 10/01/2021 21:42, thelma@sys-concept.com wrote:
>> I want to move /home directory to a new partition (save drive).
>>
>> I have 1-SSD drive:
>> Filesystem Size Used Avail Use%
>> /dev/sda4 916G 405G 464G 47% /
>>
>>
>> Home directory is on it taking about 360GB
>>
>> I was planning doing it in stages.
>>
>> Stage-1
>> Using Gparted to resize "/" portion shirk it to about 450GB
>> create new ext4 partition for /home /dev/sda5
>>
>> Boot-strap the PC with live-gentoo
>> mv /home /home.org
>> mkdir /home
>> mount ext4 /dev/sda5 /home/
>>
>> cp -rp /home.org/* /home/
>>
>> edit fstab:
>> /dev/sda5 /home ext4 default 0 0
>> reboot and test home
>>
>> Am I missing something?
>
> Couple of things.
>
> Firstly, why use a gentoo live disk? Just log in as root.
>
> Secondly, why rename home? Just mount sda5 on /mnt to do the move, then add it to fstab to mount on /home.
>
> 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.
Can you elaborate pls.?
My current "home" is in "/"; so why move it there, it is already there.
I don't have extra disk around, but I could copy /home over network to another PC.
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.
My old installation is:
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)
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.
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.
next prev parent reply other threads:[~2021-01-11 0:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-10 21:42 [gentoo-user] resizing and moving home directory to new partition on save drive thelma
2021-01-10 22:46 ` antlists
2021-01-11 0:31 ` thelma [this message]
2021-01-11 1:57 ` Wols Lists
2021-01-11 1:33 ` thelma
2021-01-11 13:51 ` Neil Bothwick
2021-01-11 4:06 ` [gentoo-user] resizing and moving home directory to new partition on same drive thelma
2021-01-11 4:26 ` Adam Carter
2021-01-11 5:13 ` thelma
2021-01-11 8:41 ` Adam Carter
2021-01-11 7:58 ` Raffaele BELARDI
2021-01-11 11:30 ` Wols Lists
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=73566364-c791-ca4b-44e8-d348c5c410f4@sys-concept.com \
--to=thelma@sys-concept.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox