Extend disk size of non LVM on Virtual Machine

Guys I ran in a difficult situation here.

I have a FBX system on Virtual Machine ESXI and it’s size is 24 GB but inside it’s not showing.

not able to extend the disk size as it’s running.

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00013a0c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 1208 9391104 83 Linux
/dev/sda3 1208 1306 786432 82 Linux swap / Solaris

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 300M 0 part /boot
├─sda2 8:2 0 9G 0 part /
└─sda3 8:3 0 768M 0 part [SWAP]

how to increase the size of the root. my system is down now.

Boot the sytem with a livecd iso image with gparted on it.

1 Like

if I follow this
https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount

do you think this will work or crash the system.

what do you mean by gparted on it.

It’s a distro update from 11 to 13

You cant ever safely resize an ext partition that is mounted, (my guess is that your previous post is probably above your paygrade).
So simply boot the machine into perhaps the bootable image at:-

https://gparted.org/livecd.php

You can then safely manipulate the partition table.

1 Like

dicko is right. You need to boot the system “offline” from a root&boot disk, then you can resize the partition and then reboot normally.

You can’t resize an active, mounted partition, especially one that the OS is running on.

You need a live boot CD or USB drive that you can boot off of, then run gparted to resize your partition. Make sure you have a backup / image first, of course.

not able to boot from this cd

Better to use a USB drive if your hardware supports usb booting as it is a hybrid i.e. the same image should boot from either, CD’s are very tempermental and sometime you need to burn them at very low speed.

Either way you need to do an md5sum on whatever you prepared and compare it with the image.

If all else fails , try another Live linux environment, mint,ubunti,archlinux,whatever, they all can run gparted , install it if needed.

1 Like

Did you
a) Follow the link dicko gave you: https://gparted.org/livecd.php
b) download the ISO
c) Use a tool such as Nero to burn the ISO to a CD, or RUFUS to burn the ISO to a USB stick
??

if you have enough space, from the working machine itself then a simple

dd if=(downloadedimage) of=/dev/(yourusbstick) bs=1M

will get you there, don’t screw up your (yourusbstick) though :wink:

md5sum /dev/(yourusbstick) should agree with md5sum (downloadedimage)

1 Like

in my case I am using a ESXI machine so I just uploaded the iso to recordstore and boot from the iso but not directed to GPARTED.

I don’t have that problem, I can assure you that it works :slight_smile:

You provide no other information as to what you DO GET, perhaps start with

try a little harder?
maybe read a FM or two?
maybe a photo or at least a sketch of what’s on your screen?

Perhaps you need professional help?

Did I totally miss the point that this was a VM?

a) Expand your datastore size in your VM (if you haven’t already)
b) Boot the VM from the gparted ISO, instead of from the normal boot drive.
c) Run GParted and expand the partition size to just below the size of your VM Datastore.

ok let me try this.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.