Filesystem usage ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,910件の閲覧回数
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.


ラベル(1)
0 件の賞賛
返信
1 解決策
1,491件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
1,491件の閲覧回数
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 件の賞賛
返信
1,491件の閲覧回数
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 件の賞賛
返信
1,491件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

EricNelson are you available to help on this case?

0 件の賞賛
返信
1,492件の閲覧回数
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 件の賞賛
返信