An algorithm for detecting the rationality of mbr content
A technology of rationality and content, which is applied in the field of detecting the rationality of MBR content, and can solve problems such as time and economic loss, system damage, and operating system startup failure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] The technical solution adopted by the algorithm for detecting the rationality of MBR content is to collect boot code samples (Linux / Windows / FreeBSD) of boot partitions of different operating systems in Legacy mode, form an MBR sample code pattern library, compile and integrate it into the main block area of the firmware file , in the pre-os stage, before the firmware transfers control to the OS boot code, it reads the contents of the boot partition of the boot device, uses a feature extraction algorithm to compare and detect these contents with the pattern library, and starts directly after the test is passed. Fail, fix or give diagnostic output to the console.
[0027] Such as figure 1 As shown, the algorithm for detecting the rationality of MBR content includes the following steps:
[0028] S1. Read the MBR content;
[0029] S2. Extract feature information;
[0030] S3. Using feature judgment in the MBR sample code library, if a partition of the GPT type is detec...
Embodiment 2
[0034] On the basis of Embodiment 1, step S1 reads in the MBR content: before the BIOS hands over control to the OS, that is, before the MBR is read and copied to the memory of 0000:7c00, and before jumping to the specified address, read Now the MBR contents of the disk.
[0035] S2. Extract feature information: parse the content of the 512-byte MBR and extract relevant features:
[0036] String features: Invalid partition table / Error loading operation system / Missing operation system are related to windows, while Grub is related to linux and so on.
[0037] Position feature: The position feature of Invalid partition table in mbr in mrb of windows can be found in the sample code library of mbr which version mbr this mbr belongs to. For example, the position of win7 / 8 starts from 0x163 and the position of winxp / 2000 starts from 0x12c starts.
[0038] Mode characteristics: The MBR in UEFI mode has the string ID of EFI PART, but the MBR in legacy mode does not.
[0039] Step S3...
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