Linux common File System production command __linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.