MFS root filesystem and static binaries size
Stanislav Zaharov
root.vagner at gmail.com
Tue Oct 16 18:13:10 UTC 2012
Hello,
I have a question regarding the mfsroot file system organization on
installation cd.
How is it possible that we have bigger binary files in ls list while actual
occupied space is less. But when we try to copy these files on similar
filesystem using cp or dd the actual used space is bigger?
For example when we mount mfsroot image we get:
$ df -h /mnt/
Filesystem Size Used Avail Capacity Mounted on
/dev/md0 3.9M 3.3M 534k 86% /mnt
$ ls -lhs /mnt/stand
...
766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 dhclient
766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 cpio
766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 camcontrol
766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 boot_crunch
...
But:
$ du -hc /mnt/stand
...
3,2M total
But if we copy these files onto another UFS filesystem we really consume
the space:
$ cp -a /mnt/stand /tmp/stand
$ du -hc /tmp/stand
...
91M total
How is it possible and why does it matter for mfsroot?
TIA
--
Respectfully,
Stanislav Putrya
System & network administrator
WWW: fotostrana.ru
WWW2: bsdway.ru
icq: 328585847
e-mail: root.vagner at gmail.com
e-mail: vagner at bsdway.ru
More information about the freebsd-questions
mailing list