Record the previous development of the Linux file system, remember before in order to evaluate the superiority of the file system, in the use of busy to create a file system directory through a variety of file system tools to package the directory into various file system formats: Ramdisk, Cramfs, Ubifs, JFFS2 and so on.
The following record of previously used scripts, in fact, is quite simple. 1.cramfs
#! /bin/sh
echo "Create rfodncc_cramfs.img ..."
mkfs.cramfs-v/data/linux/ti-sdk5/filesystem/rfodncc_rootfs_ nfs//tftpboot/rfodncc_cramfs.img
echo "Create rootfs Finish"
echo "Created file Location '/tftpboot/rfodncc_ Cramfs.img ' "
The Mkfs.cramfs tools are included with the Linux PC in general.
2.JFFS2
#! /bin/sh
echo "Create JFFS2 rootfs"
mkfs.jffs2-lqnp–e 128-r/data/linux/ti-sdk5/filesystem/rfodncc_rootfs/-O /tftpboot/rfodncc_root_ubi.img
The MKFS.JFFS2 tools are included with the Linux PC in general.
3.ubifs
#! /bin/sh
if [-f/tftpboot/rfodncc_ubifs.img];
Then
echo "Delete temp file: '/tftpboot/rfodncc_ubifs.img '"
rm-rf/tftpboot/rfodncc_ubifs.img
fi
Create Ubifs Rootfs
echo "Goto the Mkfs.ubifs dirctory"
cd/data/tools/mtd-utils-d37fcc0/mkfs.ubifs/
Echo "Create rfodncc_ubifs.img ..."
/mkfs.ubifs-r/data/linux/ti-sdk5/filesystem/rfodncc_rootfs/-f-o/tftpboot/ Rfodncc_ubifs.img-m 2048-e 126976-c 1002
echo "Create rfodncc_ubifs.img Finish"
echo "Goto the Ubi-utils Dirc Tory "
cd/data/tools/mtd-utils-d37fcc0/ubi-utils/
echo" Create rfodncc_root_ubi.img using RFODNCC_ Ubifs.img ... "
#./ubinize-o/tftpboot/rfodncc_root_ubi.img-m 2048-p 128kib-s 512-o 2048 ubinize.cfg #with su Bpages
/ubinize-o/tftpboot/rfodncc_root_ubi.img-m 2048-p 128kib-o 2048 ubinize.cfg #without subpages< C18/>echo "Create rootfs Finish"
echo "Created file location '/tftpboot/rfodncc_root_ubi.img '"
Ubifs all aspects of performance will be superior to other formats of the file system, but the production of ubifs is also relatively complex, need to compile a set of tools (Mtd-utils), but also based on the storage size of the relevant parameters.