Hi zomtec,
No, the standard instructions will not work. The partition setup is different, I inherited this from the first original hpeter build for the zero, I have not got around to changing it to the standard setup.
Here is a step by step demo including the responses from the Pi:
fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.25.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/mmcblk0: 14.5 GiB, 15523119104 bytes, 30318592 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
Disklabel type: dos
Disk identifier: 0x417ee54b
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 186367 184320 90M c W95 FAT32 (LBA)
/dev/mmcblk0p2 186368 6477823 6291456 3G 5 Extended
/dev/mmcblk0p5 188416 6477823 6289408 3G 83 Linux
Command (m for help): d
Partition number (1,2,5, default 5): 5
Partition 5 has been deleted.
Command (m for help): d
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): e
Partition number (2-4, default 2): 2
First sector (186368-30318591, default 186368):
Last sector, +sectors or +size{K,M,G,T,P} (186368-30318591, default 30318591):
Created a new partition 2 of type 'Extended' and of size 14.4 GiB.
Command (m for help): n
Partition type
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): l
Adding logical partition 5
First sector (188416-30318591, default 188416):
Last sector, +sectors or +size{K,M,G,T,P} (188416-30318591, default 30318591):
Created a new partition 5 of type 'Linux' and of size 14.4 GiB.
Command (m for help): t
Partition number (1,2,5, default 5):
Hex code (type L to list all codes): 83
Changed type of partition 'Linux' to 'Linux'.
Command (m for help): p
Disk /dev/mmcblk0: 14.5 GiB, 15523119104 bytes, 30318592 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
Disklabel type: dos
Disk identifier: 0x417ee54b
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 186367 184320 90M c W95 FAT32 (LBA)
/dev/mmcblk0p2 186368 30318591 30132224 14.4G 5 Extended
/dev/mmcblk0p5 188416 30318591 30130176 14.4G 83 Linux
Command (m for help): w
Here are the commands you actually use after starting fdisk /dev/mmcblk0 :
p
d
5
d
2
n
e
2
<cr>
<cr>
n
l
<cr>
<cr>
t
5
83
p
w
Where <cr> is an enter.
To finish off you need to expand the file system with the commands:
partprobe /dev/mmcblk0
resize2fs /dev/mmcblk0p5
Check the results with:
parted -ls
df -h
It is possible that 'resize2fs /dev/mmcblk0p5' will fail, then you need to reboot and retry. It always works after the reboot.
janui