Welcome to WebmasterWorld Guest from 18.206.168.65

Forum Moderators: bakedjake

Message Too Old, No Replies

problem resizing disk space (Ubuntu VM)

     
5:15 pm on Apr 11, 2015 (gmt 0)

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5812
votes: 157


I have a VM running Ubuntu and previously resized the disk space from 20G to 40G following this excellent guide [joomlaworks.net].

Several months later I am now trying to resize again- resized the VM to 80G, but I get the following message when trying to create a new partition in fdisk:
All primary partitions are in use
Adding logical partition 6
No free sectors available

Here is the list of partitions:
Disk /dev/sda: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders, total 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009b170

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 41940991 20719617 5 Extended
/dev/sda3 41940992 83886079 20972544 8e Linux LVM
/dev/sda4 499712 501757 1023 83 Linux
/dev/sda5 501760 41940991 20972544 8e Linux LVM

I'm not an Ubuntu guru and pretty much stumped at this point.
10:10 pm on Apr 23, 2015 (gmt 0)

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5812
votes: 157


Maybe I'm using the wrong terminology, but isn't it possible to extend a partition without creating a new partition?
8:27 am on Apr 24, 2015 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Aug 13, 2003
posts: 1053
votes: 3


Disk /dev/sda: 85.8 GB


It looks like the disk is 80GB+.

Are you using the command line from that guide you linked to? Have you tried using the GParted partition editor which I think is installed with Ubuntu by default. It is much easier than the command line.
3:59 pm on Apr 24, 2015 (gmt 0)

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5812
votes: 157


I should note that this is Ubuntu server and there is no GUI. So GParted won't run.