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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7817158041 for ; Wed, 3 Apr 2024 16:21:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 270A6E2A82; Wed, 3 Apr 2024 16:20:58 +0000 (UTC) Received: from tiger.tulip.relay.mailchannels.net (tiger.tulip.relay.mailchannels.net [23.83.218.248]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 66CDAE2A76 for ; Wed, 3 Apr 2024 16:20:57 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 55852361D84 for ; Wed, 3 Apr 2024 16:20:56 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1712161255; a=rsa-sha256; cv=none; b=yZfDxgB7XR1G6q+Vy4f1ael+ktN9yjzjA8Kxk+867BSV/R00izD7RP+rWtcDxrAAIjMwIv aadcGoE+vntTCWHyWsCYmygR3rfMhtDwskKVidp/QkGh0FVcJt8U6LHE8IGCpIPEuVNJce qVQ9t4JWtDcYbmlYtXqrBTR8cTYInBsticx6AUuAllOP0uLfcDpXzLvexaf5SgA9PIE9Wz qERM+wownDkDAueJZ5B7pOy+oJcUbUkoJiHIFUUc21zQ5NW7EOWwUOaNK1A7vG4G8Bz/Oz W29EHIWb7j3bTL+9XiPEQmdZRkjve1Hgu+QIm9fSwpNcZ5Vtte+BhdD45JDRMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1712161255; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=D+V8qkEotzWydURxkB/Vdv57r/RKwsEtD1mej64wWgo=; b=fys4u225K/gE8eKfSrA14eqMppLLoykJR7IcWj9mnDvHsh95qZyaUwdBQSy9EnolrrZ2ak WkVbI98i2F6p9MtTYlXxajf8fS4wvuyRcBD412o/HJBJZnO8PNRyNw/DWC6JSK1BbZZlou d7a9f0lqCm4/SRqapz6jAt4d/2wO1fud1pfkMHRQmcy9OxUCA6P+Z4paSL4ErjYeF7QdIT YANFAwz1ZKgsu0/TYQ0wk3D+j4VzKmHexdslH1N6J9I5+f6pG9va9MLUJh114DBZjumxvC CXS0K8IUBslnVO03ai8+//vs72/jJK8C5E9yyhxnf13Ydwf0iSGgo0ZicVl+Pw== ARC-Authentication-Results: i=1; rspamd-6457dc597-sm4dd; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Average-Bitter: 5452d7693eaa6939_1712161255758_1581418485 X-MC-Loop-Signature: 1712161255758:3709102216 X-MC-Ingress-Time: 1712161255758 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.118.191.224 (trex/6.9.2); Wed, 03 Apr 2024 16:20:55 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id D04EB401EF for ; Wed, 3 Apr 2024 17:20:49 +0100 (BST) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Resizing boot partition while dual-booting Date: Wed, 03 Apr 2024 17:20:21 +0100 Message-ID: <3310741.aeNJFYEL58@rogueboard> In-Reply-To: References: 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 Content-Type: multipart/signed; boundary="nextPart3317036.44csPzL39Z"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <171216124908.2628795.4125224601125600089@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Queue-Id: D04EB401EF X-Rspamd-Server: mailclean11 X-Spamd-Result: default: False [-1.61 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; ONCE_RECEIVED(0.10)[]; MX_GOOD(-0.01)[]; R_SPF_ALLOW(0.00)[+mx]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM(-0.00)[-0.737]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Rspamd-Action: no action X-Archives-Salt: 7d6543a2-bac7-4dc9-a139-2794cf022e27 X-Archives-Hash: 7229522e7c836d9e9e8d0ccfecc128a8 --nextPart3317036.44csPzL39Z Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Resizing boot partition while dual-booting Date: Wed, 03 Apr 2024 17:20:21 +0100 Message-ID: <3310741.aeNJFYEL58@rogueboard> MIME-Version: 1.0 On Wednesday, 3 April 2024 16:10:41 BST V=C3=ADt Smol=C3=ADk wrote: > Hello fellow Gentooers, >=20 > I want to dual-boot Gentoo and M$ Windows on my computer, but windows only > created a 100MB EFI partition. Is it necessary to resize it so my boot > files will fit? If so - how to resize it so I don't mess up my Windows EFI > files? 100M for boot should be enough. This is what I have on one PC here, where / mnt/Windows is the 100M EFI partition: ~ # du -s -h /mnt/Windows 68M /mnt/Windows ~ # du -s -h /mnt/Windows/EFI/* 1.9M /mnt/Windows/EFI/Boot 36M /mnt/Windows/EFI/Gentoo 27M /mnt/Windows/EFI/Microsoft 4.3M /mnt/Windows/EFI/ubuntu The /EFI/Gentoo directory has two kernels, but no initramfs (I don't use it= )=20 and I don't use GRUB either: ~ # ls -la /mnt/Windows/EFI/Gentoo/ total 36381 drwxr-xr-x 2 root root 2048 Jan 26 16:51 . drwxr-xr-x 6 root root 1024 Aug 2 2023 .. =2Drwxr-xr-x 1 root root 11743360 Dec 13 10:36 bootx64-6.1.67-gentoo.efi =2Drwxr-xr-x 1 root root 13105984 Feb 18 08:44 bootx64-6.6.13-gentoo.efi =2Drwxr-xr-x 1 root root 137161 Dec 13 10:36 config-6.1.67-gentoo =2Drwxr-xr-x 1 root root 140301 Feb 18 08:44 config-6.6.13-gentoo =2Drwxr-xr-x 1 root root 4615431 Dec 13 10:36 System.map-6.1.67-gentoo =2Drwxr-xr-x 1 root root 7504974 Feb 18 08:44 System.map-6.6.13-gentoo The /EFI/ubuntu directory has only the GRUB .efi executable in it, because = the=20 ubuntu distribution kernel and initramfs is installed in the ubunutu /=20 partition, not in EFI. If you really want to make the EFI partition larger you can use gparted to = do=20 this, but you have to be very careful. This is how I have done it whenever= I=20 needed to resize Windows partitions: 1. Boot into MSWindows and defragment the drive. Press Shift as you click = to=20 shutdown fully the MSWindows OS (to avoid hybrid hybernation). 2. Reboot with gparted Live USB, or with the Gentoo OS. 3. Unmount the EFI partition, if mounted and resize the C:\ drive to make i= t=20 smaller, in order to release enough space on the right of it, to be able to= =20 move it out of the way. Careful you *only* drag the right hand edge of the= C: \ partition when you shrink it, toward the left. 3. After you apply the changes move the C:\ partition to the right away fro= m=20 the EFI partition. 4. Apply the change and then resize the EFI partition to a desired size, e.= g.=20 500M. 5. Apply again and next move the C:\ partition to the left. 6. Apply and then resize the C:\ partition to enlarge it. Apply the last=20 change and you're done. NOTE: Do NOT delete any of the MSWindows partitions and do NOT attempt to=20 change their order. If in doubt ask. After you reboot into MSWindows, it will pop up a warning about the C:\ dri= ve=20 filesystem needing checking, click to accept the warning and wait until it= =20 finishes checking the filesystem. Enjoy your Gentoo! --nextPart3317036.44csPzL39Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmYNgcUACgkQseqq9sKV ZxlJaQ/+MyEK3ppQovNqf3H6C1PGgeuGigNZTJPLtjS5bqD20ALPcJVvE8ANUbHh xydS1kB4kvmpbZmEc+pg3tEtjZq24k9QJUylED8zopdNcqVV4Vz4+jAWwKcwcA3O mdqRrl9GI/cAADbWLCZXuQ1Rf0ynBqBdPsEw1lHbh091ze4gAxkkogkI/PjUXOQy Q5KvQcchO/xy3PqFNgTJQuiH1v7ATwpLvyT14uMJh94SwY1y/Gh1/eI9g/aYTf/l LOegTkSz7SNxTRgLi1UeLWiJ3NywtoqaKFWtxTErFpK/ySQvmyEIbqQNZTzgneS2 DjhBf1+TGhAnAlzsESPBPkM5Y4m1kVQhnlkCf27yVqXSvfq8Os7zz7lgOHMTzy75 MtItM3CKoVQsYck511TWoFAvxY9Kbd2NaI8Rl9aN+QBMFVf8nAadsimUt0fLITjW qqaK3FjGTVlWgO+dJBATvcLobwRLbpQZtNKsR6QZkQBPdBh7qsQlnB2l0akZdIH0 /EvHcIQvRyvBLlizA8kLlLUqYt5F3y2bp8L4NEXnwcDgxC3OW+AVYOrpejh2u0qP 9PZf+zVCGmrtH8P3nck8Gk6VX8yrFPyKC/HRzXjplOhjrEgE6n4iLPKuHlVFbW+j Fc0Tz474s1L57aSWID8RCg3pF/J4F71cpHIBJgDChc2E/3hfGV0= =U7ln -----END PGP SIGNATURE----- --nextPart3317036.44csPzL39Z--