摘要 |
A method for restoring a booted system divides a flash memory in a device using an embedded Linux system into four blocks and saves a boot loader, a Linux kernel, a mini root file system and a user root file system of the embedded Linux system separately into each block and sets the block for storing the user root file system as a read/write block, and the rest of the blocks are set as read-only blocks. The mini root file system installs a detect program capable of detecting whether or not the user root file system is damaged, such that when the device is booted, the detect program will detect whether or not the user root file system is damaged first to determine to mount the user root file system or the mini root file system to the embedded Linux system.
|