No letf space on T30

Hello;

I have installed Ubuntu 12.04 LTS by following the post of the developer site. After installing it I started to work, but surprisingly after sudo apt-get update and sudo apt-get install software-properties-common an error happened, no space left in device!

I am surprised because I looked the specifications of the T30 and it has 4GBMMC. I run the df -h command and I saw that there are a lot of partitions. The primary partition has 441MB and is full %100. There are also other partitions and they are free. So I have two questions:

Am I correct in that the Colibri T30 V1.1E has 4 GBMMC?

In this case can I resize the partitions to be possible install things?

Thanks.

You’ll need to resize your filesystem. On our BSPs we’re using this script:
http://git1.toradex.com/cgit/meta-toradex-bsp-common.git/tree/recipes-core/fs-init/files/resizefs.sh?h=morty-next

Thanks a lot, it looks fine!

Okey. I have run the script in my T30. I think that everything went well. After that this is my output. It is so far of 4GB. Can I expand more my memory or this is the max size? Thanks again.

ubuntu@ubuntu-armhf:~$ sudo ./resizefs.sh
[sudo] password for ubuntu:
expr: syntax error
resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: New size smaller than minimum (1806139)

resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
resize2fs: On-line shrinking not supported
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
resize2fs: On-line shrinking not supported
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
resize2fs: On-line shrinking not supported
resize2fs 1.42.9 (4-Feb-2014)
The filesystem is already 2007040 blocks long. Nothing to do!

./resizefs.sh: 50: ./resizefs.sh: systemctl: not found

Filesystem Size Used Avail Use% Mounted on
/dev/root 1.9G 1.7G 93M 95% /
devtmpfs 490M 4.0K 490M 1% /dev
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 98M 272K 98M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 490M 0 490M 0% /run/shm
none 100M 0 100M 0% /run/user

You probably need to adjust it for ubuntu, this script is custom made for our BSP.

Thabks for answering Dominik. Do you have any idea of what changes are needed? Thanks.

No idea about what must be modified?Thanks.

Am I correct in that the Colibri T30 V1.1E has 4 GBMMC?

Yes, as part of the V1.1E hardware revision we upgraded from 2GB to 4GB eMMC.

In this case can I resize the partitions to be possible install things?

Yes, using resize2fs e.g. as follows:

root@colibri-t30:~# resize2fs /dev/mmcblk0p2
resize2fs 1.43 (17-May-2016)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mmcblk0p2 to 436224 (4k) blocks.
The filesystem on /dev/mmcblk0p2 is now 436224 (4k) blocks long.