I have a:
- cloud instance
- remote server
- Virtual Machine
- ...
of Ubuntu to which I don't have physical access and I need to resize mounted partitions like /
that I cannot dismount!
All the tutorials / answers I can find on-line are telling me to boot a USB or a DVD or ... but I can't because I don't have physical access to Ubuntu!
What should I do??? Help!
Warning: The following does not work if you have
ssh
access to your server only! You need some kind of an Out of Band console session into your server like a cpanel console, vCenter, iLO, IDRAC, ...Warning in plain English: You need to be able to see
grub
when you boot into Ubuntu.The steps:
copy the downloaded file in
/opt/LiveISOs
edit
/etc/grub.d/40_custom
to include the following at the end:update grub's config:
Reboot to grub
Take menu option GParted Live ISO
Voilà: a virtual USB key has been inserted in your VM / headless server / ... virtually and you can now shrink / expand partitions off-line using
gparted
(or usinglvm
utilities from the command line!)Note: If using VMWare, you can also attach the ISO to the VM and boot the ISO through vCenter.