1

Currently I have 350G size of disk. But 75G only used. I attached new additional disk 100G in GCP. I want to clone the 75G (boot and data) to new 100G to minimize cost.

What are the commands to be used?

  • 1
    Use GParted from Live USB to shrink source partition to <100GB. Use GParted to copy/paste source partition to new 100GB disk. Install GRUB2 bootloader to 100GB disk. Edit new /boot/grub/grub.cfg to suit UUID etc. – C.S.Cameron May 13 '21 at 12:55
  • can I do this even if my 350G is used as my boot system? – Jaymar Miralles May 13 '21 at 14:49
  • Use GParted from live USB** is the key. – ChanganAuto May 13 '21 at 15:35
  • You need to do the GParted work from a Live USB. You can't shrink a partition that you are booted from. – C.S.Cameron May 13 '21 at 15:35
  • If you tell me whether you boot in Legacy mode or UEFI mode, I will post a step by step answer, if legacy see: https://askubuntu.com/a/1338204/43926 – C.S.Cameron May 14 '21 at 09:53
  • So, I already manage to clone the disk by using weresync, but the 100G disk that I want to use as a boot disk in my VM instance (GCP) won't boot. – Jaymar Miralles May 15 '21 at 05:42

0 Answers0