Greetings Programs!
This is not my first rodeo with OpenWRT, however my first on a Raspberry Pi - in this case a 4 model B with 4 gigs of RAM.
I have configered the SBC to boot off an SATA SSD that is connected via USB. Because of this setup, I thought an ext4 image would be the best choice.
Because the SSD is slightly larger than the image, I want to expand it.
~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 98.3M 60.5M 35.8M 63% /
tmpfs 1.9G 1.3M 1.9G 0% /tmp
/dev/sda1 63.9M 19.0M 44.8M 30% /boot
tmpfs 512.0K 0 512.0K 0% /dev
~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 64M 0 part /boot
└─sda2 8:2 0 104M 0 part /
Hope I haven't bored you to death so far!
I thought, the easiest way to expand the fs would be to use gparted on my workstation. This is because of the installation guide [1]. There is only one sentence devoted to this:
You can use
gparted
to resize and extend the partitions.
I mainly use Garuda Linux there anyway, so gparted is installed by default. But I haven't gotten that to work for me. Due to the rather short mention of this option, I am not sure, it there is a step (or several) that I have missed.
When I resize the partition with gparted, the Pi will no longer boot from the SSD. It makes no difference, whether I resize the partition prio to booting for the first time (which never happens) or after the first boot. If I don't touch the partition, OpenWRT works just fine. This text is actually being routed through the Pi. Resizing the partition after the first boot has the same effect. It doesn't boot again. I have made sure that the UUID did not change (gparted leaves that alone during resizing).
I have to admit that I have never used the Pi with a monitor and I have found out that I even don't have a single HDMI cable. My workstation uses DP. Before I buy a cable to check on what the machine says during boot, I just wanted to check if you guys had an idea what I might try in the mean time.
Thanks for reading!
Regards,
Chris
[1] [Link to guide in OpenWRT Wiki] (https://openwrt.org/docs/guide-user/installation/installation_methods/sd_card#expanding_the_filesystem)