I'm ridiculously new to rpi and I've been following lots of tutorials in order to try to get face recognition working on my pi. I've run out of disk space and it seems that through following tons of tutorials, I've loaded up on junk.
I saw in another discussion on partitions that I can run a command to see mine. Here is what it shows.
pi@raspberrypi ~ $ sudo fdisk -l
Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes
4 heads, 16 sectors/track, 243200 cylinders, total 15564800 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: 0x000c27cb
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 1685546 838677+ e W95 FAT16 (LBA)
/dev/mmcblk0p2 1687552 15499263 6905856 85 Linux extended
/dev/mmcblk0p3 15499264 15564799 32768 83 Linux
/dev/mmcblk0p5 1695744 1818623 61440 c W95 FAT32 (LBA)
/dev/mmcblk0p6 1826816 15499263 6836224 83 Linux
Did I somehow get 5 partitions? How can I free up space?
EDIT: output of df -h
pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 6.3G 6.0G 25M 100% /
devtmpfs 428M 0 428M 0% /dev
tmpfs 87M 336K 86M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 173M 0 173M 0% /run/shm
/dev/mmcblk0p5 60M 20M 41M 33% /boot
/dev/mmcblk0p3 27M 397K 25M 2% /media/SETTINGS
du / |sort -n
first, what's eating up space, e.g. logs (if logrotate works not right) or the package manager's cache. Steve's commandline with the-sh
is better to do so. – Ghanima Jan 16 '16 at 21:56root
so you do have a little headway for the super user to fix things on that full root file-system - but operation for the normal pi and any other user will start to get weird (tab completion will fail, usingmore
orless
to page output may not work...) Once you start un-installing packages thedebophan
package can help to identify unused packages that are lying around - it'sorphaner
front end is easier to use - with a simulate package-removal to test things first. – SlySven Jan 18 '16 at 12:35