From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: Store on separate partition Date: Fri, 26 Aug 2016 00:04:38 +0200 Message-ID: <20160825220438.qbpqq3ihnpmgdhiz@venom> References: <7toa4iir1p.fsf@gmail.com> <87pooyy3zq.fsf@gmail.com> <7tfupuihaa.fsf@gmail.com> <20160825143037.hor76u6kysexqlhk@venom> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oli2caamlmwjvars" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bd2lR-0008DY-VF for guix-devel@gnu.org; Thu, 25 Aug 2016 18:04:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bd2lM-0005Z0-Ug for guix-devel@gnu.org; Thu, 25 Aug 2016 18:04:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:36321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bd2lM-0005Yw-Nu for guix-devel@gnu.org; Thu, 25 Aug 2016 18:04:40 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 01C9CAAF2 for ; Thu, 25 Aug 2016 22:04:39 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20160825143037.hor76u6kysexqlhk@venom> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --oli2caamlmwjvars Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 25, 2016 at 04:30:37PM +0200, Tom=C3=A1=C5=A1 =C4=8Cech wrote: >On Wed, Aug 24, 2016 at 12:37:49PM +0200, Carlos S=C3=A1nchez de La Lama w= rote: >>>>my (not very big) root partition is almost full, even after >>>>garbage-collecting. I am trying to move the store to a separate >>>>partition, but this is problematic as you need the store at boot time >>>>for the system utilities (and to mount partitions, actually). >>> >>>I tried to do it recently but failed. My understanding is that it's >>>impossible, but I may be wrong. >> >>After giving it some more thinking, I also think this is not >>possible. The kernel image itself is in the store (and must be, because >>you can have several system generations, each using a different >>kernel). Same with initrd images. >> >>I have finally moved the whole root to a bigger disk, not much different >>to moving the store as root size (aside from the store) is rather small. > >I think it is impossible now but to achieve that you'd need only: > >1] to store /gnu/store on separate partition (so grub will find it with it= s --search) >2] and have some bind mounts ready in initrd stage. > >It would be nice to have more flexibility in this area. According to https://www.gnu.org/software/guix/manual/guix.html#File-Systems it seems that 'bind-mount' is supported flag so together with 'needed-for-boot?' it should be doable. normal mount /dev/sdX --> /mnt/store-partition bind mount /mnt/store-partition/gnu --> /gnu grub should find your kernel and initrd with --search S_W --oli2caamlmwjvars Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXv2twAAoJEEoj40+gM0NtG6kP/2CaSs5Uo2qNWq+va8EekaV3 Nz+Gm67SzqL19cZDUD5dpiatST/zrjx67HRNj+hToJGaoLfFmKv8ToFrIxzY+bFF Q3wdfx+l5keLY03RIf0Jm6TX1pzgIU//3+f66Cp0mwysLb84YBhHDDsWLwdUsDEx xljVBYl7TDDVqojIJtFepIFU9HttjxEalZaQtmupVyjF35KZmUYAAUd4JemFBYFI KxR6zaKKlW5TGuZFySwY/sMx2F7LM7AO1Y/TD/CjXWYSor8+nu89tLmrVVKjSP+Z BqUntg74O9lC7NSyB7cX5Y2yRtCLF5QR3NDy8+45u0Lx19RaiVgitsSbs7bBFLyW P+YzVbxl8OHA3wFY2QwP9d2Nr53TqamjPU6EiXxR/lf7iCg1xRvytcXyMHX5DuH/ 77qqYxATYaNs4MzwQS/Zi++NMjbO2vlPgDMTNpHlRLYZBVRU1mRU25n1gy80vZZD BMh46rWRmnNM/ilqdbVoC/MX4OEpSyCIP4vSyXHmKMyKWIMgvPzeVSIiV1e3vLh+ WiAZi6Oa8nxI2cpggvuGSZXiwZfK9FDOsR376Cqo/DP0NVvfXnKAA8mEfbDKWV8J NYIgo2gnMiHZ4o80Z2xHofw1Eo6EIMv7qaCgqvipVoQF0KlVVo0FKbtUTWj5GeX9 sfZcp3VbVDMSHA0JK7M2 =JcWU -----END PGP SIGNATURE----- --oli2caamlmwjvars--