From 6bb2e435ea335df48abe081efb3cb901760e8a98 Mon Sep 17 00:00:00 2001 From: Reisber Date: Fri, 10 Apr 2026 19:25:54 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20NEBULA/resize=5Fof=5Fimage.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reisber --- NEBULA/resize_of_image.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 NEBULA/resize_of_image.md diff --git a/NEBULA/resize_of_image.md b/NEBULA/resize_of_image.md new file mode 100644 index 0000000..c2e2a11 --- /dev/null +++ b/NEBULA/resize_of_image.md @@ -0,0 +1,25 @@ +### После запуска ВМ( с уже изменнёным по размеру диску в небуле ) +Идём на саму ВМ +В ней +``` +swapoff -a +``` +Удаляем все разделы кроме / +``` +d #номер раздела +w + +``` +Потом, когда у нас остался только основной раздел +``` +apt install cloud-guest-utils -y +growpart /dev/sda № +resize2fs /dev/sda № +``` +И вернём SWAP +``` +fallocate -l 1G /swapfile +chmod 600 /swapfile +mkswap /swapfile +swapon /swapfile +``` \ No newline at end of file