For a raspberrypi image, mainly there are two partitions, kernel and rootfs. The size of kernel image is 6M. Rootfs is mounted on SD card and its value can be increased using gparted 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.
The details of sd card partions and its sizes can be found using "fdsik -l command"
root@raspberrypi-rdk-hybrid:~# fdisk -l Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type |
---|
Memory Usage
root@raspberrypi-rdk-hybrid:~# df -h |
---|
root@raspberrypi-rdk-hybrid:~# free -lh total used free shared buff/cache available Mem: 936M 571M 217M 26M 147M 311M Low: 936M 718M 217M High: 0B 0B 0B Swap: 0B 0B 0B root@raspberrypi-rdk-hybrid:~# |
---|
Boot memory 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
Size of tmpfs partition can be changed by using fstab.