Debian: re-partition 2Gb eMMC for a little more space?

Hello,
I have an old A5C board that I’m bringing up for a temperature logger. I flashed 4.1.13-ti-r38 last night, did the usual “apt-get update”, installed the Atheros firmware, configured the WiFi, and now I’m out of space. I can’t even use “apt-get remove” at this point. I’d like to keep the MMC as a removable device so I can grab the data once in a while, so putting the boot image is less desirable.

Is there anyway to re-partition the eMMC card so I can have some breathing room to remove some of the unneeded packages?

Here’s the stats:

`

root@beaglebone:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 98M 4.4M 94M 5% /run
/dev/mmcblk1p1 1.8G 1.8G 0 100% /
tmpfs 245M 0 245M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 245M 0 245M 0% /sys/fs/cgroup
/dev/mmcblk0p1 15G 24K 15G 1% /media/card
root@beaglebone:~#
root@beaglebone:~# fdisk -l

Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 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
Disklabel type: dos
Disk identifier: 0xfb28685a

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 31115263 31113216 14.9G c W95 FAT32 (LBA)

Disk /dev/mmcblk1: 1.8 GiB, 1920991232 bytes, 3751936 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: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 2048 3751935 3749888 1.8G 83 Linux

Disk /dev/mmcblk1boot1: 1 MiB, 1048576 bytes, 2048 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 /dev/mmcblk1boot0: 1 MiB, 1048576 bytes, 2048 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
root@beaglebone:~#
root@beaglebone:~#

`

Thank you fo the help,
–Tim

sudo apt-get clean

Otherwise, the A5C has only 2GB on the eMMC..

If your only doing a temperature logger, just grab the smaller
"console" image: (around 300MB-ish installed)

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Image_Testing_Snapshots

Regards,

I concur with Robert. If you’re just logging temperature, use a console image, and in fact, if you strip them down, you can get down to just above 100M with a reasonable amount of tools installed as well. ~160M including Nodejs, and express.

Ah darn it forgot to mention that in addition to apt-get clean, if you run apt-get autoremove you may also gain some space from removing packages that were installed as prerequisite for other packages, that may no longer be needed.