KR100640602B1 - Method for restoring data in disk drive - Google Patents

Method for restoring data in disk drive Download PDF

Info

Publication number
KR100640602B1
KR100640602B1 KR1020040101143A KR20040101143A KR100640602B1 KR 100640602 B1 KR100640602 B1 KR 100640602B1 KR 1020040101143 A KR1020040101143 A KR 1020040101143A KR 20040101143 A KR20040101143 A KR 20040101143A KR 100640602 B1 KR100640602 B1 KR 100640602B1
Authority
KR
South Korea
Prior art keywords
data
hdd
backup
zone
indication information
Prior art date
Application number
KR1020040101143A
Other languages
Korean (ko)
Other versions
KR20060062336A (en
Inventor
조승연
박종락
정승열
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020040101143A priority Critical patent/KR100640602B1/en
Publication of KR20060062336A publication Critical patent/KR20060062336A/en
Application granted granted Critical
Publication of KR100640602B1 publication Critical patent/KR100640602B1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • G11B20/1217Formatting, e.g. arrangement of data block or words on the record carriers on discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • G11B20/1217Formatting, e.g. arrangement of data block or words on the record carriers on discs
    • G11B2020/1218Formatting, e.g. arrangement of data block or words on the record carriers on discs wherein the formatting concerns a specific area of the disc
    • G11B2020/1241Formatting, e.g. arrangement of data block or words on the record carriers on discs wherein the formatting concerns a specific area of the disc user area, i.e. the area of a disc where user data are to be recorded

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

디스크 드라이브의 데이터 복구 방법이 개시된다. 본 발명에 따른 데이터 복구 방법은 디스크에 기록된 데이터를 데이터 구역 내에 백업하는 과정, 기록 데이터의 위치 표시 정보 및 상기 백업 데이터의 위치 표시 정보를 시스템 구역 내에 저장하고 백업 데이터의 크기를 바탕으로 하드 디스크 드라이브의 논리 블록 주소 최대값을 감소시키는 과정 및 기록 데이터 손상시 저장된 위치 표시 정보를 바탕으로 백업 데이터가 위치한 영역의 데이터를 기록 데이터가 위치한 영역으로 복구하는 과정을 포함한다. 본 발명에 의하면, HDD 이외의 별도 저장 매체 및 부팅 과정 없이도 HDD의 데이터를 복구할 수 있다. Disclosed is a data recovery method of a disk drive. In the data recovery method according to the present invention, a process of backing up data recorded on a disk in a data zone, storing position indication information of recorded data and position indication information of the backup data in a system zone, and storing a hard disk based on the size of the backup data Reducing the maximum logical block address of the drive and restoring the data of the area where the backup data is located to the area where the record data is located based on the stored position indication information when the record data is damaged. According to the present invention, the data of the HDD can be recovered without a separate storage medium and booting process other than the HDD.

Description

디스크 드라이브의 데이터 복구 방법{Method for restoring data in disk drive}{Method for restoring data in disk drive}

도1은 일반적인 하드 디스크 드라이브의 평면도이다.1 is a plan view of a typical hard disk drive.

도2는 도1의 디스크 표면을 분할한 개략도이다.FIG. 2 is a schematic diagram dividing the disk surface of FIG.

도3는 본 발명의 일 실시예에 따른 데이터 복구 방법에서 데이터 백업 과정의 흐름도이다. 3 is a flowchart of a data backup process in a data recovery method according to an embodiment of the present invention.

도4는 본 발명의 일 실시예에 따른 데이터 복구 방법에서 데이터 복구 과정의 흐름도이다. 4 is a flowchart of a data recovery process in a data recovery method according to an embodiment of the present invention.

본 발명은 디스크 드라이브에 관한 것으로서, 보다 상세하게는 디스크 드라이브의 데이터 복구 방법에 관한 것이다. The present invention relates to a disk drive, and more particularly, to a data recovery method of a disk drive.

일반적으로, 하드 디스크 드라이브(이하, HDD)는 PC 등의 컴퓨터 시스템에서 보조기억장치로 사용된다. HDD를 사용하는 과정에서 HDD에 저장된 데이터가 사용자의 의지와 무관하게 삭제, 변경, 자동 실행되는 등의 이상이 발생할 수 있다. 이러한 경우는 예를 들어 바이러스의 공격 또는 OS의 이상 동작 등에 기인한다. Generally, hard disk drives (hereinafter, HDDs) are used as auxiliary storage devices in computer systems such as PCs. In the process of using the HDD, data stored in the HDD may be deleted, changed, or automatically executed regardless of the user's intention. Such a case is caused, for example, by a virus attack or abnormal operation of the OS.

이러한 경우가 발생하면 HDD를 사용하는 PC에서 에러가 발생한다. 그러면 사용자는 이를 치유하기 위하여 HDD의 데이터를 모두 복구해야 하는 불편을 겪는다. 예를 들어, 사용자는 하드 디스크를 포맷하고 OS(Operating System), 각종 드라이버 및 각종 초기 프로그램들을 하나하나 새로 설치해야하는 불편을 겪는다. When this happens, an error occurs on the PC using the HDD. The user is then inconvenient to recover all the data on the HDD in order to heal it. For example, a user may have to format a hard disk and newly install an operating system (OS), various drivers, and various initial programs one by one.

종래에는 이러한 불편을 해소하기 위하여 먼저 응용 프로그램을 이용하여 저장하고자 하는 데이터의 이미지를 플로피 디스크 또는 CD 등에 미리 복사해 놓는다. 그리고 HDD의 데이터를 복구해야할 필요가 생기면 해당 응용 프로그램을 이용하여 해당 이미지를 일정 영역에 복사함으로써 HDD의 데이터를 복구하였다. Conventionally, in order to alleviate this inconvenience, an image of data to be stored using an application program is first copied to a floppy disk or CD. When the data of the HDD needs to be recovered, the data of the HDD was restored by copying the image to a predetermined area using the corresponding application program.

그러나, 이러한 방법은 응용 프로그램, 플로피 디스크 또는 CD 등의 매체가 반드시 필요하고, 이러한 매체를 이용하여 PC를 부팅시켜야만 한다는 문제점이 있다. However, this method has a problem in that a medium such as an application program, a floppy disk, or a CD is required, and a PC must be booted using the medium.

한편, 종래에는 시스템 복구 CD를 사용하여 HDD의 데이터를 복구하는 방법도 있다. 시스템 복구 CD는 PC가 OS 및 주변 장치의 드라이버 셋팅이 완료된 상태로 판매되는 경우 함께 제공된다. 그리고, PC에 이상이 발생하면 시스템 복구 CD를 구동하고 CD의 데이터를 HDD 내부로 복사함으로써 HDD의 데이터를 판매 당시의 상태로 복구한다. On the other hand, conventionally, there is also a method for recovering the data of the HDD using a system recovery CD. A system recovery CD is provided if your PC is sold with the driver settings for the OS and peripherals complete. And, if an error occurs in the PC, drive the system recovery CD and copy the data of the CD into the HDD to restore the data of the HDD to the state at the time of sale.

그러나, 시스템 복구 CD를 분실할 경우 HDD의 데이터를 복구하는 데 어려움을 겪게 된다는 문제점이 있다. However, when the system recovery CD is lost, there is a problem that it is difficult to recover the data of the HDD.

본 발명이 이루고자 하는 기술적 과제는 디스크 드라이브의 데이터 복구 방 법에 있어서, 기록 데이터를 디스크 드라이브 내에 백업함으로써 별도의 저장 매체 없이도 디스크 드라이브의 데이터를 복구할 수 있는 데이터 복구 방법을 제공하는 데 있다. An object of the present invention is to provide a data recovery method for recovering data of a disk drive without a separate storage medium by backing up recording data in the disk drive in a method of data recovery of a disk drive.

상기의 기술적 과제를 달성하기 위한 본 발명의 일 실시예에 따른 데이터 복구 방법은, 사용자 접근이 허용되는 데이터 구역과 사용자 접근이 금지되는 시스템 구역으로 분할된 디스크를 구비한 디스크 드라이브에서 데이터 복구 방법에 있어서, 상기 디스크에 기록된 데이터를 상기 데이터 구역 내에 백업하는 과정, 상기 기록 데이터의 위치 표시 정보 및 상기 백업 데이터의 위치 표시 정보를 상기 시스템 구역 내에 저장하고 상기 백업 데이터의 크기를 바탕으로 상기 하드 디스크 드라이브의 논리 블록 주소 최대값을 감소시키는 과정 및 상기 기록 데이터 손상시 상기 저장된 위치 표시 정보를 바탕으로 상기 백업 데이터가 위치한 영역의 데이터를 상기 기록 데이터가 위치한 영역으로 복구하는 과정을 포함한다. The data recovery method according to an embodiment of the present invention for achieving the above technical problem is a data recovery method in a disk drive having a disk partitioned into a data zone for which user access is allowed and a system zone for which user access is prohibited. And backing up the data recorded on the disk in the data zone, storing the position indication information of the record data and the position indication information of the backup data in the system zone and based on the size of the backup data. Reducing a maximum logical block address of a drive and restoring data of an area where the backup data is located to an area where the write data is located based on the stored position indication information when the write data is damaged.

이하 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 설명하기로 한다. Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings.

도1은 일반적인 하드 디스크 드라이브(100)의 평면도이다. 도1을 참조하면, 하드 디스크 드라이브(100)는 스핀들 모터(spindle motor)(104)에 의해 회전되는 하나 또는 그 이상의 자기 디스크들(102)을 포함할 수 있다. 1 is a plan view of a typical hard disk drive 100. Referring to FIG. 1, hard disk drive 100 may include one or more magnetic disks 102 that are rotated by a spindle motor 104.

스핀들 모터(104)는 디스크 드라이브(100)의 베이스 플레이트(base plate)(106)에 장착될 수 있다. 디스크 드라이브(100)는 디스크들(102)을 싸는 커 버(108)를 더 포함할 수 있다. Spindle motor 104 may be mounted to a base plate 106 of disk drive 100. The disk drive 100 may further include a cover 108 that wraps the disks 102.

디스크 드라이브(100)는 복수의 헤드들(110)을 포함할 수 있다. 각 헤드(110)는 회전 디스크(102)에 인접하여 위치한다. 각 헤드(110)는 디스크들(102)의 자기장들을 자화하고 감지하는 분리된 기록 및 판독 소자들(둘 다 미도시)을 구비할 수 있다. The disk drive 100 may include a plurality of heads 110. Each head 110 is located adjacent to the rotating disk 102. Each head 110 may have separate write and read elements (both not shown) that magnetize and sense the magnetic fields of the disks 102.

각 헤드(110)는 플렉슈어(flexure)(112)에 장착되어 헤드 짐벌 어셈블리(Head Gimbal Assembly: HGA)를 형성하여 수평이 유지될 수 있다. 플렉슈어(112)는 액튜에이터 암(actuator arm)(114)에 부착되고, 액튜에이터 암(114)은 베어링 어셈블리(116)에 의해 베이스 플레이트(106)에 회전 가능하게 장착된다. Each head 110 may be mounted on a flexure 112 to form a head gimbal assembly (HGA) to be horizontal. The flexure 112 is attached to an actuator arm 114, and the actuator arm 114 is rotatably mounted to the base plate 106 by a bearing assembly 116.

보이스 코일(118)은 자석 어셈블리(120)에 연결되어 보이스 코일 모터(VCM)를 생성한다. 보이스 코일(118)에 전류를 제공하는 것은 액튜에이터 암(114)을 회전시키는 토크(torque)를 생성하고 헤드들(110)이 디스크들(102)의 표면들을 가로질러 이동하게 한다. Voice coil 118 is connected to magnet assembly 120 to produce a voice coil motor (VCM). Providing current to the voice coil 118 creates a torque that rotates the actuator arm 114 and causes the heads 110 to move across the surfaces of the disks 102.

디스크 드라이브(100)는 인쇄 회로 기판(printed circuit board) 어셈블리(124)를 더 포함할 수 있다. 인쇄 회로 기판 어셈블리(124)는 인쇄 회로 기판(128)에 연결된 복수의 집적회로들(126)을 포함할 수 있다. 인쇄 회로 기판(128)은 전선들(미도시)에 의하여 보이스 코일(118), 헤드들(110), 및 스핀들 모터(104)에 연결된다. Disk drive 100 may further include a printed circuit board assembly 124. The printed circuit board assembly 124 may include a plurality of integrated circuits 126 connected to the printed circuit board 128. The printed circuit board 128 is connected to the voice coil 118, the heads 110, and the spindle motor 104 by wires (not shown).

도2는 도1의 디스크(102) 표면을 분할한 개략도이다. 도2를 참조하면, 디스크(102)는 크게 시스템 구역(210), 데이터 구역(220) 및 파킹(parking) 구역(230) 으로 분할된다. FIG. 2 is a schematic diagram of a partitioned surface of the disk 102 of FIG. Referring to FIG. 2, disk 102 is largely divided into system zone 210, data zone 220 and parking zone 230. As shown in FIG.

시스템 구역(210)은 메인티넌스(maintenance) 영역이라고도 불리며, 각종 시스템 정보들과 하드 디스크 드라이브의 유지 보수를 위한 정보들이 저장되며, 일반 사용자에게는 접근이 허용되지 않는 영역이다. The system zone 210 is also called a maintenance area, and stores various system information and information for maintenance of the hard disk drive, and is an area to which general users are not allowed to access.

데이터 구역(220)은 일반 사용자에게 접근이 허용되는 영역으로, 통상 사용자 데이터를 저장하는 영역이다. The data zone 220 is an area to which general users have access, and is an area for storing user data.

파킹 구역(230)은 헤드(110)를 파킹시킬 경우에 사용되는 영역으로 데이터가 기록될 수 없는 영역이다. The parking area 230 is an area used when the head 110 is parked and is an area where data cannot be recorded.

시스템 구역(210)을 보다 상세히 설명하면, 하드 디스크 드라이브를 제조하는 제조자는 현재 제조공정에서 그 드라이브의 고유번호, 제조공정 중의 관련 정보, 디펙 로그 인 데이터(defect log in data), 디펙 리스트 또는 SMART(Self Monitoring Analysis Reporting Technology) 정보 등 다양한 시스템에 관련된 정보를 디스크 상의 시스템 구역(210)에 기록하고 필요시 독출하여 이용하고 있다. In more detail, the system zone 210, a manufacturer of a hard disk drive may have a unique number of the drive in the current manufacturing process, relevant information during the manufacturing process, defect log in data, a defect list or SMART. (Self-Monitoring Analysis Reporting Technology) Information related to various systems, such as information, is recorded in the system section 210 on the disk and read out and used if necessary.

시스템 구역(210)에 저장된 정보들은 각 드라이브마다 고유한 정보이기 때문에 롬(ROM)에 포함될 수 없고, 전술한 바와 같이 시스템 구역(210)에 기록하여 필요할 때마다 드라이브의 램(RAM)으로 읽어들인 후 사용하게 된다. 시스템 구역(210)으로 할당되어지는 트랙의 수는 통상 1개에서 4개 정도로 할당된다. Since the information stored in the system zone 210 is unique to each drive, the information stored in the system zone 210 cannot be included in the ROM. As described above, the information stored in the system zone 210 is written to the system zone 210 and read into the RAM of the drive as needed. Will be used later. The number of tracks allocated to the system zone 210 is typically assigned from one to four.

컴퓨터 시스템의 부팅에 필요한 정보 또는 파일 저장 위치에 관한 정보 등은 일반적으로 데이터 구역(220)에 저장되어 있다. Information necessary for booting the computer system or information about a file storage location is generally stored in the data zone 220.

도3은 본 발명의 일 실시예에 따른 데이터 복구 방법에서 데이터 백업 과정 의 흐름도이다. 도3을 참조하면, 먼저 사용자가 컴퓨터 시스템에 OS(Operating System), 드라이버 등을 설치한다. 설치된 OS, 드라이버 등에 관한 데이터는 HDD에 기록된다(S310). 3 is a flowchart of a data backup process in a data recovery method according to an embodiment of the present invention. Referring to FIG. 3, a user first installs an operating system (OS), a driver, or the like in a computer system. Data on the installed OS, the driver, and the like are recorded in the HDD (S310).

HDD에 OS, 드라이버 등이 셋팅된 이후에 바이러스의 공격 또는 OS의 이상 동작 등에 기인하여 컴퓨터 시스템에 에러가 발생할 수 있다. 그러한 경우에 대비하여 이하의 과정에서는 하드 디스크 드라이브에 기록된 현 상태의 데이터를 미리 백업한다. After the OS, driver, etc. are set in the HDD, an error may occur in the computer system due to a virus attack or abnormal operation of the OS. In case of such a case, the following process backs up the current state of data recorded on the hard disk drive.

백업하고자 하는 기록 데이터가 HDD에 기록되어 있으면 컴퓨터 시스템은 백업 명령을 HDD에 전송하고, 이때 기록 데이터의 위치 표시 정보도 함께 전송한다(S320). 이하에서, 기록 데이터는 백업의 대상이 되는 원본 데이터를 말한다. If the record data to be backed up is recorded in the HDD, the computer system transmits a backup command to the HDD, and at this time, also transmits position indication information of the record data. In the following description, the record data refers to original data that is a backup target.

전송되는 백업 명령은 HDD에게 백업 기능 실행을 요구하는 약정된 신호이다. 예를 들면, 업체 전용 명령(vendor unique command)이 이에 해당한다. 업체 전용 명령이란 일반인들에게는 오픈되지 않고 약속된 특정 업체들에 한정되어 사용되는 명령어이다. The backup command sent is a promised signal that requests the HDD to execute the backup function. For example, a vendor unique command corresponds to this. Company-specific commands are commands that are not open to the general public and are limited to specific companies that are promised.

업체 전용 명령을 전송하는 수단은 윈도우즈(windows) 등의 OS가 부팅된 상태에서 응용 프로그램을 실행하거나 별도의 메뉴를 추가함으로써 구현이 가능할 것이다. 이렇게 처리하는 이유는 기록 데이터의 시작 위치 및 마지막 위치를 OS가 알 수 있게 하기 위해서이다. The means for sending a vendor-specific command may be implemented by executing an application or adding a separate menu while the OS such as Windows is booted. The reason for this is to allow the OS to know the start position and the end position of the record data.

그리고, 이러한 전송 수단은 사용자의 간단한 조작만으로 이루어진다. 예를 들어, 사용자가 키보드 또는 마우스 등을 이용하여 간단한 명령어 세트를 입력하면 응용 프로그램은 백업 명령 및 기록 데이터의 위치 표시 정보를 HDD로 전송한다. And this transmission means consists only of a simple operation of a user. For example, when a user inputs a simple command set by using a keyboard or a mouse, the application program transmits position indication information of the backup command and the recording data to the HDD.

또한, 키보드에 백업 명령 전송을 위한 전용키가 설정되어 있는 경우 사용자가 그 전용키를 클릭하면 응용 프로그램을 통해 기록 데이터의 위치 표시 정보와 함께 백업 명령이 HDD로 전송될 수도 있다. In addition, when a dedicated key for transmitting a backup command is set on the keyboard, when the user clicks the dedicated key, the backup command may be transmitted to the HDD together with the position indication information of the recording data through the application program.

기록 데이터의 위치 표시 정보는 HDD의 디스크 상에서 기록 데이터의 위치를 가리키는 정보이다. The position indication information of the recording data is information indicating the position of the recording data on the disk of the HDD.

일반적으로, 데이터 구역(220)은 논리 블록(Logical Block)들로 분할된다. 이때 각각의 논리 블록들을 가리키는 주소가 논리 블록 주소(Logical Block Address: LBA)이다. 맥시멈(maximum) LBA는 디스크에서 논리 블록 주소가 가질 수 있는 최대값이다. In general, data zone 220 is divided into logical blocks. At this time, an address indicating each logical block is a logical block address (LBA). The maximum LBA is the maximum value that a logical block address can have on disk.

맥시멈 LBA가 가리키는 논리 블록은 통상적으로 데이터 구역(220)의 끝부분에 위치하고 데이터 구역(220)과 시스템 구역(210)의 경계에 이웃한다. 그리고, 디스크에서 맥시멈 LBA가 가리키는 논리 블록 이후의 영역은 사용자 접근이 금지된다. The logical block pointed to by the maximum LBA is typically located at the end of the data zone 220 and neighbors the boundary of the data zone 220 and the system zone 210. The user's access to the area after the logical block pointed to by the maximum LBA on the disk is prohibited.

기록 데이터의 위치 표시 정보는 기록 데이터의 스타트 LBA(start LBA) 및 엔드 LBA(end LBA)가 될 수 있다. 기록 데이터의 스타트 LBA는 기록 데이터의 시작 위치를 가리키는 LBA이고, 기록 데이터의 엔드 LBA는 기록 데이터의 마지막 위치를 가리키는 LBA이다. The position indication information of the recording data may be a start LBA and an end LBA of the recording data. The start LBA of the recording data is the LBA indicating the start position of the recording data, and the end LBA of the recording data is the LBA indicating the last position of the recording data.

백업 명령 및 기록 데이터의 위치 표시 정보를 전송받은 HDD는 기록 데이터를 소정의 위치에 백업한다(S330). 즉, 기록 데이터의 스타트 LBA 및 엔드 LBA를 전송받은 HDD는 기록 데이터의 스타트 LBA부터 엔드 LBA까지의 데이터를 소정의 위치에 백업한다. The HDD having received the backup command and the position indication information of the recording data backs up the recording data to a predetermined position (S330). That is, the HDD which has received the start LBA and the end LBA of the recording data backs up the data from the start LBA to the end LBA of the recording data to a predetermined position.

HDD는 기록 데이터를 디스크의 데이터 구역(220) 내에 백업한다. 그리고, 기록 데이터가 백업되는 위치는 디스크의 데이터 구역(220)과 시스템 구역(210)의 경계에 이웃한다. 즉, 백업 데이터가 위치한 영역은 디스크의 데이터 구역(220)과 시스템 구역(210)의 경계에 이웃한다.The HDD backs up the write data into the data zone 220 of the disc. The position where the record data is backed up is next to the boundary between the data zone 220 and the system zone 210 of the disc. That is, the area where the backup data is located is adjacent to the boundary between the data zone 220 and the system zone 210 of the disk.

예를 들어, 기록 데이터의 스타트 LBA가 2, 엔드 LBA가 4이고, HDD의 맥시멈 LBA가 20인 경우에, 기록 데이터가 백업되는 위치의 스타트 LBA는 18, 엔드 LBA는 20이된다. 또, 기록 데이터의 스타트 LBA가 11, 엔드 LBA가 15이고, HDD의 맥시멈 LBA가 50인 경우에, 기록 데이터가 백업되는 위치의 스타트 LBA는 46, 엔드 LBA는 50이 된다. For example, when the start LBA of the record data is 2, the end LBA is 4, and the maximum LBA of the HDD is 20, the start LBA at the position where the record data is backed up is 18 and the end LBA is 20. When the start LBA of the recording data is 11, the end LBA is 15, and the maximum LBA of the HDD is 50, the start LBA at the position where the recording data is backed up is 46 and the end LBA is 50.

그러나, HDD의 기록 데이터는 데이터 구역(220)과 시스템 구역(210)의 경계에서 소정의 거리만큼 떨어진 영역에 백업될 수도 있다. However, the recording data of the HDD may be backed up in an area separated by a predetermined distance from the boundary between the data zone 220 and the system zone 210.

기록 데이터는 HDD의 내부 메모리를 경유하여 백업된다. 즉, HDD는 기록 데이터의 스타트 LBA부터 엔드 LBA까지의 데이터를 일단 HDD의 내부 메모리에 저장한다. 그리고, HDD는 HDD의 내부 메모리에 저장된 기록 데이터를 소정의 위치에 백업한다. Recorded data is backed up via the internal memory of the HDD. That is, the HDD once stores data from the start LBA to the end LBA of the recording data in the internal memory of the HDD. The HDD backs up the record data stored in the internal memory of the HDD to a predetermined position.

이와 같이, 백업 과정은 백업 명령을 받은 HDD에 의해 HDD 내부적으로 이루어진다. 이에 따라, 기록 데이터가 HDD 외부로 전송되지 않고도 HDD 자체적으로 백업 과정이 이루어진다. As such, the backup process is performed internally by the HDD which received the backup command. Accordingly, the backup process is performed by the HDD itself without the recording data being transferred to the outside of the HDD.

HDD는 백업이 완료되면 기록 데이터의 위치 표시 정보 및 백업 데이터의 위치 표시 정보를 디스크의 시스템 구역(210) 내에 저장한다(S340). 위치 표시 정보가 스타트 LBA 및 엔드 LBA일 수 있다는 것은 앞서 설명한 바와 같다. When the backup is completed, the HDD stores the position indication information of the recording data and the position indication information of the backup data in the system zone 210 of the disc (S340). As described above, the location indication information may be a start LBA and an end LBA.

그리고, HDD는 HDD의 맥시멈 LBA를 변경한다(S350). 구체적으로는, HDD는 백업 데이터의 크기를 바탕으로 HDD의 맥시멈 LBA를 감소시킨다. 이에 따라, 백업 데이터가 위치한 영역에 사용자의 접근이 금지된다. The HDD changes the maximum LBA of the HDD (S350). Specifically, the HDD reduces the maximum LBA of the HDD based on the size of the backup data. Accordingly, the user's access to the area where the backup data is located is prohibited.

예를 들어, 기록 데이터의 스타트 LBA가 2, 기록 데이터의 엔드 LBA가 4, 원래의(native) 맥시멈 LBA가 20, 백업 데이터의 스타트 LBA가 18, 백업 데이터의 엔드 LBA가 20인 경우에, 백업 데이터의 크기는 세 개의 논리 블록에 해당한다. 이때, HDD는 맥시멈 LBA를 17로 감소시킨다. 이에 따라 백업 데이터가 위치한 영역에 사용자의 접근이 금지된다. For example, if the start LBA of the historical data is 2, the end LBA of the historical data is 4, the native maximum LBA is 20, the start LBA of the backup data is 18, and the end LBA of the backup data is 20, The size of the data corresponds to three logical blocks. At this time, the HDD decreases the maximum LBA to 17. As a result, the user's access to the area where the backup data is located is prohibited.

만일, 기록 데이터의 스타트 LBA가 11, 엔드 LBA가 15, HDD의 원시 맥시멈 LBA가 50이면, HDD는 맥시멈 LBA를 45로 감소시킨다. If the start LBA of the record data is 11, the end LBA is 15, and the raw maximum LBA of the HDD is 50, the HDD decreases the maximum LBA to 45.

HDD의 기록 데이터가 데이터 구역(220)과 시스템 구역(23)의 경계에서 소정의 거리만큼 떨어진 영역에 백업된 경우에는 맥시멈 LBA가 백업 데이터의 스타트 LBA 미만이 되도록 맥시멈 LBA를 감소시킨다. When the recording data of the HDD is backed up in an area separated by a predetermined distance from the boundary between the data zone 220 and the system zone 23, the maximum LBA is reduced so that the maximum LBA becomes less than the start LBA of the backup data.

도4는 본 발명의 일 실시예에 따른 데이터 복구 방법에서 데이터 복구 과정의 흐름도이다. 도4를 참조하면, 컴퓨터 시스템을 사용하던 중에 기록 데이터가 손상되면, 컴퓨터 시스템은 HDD에 복구 명령을 전송한다(S410). 구체적으로는, 사용자로부터 복구 명령이 입력되면 BIOS 등이 HDD를 검출(detect)한 후 HDD에 복구 명 령을 전송한다. 4 is a flowchart of a data recovery process in a data recovery method according to an embodiment of the present invention. Referring to Fig. 4, if the recording data is damaged while using the computer system, the computer system transmits a recovery command to the HDD (S410). Specifically, when a recovery command is input from the user, the BIOS or the like detects the HDD and transmits the recovery command to the HDD.

전송되는 복구 명령은 HDD에게 복구 기능 실행을 요구하는 약정된 신호이다. 예를 들면, 업체 전용 명령(vendor unique command)이 이에 해당한다. 복구 명령을 전송하는 수단은 윈도우즈(windows) 등의 OS가 부팅된 상태에서 응용 프로그램을 실행하거나 별도의 메뉴를 추가함으로써 구현이 가능하다. The restore command sent is a promised signal that requests the HDD to execute the restore function. For example, a vendor unique command corresponds to this. The means for sending a recovery command can be implemented by running an application program or adding a separate menu while the OS such as Windows is booted.

그리고, 이러한 복구 명령의 전송 수단은 사용자의 간단한 조작만으로 이루어진다. 예를 들어, 사용자가 키보드 또는 마우스 등을 이용하여 간단한 명령어 세트를 입력하는 것만으로 HDD에 복구 명령이 전송된다. The transmission means for transmitting the recovery command is made only by a simple operation of the user. For example, a recovery command is transmitted to the HDD only by the user inputting a simple command set using a keyboard or a mouse.

또한, 키보드에 복구 명령 전송을 위한 전용키가 설정되어 있는 경우 사용자가 그 전용키를 클릭하면 응용 프로그램을 통해 HDD에 복구 명령이 전송될 수도 있다. In addition, when a dedicated key for transmitting a recovery command is set in the keyboard, when the user clicks the dedicated key, the recovery command may be transmitted to the HDD through an application program.

복구 명령을 수신한 HDD는 시스템 구역(210)에 저장된 위치 표시 정보를 바탕으로 하여 백업 데이터가 위치한 영역의 데이터를 기록 데이터가 위치한 영역으로 복구한다. 즉, HDD는 백업 데이터를 저장된 기록 데이터의 스타트 LBA부터 저장된 기록 데이터의 엔드 LBA까지의 영역으로 복구한다(S420). Upon receiving the recovery command, the HDD restores the data of the area where the backup data is located to the area where the record data is located based on the location indication information stored in the system area 210. That is, the HDD restores the backup data to an area from the start LBA of the stored record data to the end LBA of the stored record data (S420).

구체적으로 설명하면, HDD는 복구 명령을 수신하면 시스템 구역(210)에 저장된 백업 데이터의 위치 표시 정보를 바탕으로 하여 백업 데이터가 위치한 영역을 찾는다. 그리고, HDD는 백업 데이터가 위치한 영역의 데이터를 HDD의 내부 메모리에 저장한다. Specifically, when the HDD receives the recovery command, the HDD searches for an area where the backup data is located based on the location indication information of the backup data stored in the system zone 210. The HDD stores the data of the area where the backup data is located in the internal memory of the HDD.

그 이후, HDD는 시스템 구역(210)에 저장된 기록 데이터의 스타트 LBA와 엔 드 LBA를 바탕으로 기록 데이터가 위치한 영역을 찾는다. 그리고, HDD는 내부 메모리에 저장된 백업 데이터를 기록 데이터의 스타트 LBA부터 엔드 LBA까지의 영역으로 복구한다. After that, the HDD finds an area where the recording data is located based on the start LBA and the end LBA of the recording data stored in the system zone 210. The HDD then recovers the backup data stored in the internal memory to the areas from the start LBA to the end LBA of the record data.

예를 들어, 시스템 구역(210)에 기록 데이터의 시작 LBA가 2, 엔드 LBA가 4로 저장되어 있다면, 백업 데이터는 LBA2부터 LBA4까지의 영역으로 복구된다. For example, in the system zone 210, if the start LBA of the record data is stored as 2 and the end LBA is stored as 4, the backup data is restored to the areas from LBA2 to LBA4.

이와 같이, 백업 데이터는 HDD의 내부 메모리를 경유하여 기록 데이터의 위치로 복구된다. 즉, 복구 과정은 복구 명령을 받은 HDD에 의해 HDD 내부적으로 이루어진다. 이에 따라, 백업 데이터를 HDD 외부로부터 전송받지 않고도 HDD 자체적으로 복구 과정이 이루어진다. In this way, the backup data is restored to the position of the recording data via the internal memory of the HDD. That is, the recovery process is performed internally by the HDD which received the recovery command. Accordingly, the recovery process is performed by the HDD itself without receiving backup data from the outside of the HDD.

백업 데이터가 위치한 영역은 데이터 구역(220) 내에 위치함에도 불구하고 사용자의 접근이 금지된다. 따라서, 디스크에서 사용자 접근이 허용되는 공간이 작아진다. 그러므로, 백업 데이터가 기록 데이터의 위치로 복구된 이후에 백업 정보를 삭제하여 사용자 접근이 허용되는 공간을 회복하고자 하는 경우가 발생할 수 있다. Although the area where the backup data is located is located within the data zone 220, the user is prohibited from access. Thus, the space on the disk where user access is allowed is small. Therefore, there may occur a case where the backup data is deleted after the backup data has been restored to the location of the recording data, and then the backup information is deleted to recover the space to which user access is allowed.

이와 관련하여, 미리 설정된 옵션값에 따라 백업 정보의 삭제 여부를 판단할 수 있다. 예를 들어, 백업 정보를 삭제하지 않는 옵션값이 0이고 백업 정보를 삭제하는 옵션값이 1이라고 가정하자. In this regard, it may be determined whether to delete the backup information according to a preset option value. For example, assume that the option value for deleting backup information is 0 and the option value for deleting backup information is 1.

HDD는 옵션값을 체크함으로써 백업 정보의 삭제 여부를 판단한다(S430). HDD는 옵션값이 1이면 시스템 구역(210)에 저장된 LBA 정보들을 삭제한다(S440). 그리고, 맥시멈 LBA를 원래의 맥시멈 LBA로 변경한다(S450). 이에 따라, HDD에 저장되 어 있는 백업 정보들이 삭제되고, 사용자 접근이 허용되는 공간이 회복된다. The HDD determines whether to delete the backup information by checking the option value (S430). If the option value is 1, the HDD deletes LBA information stored in the system area 210 (S440). Then, the maximum LBA is changed to the original maximum LBA (S450). As a result, the backup information stored in the HDD is deleted, and the space for the user access is restored.

원래의 맥시멈 LBA는 백업 과정 수행전의 맥시멈 LBA를 말한다. 즉, 백업 과정 수행전의 맥시멈 LBA가 20였지만 백업 과정의 수행에 따라 맥시멈 LBA가 17로 변경된 경우에, 옵션값이 1이면 맥시멈 LBA는 다시 20으로 변경된다. The original maximum LBA is the maximum LBA before the backup process. That is, when the maximum LBA before the backup process is 20 but the maximum LBA is changed to 17 according to the backup process, the maximum LBA is changed back to 20 when the option value is 1.

한편, 본 발명의 실시예를 설명함에 있어서 하드디스크 드라이브의 예를 들었지만 이 분야의 기술에 익숙한 자라면 트랙을 가지는 디스크를 구동하는 장치 예를 들어 광디스크 드라이브, 광자기 디스크 드라이브에 있어서도 본 발명을 별다른 어려움 없이 적용할 수 있음을 알 수 있을 것이다.On the other hand, in the description of the embodiment of the present invention, an example of a hard disk drive is given. However, those skilled in the art will appreciate that the present invention also differs in an apparatus for driving a tracked disk, for example, an optical disk drive and a magneto-optical disk drive. It will be appreciated that it can be applied without difficulty.

본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 하드 디스크, 플로피 디스크, 플래쉬 메모리, 광 데이터 저장 장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드로서 저장되고 실행될 수 있다. The invention can also be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, hard disk, floppy disk, flash memory, optical data storage device, and also carrier wave (for example, transmission over the Internet). It also includes the implementation in the form of. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이제까지 본 발명에 대하여 그 바람직한 실시 예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

상술한 바와 같이 본 발명에 따르면, 간단한 조작을 통하여 백업 이미지를 HDD의 일정 영역에 복사하여 두고 OS부팅 없이 HDD 내부의 백업 이미지를 복구할 수 있다. As described above, according to the present invention, the backup image can be copied to a predetermined area of the HDD through a simple operation, and the backup image inside the HDD can be recovered without OS booting.

이에 따라, 백업 과정 및 복구 과정이 HDD 내부에서 자체적으로 수행되고, 외부 부팅용 매체나 응용 프로그램 없이도 HDD 내부의 데이터를 복구할 수 있다.Accordingly, a backup process and a recovery process are performed by the HDD itself, and data within the HDD can be recovered without an external booting medium or an application program.

OS 및 주변 장치의 드라이버 세팅이 완료된 상태에서 판매되고 시스템 복구 CD 등이 함께 제공되는 PC에 있어서도, 백업 데이터가 HDD에 자체적으로 저장되어 있고 간편한 조작을 통하여 데이터를 복구할 수 있으므로 시스템 복구 CD 등의 매체를 따로 보관할 필요가 없다. Even in a PC that is sold with the driver settings of the OS and peripheral devices completed and a system recovery CD is provided, the backup data is stored on the HDD itself and data can be recovered through easy operation. There is no need to keep the media separately.

Claims (6)

사용자 접근이 허용되는 데이터 구역과 사용자 접근이 금지되는 시스템 구역으로 분할된 디스크를 구비한 디스크 드라이브의 데이터 복구 방법에 있어서,In the data recovery method of a disk drive having a disk divided into a data zone for which user access is allowed and a system zone for which user access is prohibited. a)상기 데이터 구역에 기록된 데이터를 상기 데이터 구역 내에 백업하는 과정;a) backing up data recorded in the data zone in the data zone; b)상기 기록 데이터의 위치 표시 정보 및 상기 백업 데이터의 위치 표시 정보를 상기 시스템 구역 내에 저장하고, 상기 백업 데이터의 크기를 바탕으로 상기 데이터 구역의 논리 블록 주소 최대값을 감소시키는 과정;및b) storing the position indication information of the record data and the position indication information of the backup data in the system zone, and reducing the logical block address maximum value of the data zone based on the size of the backup data; and c)상기 기록 데이터 손상시 상기 저장된 위치 표시 정보를 바탕으로 상기 백업 데이터가 위치한 영역의 데이터를 상기 기록 데이터가 위치한 영역으로 복구하는 과정을 포함함을 특징으로 하는 디스크 드라이브의 데이터 복구 방법.and c) restoring data of an area where the backup data is located to an area where the record data is located based on the stored position indication information when the record data is damaged. 제1항에 있어서, 상기 디스크에 기록된 데이터를 백업하는 과정에서 The method of claim 1, wherein the data recorded on the disc is backed up. 상기 디스크에 기록된 데이터는 상기 하드 디스크 드라이브의 내부 메모리를 경유하여 백업됨을 특징으로 하는 디스크 드라이브의 데이터 복구 방법.The data recorded on the disk is backed up via the internal memory of the hard disk drive. 제1항에 있어서, 상기 기록 데이터의 위치 표시 정보는2. The position indication information of the record data according to claim 1, 상기 기록 데이터의 시작 위치를 가리키는 논리 블록 주소 및 마지막 위치를 가리키는 논리 블록 주소임을 특징으로 하는 디스크 드라이브의 데이터 복구 방법. And a logical block address indicating a start position of the write data and a logical block address indicating a last position. 제1항에 있어서, 상기 백업 데이터가 위치한 영역은 The method of claim 1, wherein the area where the backup data is located 상기 데이터 구역과 상기 시스템 구역의 경계에 이웃함을 특징으로 하는 디스크 드라이브의 데이터 복구 방법.And at a boundary between the data zone and the system zone. 제1항에 있어서, 상기 백업 데이터를 기록 데이터가 위치한 영역으로 복구하는 과정에서The method of claim 1, wherein the restoring the backup data to an area where record data is located. 상기 백업 데이터는 상기 하드 디스크 드라이브의 내부 메모리를 경유하여 복구됨을 특징으로 하는 디스크 드라이브의 데이터 복구 방법.And the backup data is restored via the internal memory of the hard disk drive. 제1항에 있어서, The method of claim 1, d)상기 저장된 위치 표시 정보를 삭제하고, 상기 하드 디스크 드라이브의 논리 블록 주소 최대값을 원래의 논리 블록 주소 최대값으로 변경하는 과정을 더 포함함을 특징으로 하는 디스크 드라이브의 데이터 복구 방법. and d) deleting the stored position indication information and changing the maximum logical block address value of the hard disk drive to an original maximum logical block address value.
KR1020040101143A 2004-12-03 2004-12-03 Method for restoring data in disk drive KR100640602B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040101143A KR100640602B1 (en) 2004-12-03 2004-12-03 Method for restoring data in disk drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040101143A KR100640602B1 (en) 2004-12-03 2004-12-03 Method for restoring data in disk drive

Publications (2)

Publication Number Publication Date
KR20060062336A KR20060062336A (en) 2006-06-12
KR100640602B1 true KR100640602B1 (en) 2006-11-01

Family

ID=37158512

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040101143A KR100640602B1 (en) 2004-12-03 2004-12-03 Method for restoring data in disk drive

Country Status (1)

Country Link
KR (1) KR100640602B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168379B (en) * 2021-10-31 2023-12-19 浪潮(山东)计算机科技有限公司 Data backup and restoration method and related device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1020010019732 *

Also Published As

Publication number Publication date
KR20060062336A (en) 2006-06-12

Similar Documents

Publication Publication Date Title
JP5208368B2 (en) System and method for automatically backing up a file as a generation file using the file system
USRE41011E1 (en) Apparatus and method for controlling booting operation of computer system
US6963951B2 (en) Partition recovery method
US20070283114A1 (en) Method and system for dividing a hard disk drive into multiple host access spaces
US6584583B2 (en) Method and apparatus for restoring data damaged by a computer virus on a magnetic information recording disk in a hard disk drive
JP3219988B2 (en) Disk device having security function and password management method in the device
WO2004061574A3 (en) Method of altering a computer operating system to boot and run from protected media
US6594207B2 (en) Information recording apparatus, information recording system and information recording medium
US20070294332A1 (en) Processing device for end customer operation
US8065481B1 (en) RAID system and method compatible with improved drive select
JP2004206795A (en) Disk storage device and light control method
US8320066B2 (en) Storage device and read/write processing method therefor
US6792517B1 (en) Firmware controlled backup in disk drives
US6104555A (en) Method and device for duplicating an initial program of a hard disk drive
KR100640602B1 (en) Method for restoring data in disk drive
JP2002229742A (en) Access switching control device and access switching control method
JP2007323377A (en) Recording apparatus, method for writing management data and method for repairing management data
US7382559B2 (en) Recovery processing method for device specific information of medium storage device and medium storage device
JP2006185374A (en) Information processor capable of constructing array apparatus and method for recognizing disk drive in this apparatus
KR20070096081A (en) Method for restoring the master boot record of storage medium and disk drive using the same
US20060218342A1 (en) Processing method for preventing anomalies when reading device-specific information for media storage device, and media storage device
US8068305B2 (en) Secure data disposal for disk drive
JP5365703B2 (en) Information processing apparatus, drive control program, and drive control method
JP2003186629A (en) Data copy system
JP2630932B2 (en) Program recording method for disk-shaped recording medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20091016

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee