Skip to main content

Vergrößern der Festplattenpartition

Die Festplatte wurde in der Virtualisierung vergrößert, aber die Partion ist noch klein.

Ein umount funktioniert meist nicht.

Deshalb gleich parted für Festplatte starten

parted /dev/vda

Wenn es die erste Partion ist, dann resizepart 1, ansonsten z.B. 2 usw.

resizepart 1 100%
resize2fs /dev/vda1GNU Parted 3.6
Using /dev/vdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart 1 100%                                                
Warning: Not all of the space available to /dev/vdb appears to be used, you can fix the GPT to use all of the space (an extra 209715200 blocks)
or continue with the current setting? 
Fix/Ignore?
Fix                                                           
Partition number? 1                                                       
Warning: Partition /dev/vdb1 is being used. Are you sure you want to continue?
Yes/No?
No

 

quit

Dann resize2fs mit der Partion in der Bash

resize2fs /dev/vda1