-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
DietPi-FS_partition_resize | Reboot once when partprobe failed #4582
Comments
Hi, Can you share following
|
Hmm:
So Probably we need to split those again, first partition resizing, if informing the kernel fails a reboot, then filesystem resizing. Or a flag file. I need to think about it for v7.5 🤔. Might be related to the (old) kernel of the NanoPi M2 in particular. That uses S5P4418 SoC, which is not supported by Armbian, so we still use an old (undeveloped) build from FriendlyARM. |
+ CHANGELOG | DietPi-FS_partition_resize: On first boot, DietPi automatically expands the root partition and filesystem to cover the full disk size. In some circumstances, e.g. on older kernel versions, it may happen that the two used commands "partprobe" and "partx -u" fail to inform the kernel about the changed partition table and hence the filesystem is not expanded. In such case, the system is now rebooted automatically once to assure that the new partition table is loaded and the filesystem is then expanded. This change affects only new images with contain DietPi v7.6 already, since this expansion is done before DietPi updates itself. Many thanks to @Dtrieb for reporting a case where the filesystem expansion failed: #4582
Done with: #4724 If either
|
+ DietPi-FS_partition_resize | Reboot to load new partition table if partprobe or partx fail + DietPi-FS_partition_resize | Append output to log file instead of overwriting it, since it may run twice now, when partprobe or partx failed on first boot + CHANGELOG | DietPi-FS_partition_resize: On first boot, DietPi automatically expands the root partition and filesystem to cover the full disk size. In some circumstances, e.g. on older kernel versions, it may happen that the two used commands "partprobe" and "partx -u" fail to inform the kernel about the changed partition table and hence the filesystem is not expanded. In such case, the system is now rebooted automatically once to assure that the new partition table is loaded and the filesystem is then expanded. This change affects only new images with contain DietPi v7.6 already, since this expansion is done before DietPi updates itself. Many thanks to @Dtrieb for reporting a case where the filesystem expansion failed: #4582
First Boot on Nano Pi 2 fails.
Get it solved with:
resize2fs /dev/mmcblk0p2
https://dietpi.com/phpbb/viewtopic.php?p=32324#p32324
The text was updated successfully, but these errors were encountered: