Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-23-2017, 12:18 PM   #1
LQ Newbie
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
Regarding squashfs image size and rootfs size

Hi All,

We have 128 MB eMMC based NAND Flash which has squashfs based rootfs.
My device boots up and rootfs is mounted properly. I do not have any issue during booting.

# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=124856k,nr_inodes=31214,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)

#cat /proc/cmdline
root=/dev/mmcblk0p12 rootwait ro console=ttyS0,115200n8

# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8M 7.8M 0 100% /
devtmpfs 121.9M 4.0K 121.9M 0% /dev

#du -sh /
121.4 MB

Query :

1) Rootfs mounted in "/" directory and size of the Filesystem partition is 7.8 MB.

2) How does entire rootfs is 122 MB which is found using (du -sh / ) when /dev/root size 7.8M.

3) Does squashfs use virtual space while accessing I/O operation?

Please clarify my queries.

Old 11-26-2017, 04:01 AM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
It just means that much storage is reserved for rootfs.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Docker image size does not match the container size guna_pmk Linux - Virtualization and Cloud 2 06-26-2014 03:54 AM
Disk/physical size more than virtual size - qcow2 image toshko3 Linux - Virtualization and Cloud 12 12-18-2012 04:16 AM
How to reduce size of rootfs.jffs2 sumiram Linux - Software 0 01-28-2011 06:18 AM
[SOLVED] xsane reduces size of image of scanned page - how to get back to full size? taylorkh Linux - Software 7 11-12-2010 05:37 PM
rootfs 0 size left sjcoder Linux - Newbie 1 10-05-2009 01:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration