View Full Version : [ubuntu] resizing ext4 partitions

November 11th, 2009, 03:15 AM
Hopefully someone will advise with this please...

I have a four partition scheme on my hard drive.

The order is:

Mac OS Extended
Ext4 /
Ext4 /home

What I would like to do is shrink the Mac OS partition and somehow enlarge the ext4 /home partition. Is this possible? ):P

November 11th, 2009, 11:06 AM
You might want to post the output of sudo fdisk -l command to verify the order of your partitions. The way you described it, there are two other partitions between OSX and home, and if that's the case, they would need to be moved out of the way.

November 11th, 2009, 11:56 AM
Hi thanks for the reply. The output is:

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 1 26 204819+ ee GPT
/dev/sda2 * 26 9530 76340636 af HFS / HFS+
/dev/sda3 9530 10775 10000000+ 83 Linux
/dev/sda4 10775 11024 2000000+ 82 Linux swap / Solaris

November 11th, 2009, 05:04 PM
Is that all of the output? As you can see, sda3 is the only linux partition and sda4 is the swap. There is no partition after sda4, is there.

November 12th, 2009, 01:00 AM
There's something not right with the output of fdisk. I suppose it must be to do with "WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted." I didn't notice that at first ](*,)

Gparted reveals:

/dev/sda2 hfs+
/dev/sda3 ext4 /
/dev/sda4 linux swap
/dev/sda5 ext4