From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 009011382C5 for ; Mon, 11 Jan 2021 00:31:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C904E0AAB; Mon, 11 Jan 2021 00:31:14 +0000 (UTC) Received: from mail145c7.megamailservers.com (mail775.megamailservers.com [69.49.98.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB015E0A81 for ; Mon, 11 Jan 2021 00:31:13 +0000 (UTC) X-Authenticated-User: admin@sys-concept.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.com; s=mailtor; t=1610325072; bh=YjXBw3AUdToRAXtcaCbHqe+nbyolGBqWTsk41sa+9xA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Hlg0IS2yJ4LLBQ8sKMudrMi5F333unGE3SSrpZWj9Gpb7RImoTyZAZJc0oBG3g1pY W0Qfa1PAk0m1GKqJkilBIAnMwpYhA20hOh1+C03dtEZI31pF5tIC07MEW53yNP9LGL +4CGBWmptACX8qCXQ8Bm0cY6uyVrCPPHt5nufsCU= Feedback-ID:thelma@sys-conc X-VIP: 69.49.109.100 Received: from [10.0.0.109] 184.69.242.18":"59058 ([184.69.242.18]) (authenticated bits=0) by mail145c7.megamailservers.com (8.14.9/8.13.1) with ESMTP id 10B0VAvS028331 for ; Sun, 10 Jan 2021 19:31:12 -0500 Subject: Re: [gentoo-user] resizing and moving home directory to new partition on save drive To: gentoo-user@lists.gentoo.org References: <0de4c60d-1889-3bae-eab7-64cd8279952e@youngman.org.uk> From: thelma@sys-concept.com Message-ID: <73566364-c791-ca4b-44e8-d348c5c410f4@sys-concept.com> Date: Sun, 10 Jan 2021 17:31:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <0de4c60d-1889-3bae-eab7-64cd8279952e@youngman.org.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CTCH-RefID: str=0001.0A742F24.5FFB9C50.0011:SCFSTAT54230205,ss=1,re=-4.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: -4.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=ap/M9hRV c=1 sm=1 tr=0 a=u3gW5Uk2xAGXuEgp5FffjQ==:117 a=u3gW5Uk2xAGXuEgp5FffjQ==:17 a=IkcTkHD0fZMA:10 a=046jbqsEAAAA:8 a=jyEwUxVwAAAA:8 a=_I48nDXI2672aJdbmsMA:9 a=QEXdDO2ut3YA:10 a=bGzDz6Hpkc7_N_b525It:22 a=pEy7BBIvYqu-eAYSb6N7:22 X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: 0 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedujedrvdehtddgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffquffvqffrkfetpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomhepthhhvghlmhgrsehshihsqdgtohhntggvphhtrdgtohhmnecuggftrfgrthhtvghrnhepiedthfdukefggeduheetgfekgeffjeehtddtjeeiteeuveduieekieevtefgteehnecuffhomhgrihhnpehhohhmvgdrohhrghenucfkphepudekgedrieelrddvgedvrddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedukeegrdeiledrvdegvddrudekpdhhvghloheplgdutddrtddrtddruddtlegnpdhmrghilhhfrhhomhepthhhvghlmhgrsehshihsqdgtohhntggvphhtrdgtohhmpdhrtghpthhtohepghgvnhhtohhoqdhushgvrheslhhishhtshdrghgvnhhtohhordhorhhg X-Origin-Country: CA X-Archives-Salt: 34fa7bd9-0168-43ea-a6aa-4a574b27abef X-Archives-Hash: 08295470958b6f860ed6199a4eecd551 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.