How to extract Cramfs files

Source: Internet
Author: User
Tags mkdir

Briefly, the Cramfs file is attached to the local system as a partition, and then it can be manipulated.

Suppose the file to be unzipped is Ljd2440-ii.cramfs
(1) Copy the Ljd2440-ii.cramfs to any directory
(2) Create two files in this directory:
mkdir ROMs
mkdir tmp
(3) Hook Ljd2440-ii.cramfs to the ROMs directory
Mount Ljd2440-ii.cramfs Roms–o Loop
(4) Compress the contents of the ROMs directory
TAR–CVF 1.tar ROMs
This will result in a 1.tar package at the top level of the ROMs directory.
60
(5) Unzip the package into the TMP directory.
Umount ROMs; unload mount
CD.; Go to the top level directory
MV 1.tar TMP;
CD tmp;
TAR–XVF 1.tar; Unzip the contents of the packaged root file system
RM 1.tar

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.