Skip to content

V2.2.1 - Online ext4 partition expansion fix#54

Merged
coelacant1 merged 1 commit into
mainfrom
testing
Apr 29, 2026
Merged

V2.2.1 - Online ext4 partition expansion fix#54
coelacant1 merged 1 commit into
mainfrom
testing

Conversation

@coelacant1
Copy link
Copy Markdown
Owner

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)

### 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)
@coelacant1 coelacant1 self-assigned this Apr 29, 2026
@coelacant1 coelacant1 added the bug Something isn't working label Apr 29, 2026
@coelacant1 coelacant1 merged commit cc2ce1a into main Apr 29, 2026
2 checks passed
@coelacant1 coelacant1 deleted the testing branch April 29, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant