Skip to content

Instantly share code, notes, and snippets.

View hobeol's full-sized avatar

Holger Behmann hobeol

  • Germany
View GitHub Profile
@hobeol
hobeol / ubuntu-resize-rootfs.sh
Created February 21, 2026 08:47 — forked from ba0f3/ubuntu-resize-rootfs.sh
resize rootfs with out need of LiveCD (w/ or w/o LVM) - need to reboot once.
#!/bin/bash
#
# Resize root filesystem during boot.
#
# Alternative: http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml
# New size of root filesystem
ROOT_SIZE="100G"
# Check current filesystem type
Class AdvancedPing
{
hidden [string]$_packets
hidden [string]$_duration
hidden [string]$_hostName
hidden [string]$_ip
hidden [int]$_bytes = 64
hidden [int]$_ttl = 57
hidden [int]$_timeout = 120
hidden [int]$_interval = 1000
enum SyslogSeverity
{
Emergency = 0
Alert = 1
Critical = 2
Error = 3
Warning = 4
Notice = 5
Informational = 6
Debug = 7