-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
gptfdisk: update to 1.09.2 / fs_resize: improvements #7728
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
Conversation
Add simple logging to ease debugging of future errors
Latest release 1.0.9 is failing when using "sgdisk -e /dev/sdX"
I'd like to avoid writing a file that won't be used for the (hopefully vast) majority of users. Could the logfile be made to tmpfs and then copied to /flash on error? Something like one of: if $? -ne 0 after each step I don't know if the return value will be from the bash function running the spinner or the command it's executing. So maybe checking partition size before and after resize and saving logs if they match instead. Using parted should be something like:
To get size of the partition in bytes. #5096 has some code for that using blockdev (would need to be enabled in busybox) as an alternative. |
@antonlacon My intention was different. I kept the file system resize as black box for the user but added a small log file as flag for execution and developer information. This allow to even detect not fatal errors in the future. Maybe it is worth to be included into pastekodi. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested RPi3.
Excellent. Please post the fs-resize.log as reference for MSDOS/MBR partition scheme |
RPi3 fs-resize.log:
I'm curious how it's 9.1% non-contiguous on a new format. Guessing the SD card is showing its age. |
This should be in the image too (you can test with I'm more curious about the "8192 blocks" checked, should be 32768. |
Isn't 8192 blocks * 4k/block = 32 MB = STORAGE_SIZE=32 MB = 32768 kB ? |
Yes, but either in recent LE12 nighties it is 32768 * 1 kiB blocks. I've never seen something else. |
gtg ? |
IMO yes. Latest discussion is not related to this PR. |
Since update to 1.09
sgdisk -e /dev/<device>
is failing in fs_resize.The issue was reported in forum.
After add adding logging the error was visible.
There is no gptfdisk 1.09.2 source available on Sourceforge. To avoid issues with downloading from git the upstream patches are added.
To ease research on future errors the logging code is included in this PR, it only creates a short log on success:
Adding support for NVME devices (see installer) and improve error messages.