Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

Advanced users • Re: Attempt to stop SD card from expanding during first boot (bookworm)

$
0
0
Do you mind to share what exact command you execute after comment out do_resize line?

Code:

1. image-chroot <pathto/image-file>2. nano /usr/share/initramfs-tools/scripts/local-premount/firstboot   # Comment out "do_resize"3. update-initramfs -u -k all4. exit
The attached image-no-expand script will disable auto-expansion in any Raspberry Pi OS image file using the original approach I pointed you to (which I feel is superior to the above as no chroot, nano, or update-initramfs is involved).

Usage is:

Code:

image-no-expand <pathto/image-file>
image-no-expand.zip

Statistics: Posted by RonR — Mon Mar 04, 2024 8:11 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles