Go to advanced search

by rasp14
Tue Apr 09, 2024 2:14 am
Forum: Troubleshooting
Topic: Ran into multiple issues on netboot Pi, need some help.
Replies: 0
Views: 70

Ran into multiple issues on netboot Pi, need some help.

I managed to get a Raspberry Pi 4 to boot from my local network using dnsmasq and tftpboot. However, I encounter issues below: Not able to reboot/shutdown regardless of which command I use It will always end up getting stuck during stopping network.service and dhcpcd.service. Screen message below (1...
by rasp14
Mon Apr 08, 2024 3:34 am
Forum: Advanced users
Topic: Pi 4 Unable to Boot Bookworm Lite Image From Network
Replies: 5
Views: 331

Re: Pi 4 Unable to Boot Bookworm Lite Image From Network

Finally figured out the issue. It appears that these 2 lines are the one the causing the problem dhcp-range=eth0,192.168.25.3,192.168.25.10,1d dhcp-range=192.168.25.255,proxy If I remove the line with "proxy", then the whole thing worked. If you're like me that want to provide dhcp to just...
by rasp14
Fri Mar 22, 2024 1:30 am
Forum: Advanced users
Topic: Pi 4 Unable to Boot Bookworm Lite Image From Network
Replies: 5
Views: 331

Re: Pi 4 Unable to Boot Bookworm Lite Image From Network

So after some tests I figure out that dnsmasq might be the one that is causing the problem. I've read the boot log from other posts and it seems like DHCP request was sent but no response sent to client for some reason. If I manually set the network IP via CLIENT_IP in bootloader I can get the devic...
by rasp14
Thu Mar 21, 2024 7:37 am
Forum: Advanced users
Topic: Pi 4 Unable to Boot Bookworm Lite Image From Network
Replies: 5
Views: 331

Re: Pi 4 Unable to Boot Bookworm Lite Image From Network

I've enable BOOT_UART in bootloader to get more log from serial port to find out what could be the issue. Here is the produced log. I have no idea why it stopped after connect to TFTP. Any one familiar with this? RPi: BOOTLOADER release VERSION:8ba17717 DATE: 2023/01/11 TIME: 17:40:52 BOOTMODE: 0x06...
by rasp14
Thu Mar 21, 2024 6:26 am
Forum: Advanced users
Topic: Pi 4 Unable to Boot Bookworm Lite Image From Network
Replies: 5
Views: 331

Re: Pi 4 Unable to Boot Bookworm Lite Image From Network

Here's a working implementation: pxe-boot I compared your script and the instruction from official documentation, it seems like the difference is the official documentation didn't mention it require client's board serial number. Anyhow I modified my code to add in the last 8 digits of board serial ...
by rasp14
Wed Mar 20, 2024 3:31 pm
Forum: Advanced users
Topic: Pi 4 Unable to Boot Bookworm Lite Image From Network
Replies: 5
Views: 331

Pi 4 Unable to Boot Bookworm Lite Image From Network

I have configured a Pi 4 to boot from network first and boot from SD card last. Confirm it is working where boot screen TFTP logs appears and it boot from SD card afterwards it cannot boot from network. For PXE server I followed the official instruction from here . I already have a dnsmasq instance ...
by rasp14
Tue Mar 05, 2024 2:42 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

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). I understand it is far more easier to disable the auto SD card ...
by rasp14
Mon Mar 04, 2024 7:28 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

I run the code like below: chroot mnt /usr/sbin/update-initramfs -u Where mnt is where I mount my image file. However seems like it did nothing. SD card still expand to max size. In anticipation of your reply, I tested using image-chroot to modify the image file by commenting out the 'do_resize' li...
by rasp14
Mon Mar 04, 2024 6:34 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

How do I do that? I know chroot but not sure about the command to update initramfs. just take the very words you said, and add a dash! I run the code like below: chroot mnt /usr/sbin/update-initramfs -u Where mnt is where I mount my image file. However seems like it did nothing. SD card still expan...
by rasp14
Mon Mar 04, 2024 5:47 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

I did change the code in /usr/share/initramfs-tools/scripts/local-premount/firstboot by commenting the do_resize line ... It suppose to prevent auto resizing already but still it happened. Any idea? Do I have to comment out get_variables as well? Did you update initramfs in the image file? Doing so...
by rasp14
Mon Mar 04, 2024 5:12 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

What is the different between renaming the firstboot to first-boot and removing the init=/usr/lib/raspberrypi-sys-mods/firstboot from cmdline.txt? Both are suppose to prevent the execution of firstboot right? In Bookworm, auto-expansion is done by: /usr/share/initramfs-tools/scripts/local-premount/...
by rasp14
Mon Mar 04, 2024 4:54 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

What i did at the cmdline.txt was simply change from console=serial0,115200 console=tty1 root=PARTUUID=4e639091-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspberrypi-sys-mods/firstboot to console=serial0,115200 console=tty1 root=PARTUUID=4e639091-02 rootfstype=ext4 fsck.repair...
by rasp14
Mon Mar 04, 2024 4:43 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

sed -i 's|^\(\s*whiptail --infobox \"Resizing root filesystem.*\)$| return 0\n\n\1|' "${ROOTPATH}/usr/lib/raspberrypi-sys-mods/first-boot" &> /dev/null handles Bullseye, only disabling auto-resizing. Read my reply here to another user. Removing the firstboot from cmdline.txt didn...
by rasp14
Mon Mar 04, 2024 4:35 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

If you've done all the things you said in OP and it's still expanding the partition you either did something wrong or you've got gremlins. RonR's code works, as does sdm , which a) removes the init=[...]firstboot from cmdline.txt (this stops /usr/share/initramfs-tools/scripts/local-premount/firstbo...
by rasp14
Mon Mar 04, 2024 4:27 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

As mentioned in my original post, I've remove the line in cmdline.txt (manually) but it didn't work. I've also check the shell script in the post. Pretty sure the firstboot file already updated and the code no longer works. The operation where it resize the partition is no longer there. You should ...
by rasp14
Mon Mar 04, 2024 3:18 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

I've tried to stop the SD card from expanding during the first boot using latest bookworm image. I want to add in new custom partition myself after first boot. Disable Auto-Expansion As mentioned in my original post, I've remove the line in cmdline.txt (manually) but it didn't work. I've also check...
by rasp14
Mon Mar 04, 2024 2:26 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

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

What image are you using? Are you sure the partition is shrunk in the image otherwise its not the expanding that's fulling your SD card, it is the partition image. I'm using this image "2023-12-11-raspios-bookworm-arm64-lite.img.xz" from the Pi web site. There are only 2 partitions in the...
by rasp14
Mon Mar 04, 2024 2:06 am
Forum: Advanced users
Topic: Attempt to stop SD card from expanding during first boot (bookworm)
Replies: 24
Views: 567

Attempt to stop SD card from expanding during first boot (bookworm)

I've tried to stop the SD card from expanding during the first boot using latest bookworm image. I want to add in new custom partition myself after first boot. Before I plug in my sd card to Pi, I mounted the sd card to another Pi to edit the content of the sd card. What I tried so far Remove the pa...
by rasp14
Thu Feb 08, 2024 6:46 am
Forum: Advanced users
Topic: Openssh 9.5p1 on 32 bit OS Failed
Replies: 1
Views: 151

Openssh 9.5p1 on 32 bit OS Failed

I'm trying to compile and run openssh 9.5p1 on Pi4 32bit OS. I'm following the build instruction here . The source code is from here . The code is able to compile successfully and sshd is able to run without issue. The problem is when there is a client connect to the Pi, sshd will exit immediately w...
by rasp14
Tue Jan 02, 2024 11:36 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 138
Views: 49978

Re: Moving Linux Kernel to 6.6

PhilE wrote:
Tue Jan 02, 2024 7:48 am
Not while there is so much free space.
So what is the reason to increase boot partition to 500MB in the first place? Just curious.
by rasp14
Tue Jan 02, 2024 7:22 am
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 138
Views: 49978

Re: Moving Linux Kernel to 6.6

PhilE wrote:
Tue Dec 19, 2023 7:01 am
One thing to be aware of is the size of the boot partition, which has increased over the years.
Do you guys expect to increase the size of the boot partition content in the future? I see the content is still less than 100MB at the moment.
by rasp14
Wed Dec 13, 2023 2:54 pm
Forum: Networking and servers
Topic: Pi 4 SSD Taking Much More Space Than Expected
Replies: 3
Views: 1191

Re: Pi 4 SSD Taking Much More Space Than Expected

It isn't sector size. You're using 512 byte sectors anyway as the drive is emulating it. The -b option is for alignment as its bad when file system blocks straddle across multiple flash blocks. The problem is exFAT uses clusters as the smallest allocation block and it doesn't support tail packing. ...
by rasp14
Wed Dec 13, 2023 2:22 pm
Forum: Networking and servers
Topic: Pi 4 SSD Taking Much More Space Than Expected
Replies: 3
Views: 1191

Pi 4 SSD Taking Much More Space Than Expected

I've got a Pi 4 setup as a simple NAS for backup purpose. It is connected to a Crucial MX500 SSD with 465GB, formatted as exFAT and it is running with samba server. I've tried backup my stuff with size around 50GB through samba client. When the transfer complete, the size of my stuff increased to ar...
by rasp14
Wed Dec 13, 2023 2:05 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 138
Views: 49978

Re: Moving Linux Kernel to 6.6

A noob question here. Is there any improvement expected for NetworkManager side for new kernel? Specifically feature to enable user that is running in lite environment to encrypt/hash password for WPA enterprise connection? These don't sound like features handled by the kernel, so no they won't be ...
by rasp14
Wed Dec 13, 2023 1:55 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 6.6
Replies: 138
Views: 49978

Re: Moving Linux Kernel to 6.6

A noob question here. Is there any improvement expected for NetworkManager side for new kernel? Specifically feature to enable user that is running in lite environment to encrypt/hash password for WPA enterprise connection? I've made a post previously and seems like nobody have a concrete solution. ...

Go to advanced search