Hi thanks everybody
After putting a fresh Ubuntu mate image on a SD I booted the Raspberry into Ubuntu.
After configuring the language computer name and password setup I went straight to the terminal and run ssh.
Using putty win 7 I have some how managed to expand the partition.
I followed the guide given at http://www.htpcbeginner.com/run-ubuntu-on-raspberry-pi-2-ubuntu-mate/
Copy of putty terminal screen below
"
me@me-desktop:~$ sudo fdisk /dev/mmcblk0
[sudo] password for me:
Welcome to fdisk (util-linux 2.26.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d,2
Partition number (1,2, default 2): p
Value out of range.
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): n,p,2
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (2-4, default 2):
First sector (133120-15728639, default 133120):
Last sector, +sectors or +size{K,M,G,T,P} (133120-15728639, default 15728639):
Created a new partition 2 of type ‘Linux’ and of size 7.4 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Then after a reboot
me@me-desktop:~$ sudo resize2fs /dev/mmcblk0p2
[sudo] password for me:
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mmcblk0p2 is now 1949440 (4k) blocks long.
The instructions give the impression to use commas for fdisk commands which does not seem correct.
(Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w).)
Well I have got my expanded partition but I would like to know how the fdisk commands should be correctly implemented?
regards albertstco1