Problem

Partition online mit parted vergrößern

Lösung

Quellen

https://www.edvnet-uk.com/partition-online-mit-parted-vergroessern/
https://wiki.ubuntuusers.de/GNU_Parted/

 

Ausgangssituation (Beispiel)

# df -h | grep /dev/sd

/dev/sda2 4,8G 4,2G 0,6G 87,5% /

 

# apt-get install parted

# parted

(parted) select /dev/sda

(parted) unit s  (… oder auch MiB, GiB, zwecks besserer Lesbarkeit)

(parted) print free

 

 

 

 

 

(parted) rm 3

(parted) print free

 

 

 

 

 

(parted) resize

Partition number? 2
Warning: Partition /dev/sda2 is being used. Are you sure you want to continue?
Yes/No? y
End? [13670399s]? 23435263s (… das Ende des Free Space)

(parted) print free

 

 

 

 

 

(parted) unit GiB (… oder auch MiB)

(parted) print free

 

 

 

 

 

(parted) q

 

Abschließend … !

# resize2fs /dev/sda2

 

# df -h | grep /dev/sd

/dev/sda2 9,0G 4,2G 4,4G 49% /