V2.2.1 - Online ext4 partition expansion fix#54
Merged
Merged
Conversation
### Fixed
- **ExpandEXT4Partition** - Resize now succeeds on mounted filesystems
- Previously parted's heredoc fed `Yes` to a `Fix/Ignore?` GPT-recovery prompt,
producing `parted: invalid token: Yes` and silently leaving the partition
unchanged while the script reported success
- Replaced parted heredoc with `sgdisk` delete + recreate at the same start
sector, preserving partition GUID, type code and name (mountpoint stays valid)
- Removed the `umount` step entirely; uses `partx -u` to refresh the kernel
view online and `resize2fs` to grow ext4 while mounted
- Added a `blockdev --getsize64` verification step that fails loudly if the
kernel does not see the new partition size before `resize2fs` runs
- Dropped the `parted` install dependency (no longer used)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed
Yesto aFix/Ignore?GPT-recovery prompt, producingparted: invalid token: Yesand silently leaving the partition unchanged while the script reported successsgdiskdelete + recreate at the same start sector, preserving partition GUID, type code and name (mountpoint stays valid)umountstep entirely; usespartx -uto refresh the kernel view online andresize2fsto grow ext4 while mountedblockdev --getsize64verification step that fails loudly if the kernel does not see the new partition size beforeresize2fsrunspartedinstall dependency (no longer used)