Increasing the size of an extended partition to allow the creation of a new partition
Hello there
I've got a server that needs more space. To achieve this we added space (by extending the VMware disk attached to it). Normally this isn't an issue, because we just add an new partition and LVM it from there, but this host predates our deployment of LVM everywhere. Thus i'm facing this issue: Code:
Command (m for help): p So what i believe the way forward is to extend sda4 so that i can then create an sda10 inside of it. Anyone have any ideas on how to do this? I was thinking gparted may do the trick ... but being a server i'm in runlevel3, with no X... Cheers chakkerz |
gparted wil certainly do it, but here's a trick using cfdisk.
Allocate a new logical to occupy all that space - that will extend the extended. Then delete the new logical. Tada ... |
Too easy.
So I: - installed cfdisk, - created a new partition using the unallocated space; - took the warning about dataloss serious (for once) and thus took a snapshot of the vm; - wrote the partition table to disk; - verified that what i wanted to see was happening using fdisk: Code:
[root@tangelo ~]# fdisk /dev/sda Code:
[root@tangelo ~]# ls /dev/sda* |
Didn't notice you were in Brisbane - I could have dropped in and done it for you.
|
too late now :) next time
|
All times are GMT -5. The time now is 05:41 PM. |