Bash script to expand a disk partition: Revision history

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

23 February 2026

  • curprev 17:0017:00, 23 February 2026Mflavell talk contribs 2,325 bytes +104 No edit summary
  • curprev 16:5916:59, 23 February 2026Mflavell talk contribs 2,221 bytes +2,221 Created page with "#!/bin/bash # Ensure root privileges if $EUID -ne 0 ; then echo "Error: This script must be run as root." exit 1 fi # Ensure growpart is installed if ! command -v growpart &> /dev/null; then echo "Installing required tools (cloud-guest-utils)..." apt-get update -qq && apt-get install -y cloud-guest-utils > /dev/null fi echo "---------------------------------------------------" echo " Available Partitions (Filesystems only)" echo "------------------..."