Solve the problem of insufficient linux root file system partitions
Source: Internet
Author: User
Solve the problem of insufficient linux root file system partition-Linux general technology-Linux technology and application information. The following is a detailed description. This article comes from the Chinese embedded Alliance: http://www.cn-emb.cn/viewthread.php? Tid = 41
Recently we made a set-top box project. After applications and related resources are packaged into the cramfs root file system, the Capacity Limit problem occurs when the corresponding partition of the flash root file system is burned, if the root file system exceeds 10 MB, it cannot be burned. I am not clear about any issues. As a result, we solve this problem by writing some resources in the file system to the other two file systems and writing them to the other two partitions.
1. Package applications and libraries into two file systems: file1.crmafs and file2.cramfs.
2. Modify the bootloader to add two partitions, partition5, partition6, and partition1 ~ 4. We do not need to install the cpu startup code, bootloader, kernel root file system, and so on.
3. Run file1.crmafs and file2.cramfs to partition5 partition6.
3. Operate the Development Board in minicom and enter the cat partitions file in the/etc/proc directory.
Mount/dev/mtdblock5/dir1
Mount/dev/mtdblock6/dir2
Dir1 and dir2 are the directories you want to mount
4. In this way, the resources of the other two partitions can be mounted. Is it good.
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