Boot file system mounting method and apparatus
A file system and boot file technology, applied in the computer field, can solve the problems of occupying large flash memory, running memory, and resource consumption, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] This embodiment provides a method for mounting the boot file system, please refer to figure 1 , the method includes:
[0055] Step S101: Create a first file system, the first file system includes a readable and writable directory;
[0056] Step S102: Create a second file system, the second file system is a SquashFS file system, and generate an entire image that includes the first image file of the first file system and the second image file of the SquashFS file system;
[0057] Step S103: extracting the second image file from the entire image, and constructing a first association between the second image file and the pre-created loopback device of the first file system;
[0058] Step S104: According to the first association, mount the image file into the readable and writable directory, and construct a second association between the readable and writable directory and the loopback device;
[0059] Step S105: According to the second association, convert the readable an...
Embodiment 2
[0078] This embodiment provides a device for mounting a boot file system, please refer to image 3 , the device consists of:
[0079] Creating module 201, configured to create a first file system, the first file system includes a readable and writable directory;
[0080] The generation module 202 is used to create a second file system, the second file system is a SquashFS file system, and generates the entire image file containing the first image file of the first file system and the second image file of the SquashFS file system mirror image;
[0081] An extraction module 203, configured to extract the second image file from the entire image, and construct a first association between the second image file and the pre-created loopback device of the first file system;
[0082] Mounting module 204, configured to mount the loopback device into the readable and writable directory according to the first association, and construct a second association between the readable and writa...
Embodiment 3
[0092] See Figure 4 , the embodiment of the present invention provides a computer-readable storage medium 300, on which a computer program 311 is stored, and when the program is executed by a processor, the following steps are implemented:
[0093] Create a first file system, the first file system includes a readable and writable directory;
[0094] Create a second file system, the second file system is a SquashFS file system, and generate a whole image that includes the first image file of the first file system and the second image file of the SquashFS file system;
[0095] Extracting the second image file from the entire image, and constructing a first association between the second image file and the pre-created loopback device of the first file system;
[0096] According to the first association, mount the loopback device into the readable and writable directory, and construct a second association between the readable and writable directory and the loopback device;
[0...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com