pi@raspberrypi:~$ cd /tmp/a pi@raspberrypi:/tmp/a$ sudo chown pi . pi@raspberrypi:/tmp/a$ sftp brock@montreat.cs.unca.edu The authenticity of host 'montreat.cs.unca.edu (152.18.69.33)' can't be established. ECDSA key fingerprint is 19:b9:c9:f7:8b:a2:f6:8f:99:49:9f:fe:e8:ba:c3:0c. ................................................................ sftp> cd /csciloc/sysadmin sftp> ls -l drwxr-xr-x 2 uncacsci root 4096 Mar 30 21:28 images drwx------ 2 root root 16384 Mar 30 21:04 lost+found sftp> cd images sftp> ls -l -r--r--r-- 1 uncacsci uncacsci 7948206080 Mar 30 21:19 CCSCSE2014.img -r--r--r-- 1 uncacsci uncacsci 34359738368 Mar 30 21:28 CSCI331BIG.img -r--r--r-- 1 uncacsci uncacsci 1073741824 Mar 30 21:28 CSCI331MID.img -r--r--r-- 1 uncacsci uncacsci 33554432 Mar 30 21:28 CSCI331TNY.img -r--r--r-- 1 uncacsci uncacsci 1474560 Mar 30 21:28 FLOPPY.IMG sftp> get FLOPPY.IMG Fetching /csciloc/sysadmin/images/FLOPPY.IMG to FLOPPY.IMG /csciloc/sysadmin/images/FLOPPY.IMG 100% 1440KB 1.4MB/s 00:00 sftp> get CSCI331TNY.img Fetching /csciloc/sysadmin/images/CSCI331TNY.img to CSCI331TNY.img /csciloc/sysadmin/images/CSCI331TNY.img 100% 32MB 10.7MB/s 00:03 sftp> ^D pi@raspberrypi:/tmp/a$ cd /home/pi/ pi@raspberrypi:~$ df . df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 8191672 2643524 5165128 34% / pi@raspberrypi:~$ sftp brock@montreat.cs.unca.edu brock@montreat.cs.unca.edu's password: Connected to montreat.cs.unca.edu. sftp> cd /csciloc/sysadmin sftp> cd images sftp> ls CCSCSE2014.img CSCI331BIG.img CSCI331MID.img CSCI331TNY.img FLOPPY.IMG sftp> get CSCI331MID.img Fetching /csciloc/sysadmin/images/CSCI331MID.img to CSCI331MID.img /csciloc/sysadmin/images/CSCI331MID.img 100% 1024MB 7.5MB/s 02:16 sftp> ^D pi@raspberrypi:~$ ls -l CSCI331MID.img -rw-r--r-- 1 pi pi 1073741824 Mar 31 10:38 CSCI331MID.img pi@raspberrypi:~$ sudo apt-get install dc ................................................................ pi@raspberrypi:~$ dc 1073741824 512 / f 2097152 pi@raspberrypi:~$ sudo /sbin/fdisk /dev/mmcblk0 sudo /sbin/fdisk /dev/mmcblk0 Command (m for help): p Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes 4 heads, 16 sectors/track, 486192 cylinders, total 31116288 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 Disk identifier: 0x0009bf4f Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA) /dev/mmcblk0p2 122880 16900095 8388608 83 Linux /dev/mmcblk0p3 16900096 21094399 2097152 83 Linux /dev/mmcblk0p4 21094400 31116287 5010944 5 Extended Command (m for help): n All primary partitions are in use Adding logical partition 5 First sector (21096448-31116287, default 21096448): Using default value 21096448 Last sector, +sectors or +size{K,M,G} (21096448-31116287, default 31116287): +2097152 +2097152 Command (m for help): p Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes 4 heads, 16 sectors/track, 486192 cylinders, total 31116288 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 Disk identifier: 0x0009bf4f Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA) /dev/mmcblk0p2 122880 16900095 8388608 83 Linux /dev/mmcblk0p3 16900096 21094399 2097152 83 Linux /dev/mmcblk0p4 21094400 31116287 5010944 5 Extended /dev/mmcblk0p5 21096448 23193600 1048576+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: 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) Syncing disks. pi@raspberrypi:~$ exit exit