resize ubuntu root
發表於 : 2019-03-11 20:12:46
PVE
先在 PVE 關機後變更磁碟空間
開機進linux做
先在 PVE 關機後變更磁碟空間
代碼: 選擇全部
qm resize 121 scsi0 +192G
代碼: 選擇全部
root@u1804:/home/yehlu# parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart
Warning: Not all of the space available to /dev/sda appears to be used, you can
fix the GPT to use all of the space (an extra 167772160 blocks) or continue with
the current setting?
Fix/Ignore? Fix
Partition number? 2
Warning: Partition /dev/sda2 is being used. Are you sure you want to continue?
Yes/No? Yes
End? [85.9GB]? 160G
代碼: 選擇全部
resize2fs /dev/sda2