Filesystem usage ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filesystem usage ?

Jump to solution
1,869 Views
karstenklein
Contributor I

Hi,

i´m currently working with the  SABRE board SDB from Freescale.

1) I prepared a SD-Card with 2GB for booting the Linux which comes as image, together with the MFG - Tool (kernel image, uBoot, and rootFS)

2) I prepared the internal eMMC which has a size of 8GB, with exactly the same images as used for the SD-Card

From my point of few, both, the SD Card and the eMMC are fomated in the same way (ext3).

For the eMMC 'df' gives me the following:

root@freescale /$ df -h

Filesystem                Size      Used Available Use% Mounted on

/dev/root                 7.3G    167.8M      6.7G   2% /

tmpfs                   438.0M     68.0K    437.9M   0% /dev

shm                     438.0M         0    438.0M   0% /dev/shm

rwfs                    512.0K    512.0K         0 100% /mnt/rwfs

rwfs                    512.0K    512.0K         0 100% /tmp

rwfs                    512.0K    512.0K         0 100% /var   

For the SD-Card  'df' gives me the following:

Filesystem            Size  Used Available Use% Mounted on
/dev/root             1.8G 57.8M  1.7G   3% /
tmpfs               438.0M 76.0K437.9M   0% /dev
shm                 438.0M     0438.0M   0% /dev/shm
rwfs                512.0K512.0K     0 100% /mnt/rwfs
rwfs                512.0K512.0K     0 100% /tmp
rwfs                512.0K512.0K     0 100% /var  

So, why are the used spaces different and why so big?

I expected the size of the rootFS should be something about 20MB.


I´m sure I am missing some fundamental items.

May be someone can shed up some light on my darkness.


Best regards

Karsten.


Labels (1)
0 Kudos
Reply
1 Solution
1,450 Views
EricNelson
Senior Contributor II

I'm not very familiar with the MFG tool, but it sounds as if the block size chosen when creating the eMMC partition was different from the SD card partition.

Karsten, can you run "du -hs" on each to see if the content size is significantly different?

You might also read through the mksdcard.sh script to see if it's passing different options to mkfs.ext3.

It would be odd if that were the case, because the default 1k block size can support filesystems up to 2 TiB.

View solution in original post

0 Kudos
Reply
4 Replies
1,450 Views
LeonardoSandova
Specialist I

For the eMMC partition sizes, check the script which does partition, it is under the Profile folder, on the MFG - Tool.

Leo

0 Kudos
Reply
1,450 Views
karstenklein
Contributor I

HI Leo,

thx for the quick reply.

As far as I can see, both use the same script for partitioning.

Its only the device parameter which is different:

_________________________________________________________

<LIST name="SabreSD-eMMC" desc="Choose eMMC Linux as media">

sh mksdcard.sh /dev/mmcblk0

......

_________________________________________________________

<LIST name="Sabre-SD" desc="Choose SD as media">

sh mksdcard.sh /dev/mmcblk1

Best regards

Karsten

0 Kudos
Reply
1,450 Views
karina_valencia
NXP Apps Support
NXP Apps Support

EricNelson are you available to help on this case?

0 Kudos
Reply
1,451 Views
EricNelson
Senior Contributor II

I'm not very familiar with the MFG tool, but it sounds as if the block size chosen when creating the eMMC partition was different from the SD card partition.

Karsten, can you run "du -hs" on each to see if the content size is significantly different?

You might also read through the mksdcard.sh script to see if it's passing different options to mkfs.ext3.

It would be odd if that were the case, because the default 1k block size can support filesystems up to 2 TiB.

0 Kudos
Reply