Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs_partition_resize failed on RPI4 (Bullseye image) #6900

Closed
1 task done
mschlenstedt opened this issue Feb 3, 2024 · 6 comments
Closed
1 task done

fs_partition_resize failed on RPI4 (Bullseye image) #6900

mschlenstedt opened this issue Feb 3, 2024 · 6 comments
Labels
Milestone

Comments

@mschlenstedt
Copy link

mschlenstedt commented Feb 3, 2024

Creating a bug report/issue

  • I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=0
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN

bullseye 0

  • Kernel version | uname -a

Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

RPi 4 Model B (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)

  • SD card used | (EG: SanDisk ultra)

16 GB Sandisk

Additional Information (if applicable)

Steps to reproduce

  1. Install latest image (bullseye)

Expected behaviour

Rootfs should be expanded to maximum size

Actual behaviour

The RootFS isn't resiszed during first boot. After initial setup, this is the state:

Try to manually resoze RootFS:

root@DietPi:~# /bin/dash -c '/var/lib/dietpi/services/fs_partition_resize.sh 2>&1 | tee -a /var/tmp/dietpi/logs/fs_partition_resize.log'
[ INFO ] Detected root drive /dev/mmcblk0 with root partition 2
[ INFO ] No DietPi setup partition found, last partition is: "ext4 "
lsblk: unknown column: MOUNTPOINTS

Partition table on the SD:

root@DietPi:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 14.84 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf8a5f4a0

Device         Boot  Start     End Sectors   Size Id Type
/dev/mmcblk0p1 *      2048  264191  262144   128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 1665903 1401712 684.4M 83 Linux

Free space:

root@DietPi:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       655M  615M     0 100% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           769M  8.6M  761M   2% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /tmp
tmpfs            50M  8.0K   50M   1% /var/log
/dev/mmcblk0p1  127M   33M   95M  26% /boot
@MichaIng MichaIng added this to the v9.1 milestone Feb 3, 2024
@MichaIng MichaIng added Solution available 🥂 Definite solution has been done Image update 💾 labels Feb 3, 2024
@MichaIng
Copy link
Owner

MichaIng commented Feb 3, 2024

Thanks. Was reported as well on the forum and fixed already: https://dietpi.com/forum/t/preventing-root-partition-resizing/19125

Fixed with: 9e63b8a

I need to generate new images. Did so already, but forgot that, with master branch code, I need to hack the fix into the images with the installer, until v9.1 has been released.

@mschlenstedt
Copy link
Author

@MichaIng Thanks! You are "the best" ;-)

@MichaIng
Copy link
Owner

MichaIng commented Feb 3, 2024

Builds running: https://github.com/MichaIng/DietPi/actions/runs/7760046902/job/21186064555

@Joulinar
Copy link
Collaborator

Joulinar commented Feb 3, 2024

@MichaIng If I understood correctly, you are building new Bullseye images for all platforms. Right?

Btw: @mschlenstedt how is LoxBerry migration to Bookworm going??

@mschlenstedt
Copy link
Author

Image from yesterday evening in testing works fine again - thanks!

https://dietpi.com/downloads/images/testing/DietPi_RPi-ARMv8-Bullseye.img.xz

root@DietPi:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 14.84 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6b5af6f3

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *      2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 31116287 30852096 14.7G 83 Linux

@MichaIng
Copy link
Owner

MichaIng commented Feb 4, 2024

Thanks for testing. I moved them to stable downloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants