Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for obtaining bad block information of a hard disk

A technology for obtaining bad block information and a device, applied in the computer field, can solve problems such as data loss, failure to write hard disks to the file system, and failures of drives to read hard disks, etc., so as to improve availability and shorten the troubleshooting process

Inactive Publication Date: 2019-03-08
新疆凯力智慧电子科技有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] During the write operation, if an irreparable bad block is encountered (the hard disk bad block that cannot be repaired by the write operation is called an irreparable bad block), the ATA (Advanced Technology Attachment) driver will get the result of "write operation failed", but in When the write operation is in progress, the write operation of the file system has already ended, and the result of "write operation successful" has been obtained. In this regard, the operating system cannot feedback the result of writing to the hard disk to the file system, and the file system cannot know the irreparable damage of the hard disk. Block information, hard disk bad blocks will cause the drive to fail to read the hard disk, and when storing data, the stored data may not be stored in the hard disk, resulting in data loss

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for obtaining bad block information of a hard disk
  • A method and device for obtaining bad block information of a hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] refer to Figure 1-2 , a method for obtaining hard disk bad block information proposed by the present invention, the hard disk reading method comprises the following steps:

[0029] S401. Run an independent target buffer page in the user space of the operating system, and determine whether the content to be read in the hard disk is read to the target cache page in the operating system, and determine whether the content to be read in the hard disk is read to the operation The target cache page of the system is specifically;

[0030] S402. If the content to be read in the hard disk is read to the target cache page in the operating system buffer, set the page status parameter to the first Boolean value;

[0031] S403, judging the consistency between the content in the target buffer page and the content to be read in the hard disk; judging the consistency between the content in the target cache page and the content to be read in the hard disk;

[0032] S404. If the conten...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for obtaining bad block information of a hard disk, which relate to the computer technical field. The invention discloses the method for obtaining the bad block information of the hard disk, comprising running an independent target buffer page in user space of an operating system; if the contents to be read in the hard disk are read to the target cache page in the operating system buffer, establishing a communication channel between the user space and the kernel space of the operating system; if the latest indication bit of the target buffer page changes, determining that the reading content of the target buffer page fails, and judging whether the request of the target buffer page is a write request; if yes, using the kernel space to send the badposition of the request of the target buffer page to the target buffer page through the communication channel. The invention makes the result of writing the hard disk operation failure transferred from the kernel of the operating system to the file system, so that the file system can obtain the result of writing the hard disk operation failure, and shortens the processing flow of the hard disk bad block fault.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for acquiring bad block information of a hard disk. Background technique [0002] An operating system (English: operating system, abbreviated as OS) is a computer program that manages computer hardware and software resources, and is also the core and cornerstone of a computer system. The operating system needs to handle basic affairs such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input and output devices, operating the network, and managing file systems; the operating system also provides an operation interface for users to interact with the system; application programs Through the general read operating system call provided by the operating system (such as Linux and Windows, etc.), the hard disk data is read. Due to the existence of the operating system cache mechanism, the file system can...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07
CPCG06F11/0727G06F11/0745G06F11/0793
Inventor 阿卜杜海拜尔·阿卜力孜
Owner 新疆凯力智慧电子科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products