RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
For a raspberrypi image, mainly there are two partitions, kernel and rootfs. The size of kernel image size is 6M48M. Rootfs is mounted on SD card and its value can be increased using gparted,fdisk or similar tool. By default while flashing an image to SD card, two partitions are created, namely mmcblk0p1 and mmcblk0p2. rootfs image is stored in mmcblk0p2 whereas mmcblk0p1 holds boot information.
...
Component | Size |
---|---|
Kernel code | 9216K |
RW data | 737K |
RO data | 2928K |
init | 1024K |
BSS | 853K |
vmalloc | 1097K |
cma total | 262K |
KernelStack | 2536 kB |
Shmem | 14596 kB |
tmpfs | 95876k |
devtmpfs | 347800k |
Changing tmpfs partition size
...
The size of these partitions can be changed by changed by mentioning size in /etc/fstab. For example, we reduce size of /run to ~100M by mentioning size as below.
root@raspberrypi-rdk-hybrid:~# vi /etc/fstab /dev/root / auto defaults 1 0 # uncomment this if your device has a SD/MMC/Transflash slot /dev/mmcblk0p1 /boot vfat defaults 0 0 |
---|
The changed size can be verified using df command. The above change results in
root@raspberrypi-rdk-hybrid:~# df -h Filesystem Size Used Available Use% Mounted on /dev/root 865.5M 557.0M 247.0M 69% / devtmpfs 339.6M 0 339.6M 0% /dev tmpfs 468.1M 8.0K 468.1M 0% /dev/shm tmpfs 98.9M 8.8M 90.2M 9% /run tmpfs 468.1M 0 468.1M 0% /sys/fs/cgroup tmpfs 468.1M 6.6M 461.5M 1% /tmp tmpfs 468.1M 6.6M 461.5M 1% /etc/snmp/snmpd.conf tmpfs 468.1M 428.0K 467.7M 0% /var/volatile /dev/root 865.5M 557.0M 247.0M 69% /var/lib /dev/mmcblk0p1 48.5M 27.4M 21.0M 57% /boot tmpfs 93.6M 0 93.6M 0% /run/user/0 |
---|