I've cloned and resized a disk image for VirtualBox but I can't find a way to use all the new space. this is how I started:
fdisk:
Disk /dev/sda: 80.5 GB, 80530636800 bytes
255 heads, 63 sectors/track, 9790 cylinders, total 157286400 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: 0x00034aae
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 41940991 20719617 5 Extended
/dev/sda5 501760 41940991 20719616 8e Linux LVM
lvdisplay:
--- Logical volume ---
LV Path /dev/localhost/root
LV Name root
VG Name localhost
LV UUID tbJqka-ZlYQ-nkq4-Cufz-Yl7t-peSL-z1FGpR
LV Write Access read/write
LV Creation host, time localhost, 2014-04-16 21:15:12 +0200
LV Status available
# open 1
LV Size 18.91 GiB
Current LE 4840
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/localhost/swap_1
LV Name swap_1
VG Name localhost
LV UUID 3yEDBL-Nc0G-QuVU-M9iR-Pe3u-r6E4-A5egVb
LV Write Access read/write
LV Creation host, time localhost, 2014-04-16 21:15:12 +0200
LV Status available
# open 2
LV Size 872.00 MiB
Current LE 218
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
so, I have now removed the sda2 partition and created a new one as following (this is after reboot):
Disk /dev/sda: 80.5 GB, 80530636800 bytes
255 heads, 63 sectors/track, 9790 cylinders, total 157286400 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: 0x00034aae
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 499712 157286399 78393344 5 Extended
/dev/sda5 501760 157286399 78392320 8e Linux LVM
so, what should I do now in order to increase the LVM group and then resize to 100%FREE?
thanks!