disk space expansion

Avi Greenbury lists at avi.co
Wed Feb 20 14:49:20 UTC 2013


Joep L. Blom wrote:
> I have only 1 primary partition of 100Mb (/dev/sda1) where /boot is
> mounted. Now as currently 100 MB for a boot sector is rather small I
> need to expand it. As you can see ,however, there is no room for
> continuous expansion as /dev/sda2 starts already 2048 sectors
> further.

The 'proper' way to do it is to have used LVM when you initially
partitioned the volume,  and create each partition as small as
practicable. You would then grow each to keep just abreast of current
usage. Logical volumes don't have the notion of contiguous free space
- you can assign any fraction of the unallocated space to any of the
volumes.

The way to do it when you're not using LVM (which you're not) is to
boot into a LiveCD of some sort and fire up a partition editor
(gparted is popular) and jiggle the volumes about to make space to
grow /dev/sda1 into, and then grow that into it.

This will take forever (overnight?) for a few-TB disk.

-- 
Avi




More information about the ubuntu-users mailing list