Extending a Partition or Filesystem in Linux without LVM

extending partition linux without lvm, linux extend non lvm partition, resize linux partition without lvm, extend non lvm root partition

We may come in a situation that running out of space in a virtual machine Linux guest OS which doesnt have LVM structures.

I’m going to take the example of a Linux guest under VMware Workstation though this should apply to most hypervisors and flavors of Linux.

If your guest VM is critical, we strongly recommended to take a backup to prevent the accidental damages.

We don’t have LVM, Our only option is to increase the size of the hard disk and then expand the partition containing the filesystem we wish to expand.

Consider the example that we have a disk of 5GB for a testing purpose it has some data. We will extend that partition to another 5GB. SO totally we will have a 10GB Partition finaly.


1. Ensure the disk number, size, cylinders and sectors of the disks to extend using the fdisk command as below.

In our example, our disk is /dev/sdb which has 5GB size, 10485760 Sectors and mounted in the directory /data

2. Extend the required size 10GB in Hypervisors such as vmware esx, vmware workstation and Microsoft Hyper-V before carrying out the activity.

3. Reboot the server and check again the disks detected using the fdisk command. Now we will see newly extended size as below screenshot.

4. Now extend the existing /dev/sdb1 partition to the end cylinder available as shown in the screenshot below.

Short description as shows in the above screenshot in steps,

a. fdisk /dev/sdb

b. p (to view partition details)

c. d (to delete the partition)

d. 1 (to select the second partition)

e. n (to create new partition) and select the partition type whether Primary or Extended Partition

f. 1 (to create it as partition 1)

g. Get the first block from the partition details earlier i.e. 2048. Enter this block as start value.

h. Press enter to accept the default as the last block.

i. p (to to list the partition and confirm)

Finally re-read the partition table (partprobe) and resize the extended partition  using the below command,

[root@server1 ~]# partprobe
[root@server1 ~]# resize2fs /dev/sdb1

Thats it. Hope let this helps someone, so please share.
extending partition linux without lvm, linux extend non lvm partition, resize linux partition without lvm, resize partition without lvm, resize root partition without lvm, extend non lvm root partition, how to extend root partition in linux without lvm, how to extend root partition in redhat linux
May 11, 2015

Post a Comment


Contact Form


Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget