Score:0

Clone only allocated space of ubuntu server vm

in flag

I need your help. I have ubuntu server on vmware ESXI and I need to clone not all disk but only allocated space. It looks like this: gparted lsblk fdisk enter image description here

enter image description here

enter image description here I need some space on new vmware host so I don't want to clone/import all existing disk.

guiverc avatar
cn flag
What OS & release? Your first picture shows a Debian logo, which is **not** what I see on my Ubuntu system.
Martinii avatar
in flag
Ubuntu server 22.04. First picture comes from gparted live cd.
Martinii avatar
in flag
When I try to resize disk (even by 1 GB) by editing VMDK file I'm getting: **Volume gropu "ubuntu-vg" not found. Cannot process volume group ubuntu-vg**
Score:0
in flag

Ok I did it!

  • I attached a new disk with 854GB capacity and partitioned it exactly like existing disk 931GB (of course without unallocated space);
  • from live CD I used dd command to clone partitions from existing disk to the new one;
  • from live CD I used gParted to flag first partition on the new (854GB) disk as "bios_grub"

and voila! Disk have 854GB capacity and system works!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.