KR20070096081A - Method for restoring the master boot record of storage medium and disk drive using the same - Google Patents

Method for restoring the master boot record of storage medium and disk drive using the same Download PDF

Info

Publication number
KR20070096081A
KR20070096081A KR1020050118835A KR20050118835A KR20070096081A KR 20070096081 A KR20070096081 A KR 20070096081A KR 1020050118835 A KR1020050118835 A KR 1020050118835A KR 20050118835 A KR20050118835 A KR 20050118835A KR 20070096081 A KR20070096081 A KR 20070096081A
Authority
KR
South Korea
Prior art keywords
master boot
boot record
user area
disk
record information
Prior art date
Application number
KR1020050118835A
Other languages
Korean (ko)
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 KR1020050118835A priority Critical patent/KR20070096081A/en
Publication of KR20070096081A publication Critical patent/KR20070096081A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0727Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A method for restoring a master boot record of a storage medium and a disk drive using the same are provided to restore damaged master boot record information by copying master boot record information stored in a user area. Information on a master boot record stored in a user area of a disk is copied in a non-user area of the disk by a first command(S330). The master boot record information stored in the non-user area is copied and restored in a record information storage position of the user area by a second command. The history information indicating backup of the master boot record information is stored in a predetermined position of the non-user area when the master boot record information is copied in the non-user area of the disk(S340). The master boot record is restored only in case the master boot record information has been stored in the non-user area.

Description

저장매체의 마스터 부트 레코드 복구 방법 및 이를 이용한 디스크 드라이브{Method for restoring the master boot record of storage medium and disk drive using the same}Method for restoring the master boot record of storage medium and disk drive using the same}

도 1은 본 발명이 적용되는 디스크 드라이브의 헤드 디스크 어셈블리의 평면도이다.1 is a plan view of a head disk assembly of a disk drive to which the present invention is applied.

도 2는 본 발명에 따른 저장매체의 마스터 부트 레코드 복구 방법이 적용되는 디스크 드라이브의 전기적인 회로 구성도이다.2 is an electrical circuit diagram of a disk drive to which the master boot record recovery method of a storage medium according to the present invention is applied.

도 3은 본 발명에 따른 마스터 부트 레코드 백업 방법의 흐름도이다.3 is a flowchart of a master boot record backup method according to the present invention.

도 4는 본 발명에 따른 마스터 부트 레코드 복구 방법의 흐름도이다.4 is a flowchart of a master boot record recovery method according to the present invention.

도 5A는 마스터 부트 레코드 백업 실행 상태를 도식적으로 보여주는 도면이다5A is a diagram schematically showing a master boot record backup execution state.

도 5B는 마스터 부트 레코드 복구 실행 상태를 도식적으로 보여주는 도면이다.5B is a diagram schematically showing a master boot record recovery execution state.

본 발명은 저장매체의 손상된 정보를 복구하는 방법 및 장치에 관한 것으로 서, 특히 저장매체의 마스터 부트 레코드 정보를 복구하기 위한 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for recovering damaged information of a storage medium, and more particularly, to a method and apparatus for recovering master boot record information of a storage medium.

일반적으로, 데이터 저장 장치의 하나인 하드디스크 드라이브는 자기 헤드에 의해 디스크에 기록된 데이터를 재생하거나, 디스크에 사용자 데이터를 기록함으로써 컴퓨터 시스템 운영에 기여하게 된다. 이와 같은 하드디스크 드라이브는 점차 고용량화, 고밀도화 및 소형화되면서 디스크 회전 방향의 기록 밀도인 BPI(Bit Per Inch)와 직경 방향의 기록 밀도인 TPI(Track Per Inch)가 증대되는 추세에 있으므로 그에 따라 더욱 정교한 메커니즘이 요구된다.In general, a hard disk drive, which is one of data storage devices, contributes to computer system operation by reproducing data recorded on a disk by a magnetic head or recording user data on the disk. As such hard disk drives are gradually increasing in capacity, density, and miniaturization, bit per inch (BPI), the recording density in the direction of disk rotation, and track per inch (TPI), the recording density in the radial direction, are increasing. Is required.

하드디스크 드라이브는 기본적으로 마스터 부트 레코드(Master Boot Record; MBR)에 의하여 관리된다. 마스터 부트 레코드는 부팅에 관련된 작업을 수행하며, 부트 프로그램 이외에 운영체제에 필수적인 디스크에 대한 주요 특성의 목록을 저장하고 있다. 항목들 중에는 섹터당 바이트 수, 디스크의 총섹터 수, 트랙당 섹터 수, 헤드의 개수 등의 정보가 들어 있으며, 파일 및 저장 형태를 주관하게 된다. Hard disk drives are basically managed by the Master Boot Record (MBR). The master boot record performs boot related tasks and stores a list of key characteristics of the disk that are essential to the operating system in addition to the boot program. Among the items, information such as the number of bytes per sector, the total number of sectors of the disk, the number of sectors per track, the number of heads, and the like, are managed.

마스터 부트 레코드는 하드디스크의 사용자 영역의 맨 처음 영역에 해당되는 부분인 LBA 0번지에 저장되어 있으며, 하드디스크를 포맷할 때 나누어지는 각 파티션(partition)의 위치에 관한 정보를 가지고 있으며, 메모리에 적재될 운영체계가 저장되어 있는 파티션의 부트 섹터 레코드를 읽을 수 있는 프로그램을 포함하고 있다.The master boot record is stored at LBA 0, which is the first part of the user area of the hard disk. It contains information about the location of each partition that is divided when the hard disk is formatted. It contains a program that can read the boot sector record of the partition where the operating system to be loaded is stored.

이에 따라서, 하드디스크 드라이브에서 마스터 부트 레코드 정보가 손상되 는 경우에는 하드디스크에 저장된 데이터를 읽을 수 없게 되며, 파티션 복구 프로그램을 사용하게 되면 드라이브의 내용으로부터 역 추적하여 파티션을 복구해야 함으로 복구하는데 많은 시간이 소요되는 문제점이 있었다.As a result, if the master boot record information is damaged on the hard disk drive, the data stored on the hard disk cannot be read, and when the partition recovery program is used, it is necessary to recover the partition by backtracking from the contents of the drive. There was a time-consuming problem.

본 발명이 이루고자 하는 기술적 과제는 상술한 문제점을 해결하기 위하여 하드디스크 드라이브 자체적으로 마스터 부트 레코드 정보를 간단하게 복구시킬 수 있는 저장매체의 마스터 부트 레코드 복구 방법 및 이를 이용한 디스크 드라이브를 제공하는데 있다.SUMMARY In order to solve the above problems, the present invention provides a method for recovering a master boot record of a storage medium and a disk drive using the same, which can easily recover master boot record information in a hard disk drive itself.

상기 기술적 과제를 달성하기 위하여 본 발명에 따른 (a) 디스크의 사용자 영역에 저장된 마스터 부트 레코드 정보를 제1특정 커맨드를 이용하여 디스크의 비사용자 영역에 복사하는 단계; 및 (b) 상기 비사용자 영역에 저장된 마스터 부트 레코드 정보를 제2특정 커맨드를 이용하여 상기 사용자 영역의 마스터 부트 레코드 정보 저장 위치에 복사하여 복구하는 단계를 포함함을 특징으로 한다.In order to achieve the above technical problem, (a) copying the master boot record information stored in the user area of the disk to the non-user area of the disk using a first specific command; And (b) copying and restoring master boot record information stored in the non-user area to a master boot record information storage location of the user area by using a second specific command.

상기의 다른 기술적 과제를 달성하기 위하여 본 발명에 따른 디스크 드라이브는 데이터 저장 장치에 있어서, 사용자 영역과 비사용자 영역을 갖는 디스크; 및 마스터 부트 레코드 백업 커맨드의 입력에 따라서 상기 디스크의 사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 상기 디스크의 비사용자 영역에 복사하고, 마스터 부트 레코드 복구 커맨드의 입력에 따라서 상기 디스크의 비사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 상기 디스크의 사용자 영역의 마스터 부 트 레코드 저장 위치에 복사하도록 제어하는 컨트롤러를 포함함을 특징으로 한다.In accordance with another aspect of the present invention, a disk drive includes a disk having a user area and a non-user area; And copying the master boot record information stored in the user area of the disk to the non-user area of the disk according to the input of the master boot record backup command, and copying the master boot record information to the non-user area of the disk according to the input of the master boot record recovery command. And a controller for copying the stored master boot record information to a master boot record storage location of a user area of the disk.

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

본 발명에 따른 기록매체의 저장 영역 관리 방법이 적용되는 데이터 저장 장치인 하드 디스크 드라이브는 기구적인 부품들로 구성된 HDA(Head Disk Assembly)와 전기 회로의 결합으로 이루어진다.A hard disk drive, which is a data storage device to which the storage area management method of a recording medium according to the present invention is applied, is composed of a combination of an electrical circuit and a head disk assembly (HDA) composed of mechanical components.

도 1은 본 발명이 적용되는 하드 디스크 드라이브의 HDA(Head Disk Assembly; 10)의 구성을 보여준다. 1 shows a configuration of a head disk assembly (HDA) 10 of a hard disk drive to which the present invention is applied.

헤드 디스크 어셈블리(10)는 스핀들 모터(14)에 의하여 회전되는 적어도 하나의 자기 디스크(12)를 포함하고 있다. 디스크 드라이브는 디스크(12) 표면에 인접되게 위치한 변환기(16)를 또한 포함하고 있다.The head disk assembly 10 includes at least one magnetic disk 12 that is rotated by the spindle motor 14. The disk drive also includes a transducer 16 located adjacent to the surface of the disk 12.

변환기(16)는 각각의 디스크(12)의 자계를 감지하고 자화시킴으로써 회전하는 디스크(12)에서 정보를 읽거나 기록할 수 있다. 전형적으로 변환기(16)는 각 디스크(12) 표면에 결합되어 있다. 비록 단일의 변환기(16)로 도시되어 설명되어 있지만, 이는 디스크(12)를 자화시키기 위한 기록용 변환기와 디스크(12)의 자계를 감지하기 위한 분리된 읽기용 변환기로 이루어져 있다고 이해되어야 한다. 읽기용 변환기는 자기 저항(MR : Magneto-Resistive) 소자로부터 구성되어 진다. 변환기(16)는 통상적으로 헤드(Head)라 칭해지기도 한다.The transducer 16 can read or write information on the rotating disk 12 by sensing and magnetizing the magnetic field of each disk 12. Typically transducer 16 is coupled to the surface of each disk 12. Although illustrated and described as a single transducer 16, it should be understood that this consists of a write transducer for magnetizing the disc 12 and a separate read transducer for sensing the magnetic field of the disc 12. Read transducers are constructed from Magneto-Resistive (MR) devices. The transducer 16 is also commonly referred to as a head.

변환기(16)는 슬라이더(20)에 통합되어 질 수 있다. 슬라이더(20)는 변환기(16)와 디스크(12) 표면사이에 공기 베어링(air bearing)을 생성시키는 구조로 되 어 있다. 슬라이더(20)는 헤드 짐벌 어셈블리(22)에 결합되어 있다. 헤드 짐벌 어셈블리(22)는 보이스 코일(26)을 갖는 엑츄에이터 암(24)에 부착되어 있다. 보이스 코일(26)은 보이스 코일 모터(VCM : Voice Coil Motor 30)를 특정하는 마그네틱 어셈블리(28)에 인접되게 위치하고 있다. 보이스 코일(26)에 공급되는 전류는 베어링 어셈블리(32)에 대하여 엑츄에이터 암(24)을 회전시키는 토오크를 발생시킨다. 엑츄에이터 암(24)의 회전은 디스크(12) 표면을 가로질러 변환기(16)를 이동시킬 것이다.The transducer 16 can be integrated into the slider 20. The slider 20 is structured to create an air bearing between the transducer 16 and the disk 12 surface. The slider 20 is coupled to the head gimbal assembly 22. The head gimbal assembly 22 is attached to an actuator arm 24 having a voice coil 26. The voice coil 26 is located adjacent to the magnetic assembly 28 that specifies the voice coil motor 30 (VCM). The current supplied to the voice coil 26 generates a torque for rotating the actuator arm 24 relative to the bearing assembly 32. Rotation of the actuator arm 24 will move the transducer 16 across the disk 12 surface.

정보는 전형적으로 디스크(12)의 환상 트랙 내에 저장된다. 각 트랙(34)은 일반적으로 복수의 섹터를 포함하고 있다. 각 섹터는 데이터 필드(data field)와 식별 필드(identification field)를 포함하고 있다. 식별 필드는 섹터 및 트랙(실린더)을 식별하는 그레이 코드(Gray code)로 구성되어 있다. 변환기(16)는 다른 트랙에 있는 정보를 읽거나 기록하기 위하여 디스크(12) 표면을 가로질러 이동된다.The information is typically stored in an annular track of the disc 12. Each track 34 generally includes a plurality of sectors. Each sector includes a data field and an identification field. The identification field is composed of a gray code identifying a sector and a track (cylinder). The transducer 16 is moved across the surface of the disc 12 to read or write information on other tracks.

디스크(12)는 크게 사용자 영역과 비사용자 영역으로 나누어진다. 사용자 영역은 사용자가 데이터를 실질적으로 라이트하거나 리드할 수 있는 영역이고, 비사용자 영역은 디스크 드라이브에 관련된 정보를 저장하는 영역이다.The disk 12 is largely divided into a user area and a non-user area. The user area is an area where the user can substantially write or read data, and the non-user area is an area for storing information related to the disk drive.

사용자 영역에는 마스터 부트 레코드(Master Boot Record; MBR) 정보가 저장되며, 마스터 부트 레코드 정보는 디스크(12)를 포맷할 때 나누어지는 각 파티션(partition)의 위치에 관한 정보를 가지고 있다. 일반적으로, 마스터 부트 레코드 정보는 디스크(12)의 사용자 영역의 맨 처음 영역에 해당되는 부분인 LBA 0번지에 저장된다.The Master Boot Record (MBR) information is stored in the user area, and the Master Boot Record information has information about the location of each partition divided when the disk 12 is formatted. In general, the master boot record information is stored in LBA 0, which is a portion corresponding to the first area of the user area of the disk 12.

마스터 부트 레코드는 부팅에 관련된 작업을 수행하며, 부트 프로그램 이외에 운영체제에 필수적인 디스크에 대한 주요 특성의 목록을 저장하고 있다. 항목들 중에는 섹터당 바이트 수, 디스크의 총섹터 수, 트랙당 섹터 수, 헤드의 개수 등의 정보가 들어 있으며, 파일 및 저장 형태를 주관하게 된다.The master boot record performs boot related tasks and stores a list of key characteristics of the disk that are essential to the operating system in addition to the boot program. Among the items, information such as the number of bytes per sector, the total number of sectors of the disk, the number of sectors per track, the number of heads, and the like, are managed.

한편, 파티션(partition)이란 하나의 물리적 디스크를 몇 개의 영역으로 나누어 관리가 용이하게 하는 것으로서, 운영체제가 여러 가지인 경우 각각의 고유 파일 시스템을 고유의 영역에 독립적으로 유지할 수 있게 하며, 하나의 파티션이 손실되더라도 다른 파티션 영역은 손실로부터 보호할 확률을 높이기 위해 사용된다. On the other hand, a partition is a partition that divides a single physical disk into several areas for easy management. In the case of multiple operating systems, each unique file system can be independently maintained in a unique area. If this is lost, the other partition area is used to increase the probability of protecting it from loss.

비사용자 영역은 일반적으로 메인터넌스 실린더(Maintenance Cylinder; 일반적으로 MC라 칭함) 영역이라 칭한다. 메인터넌스 실린더 영역에는 디펙 리스트(defect list) 정보와 리드/라이트 최적화 파라미터(parameter) 정보들을 포함하여 디스크 드라이브에 관련된 각종 정보들이 저장되며, 사용자가 임의로 액세스할 없는 영역이다.The non-user area is generally referred to as a maintenance cylinder (commonly referred to as MC) area. The maintenance cylinder area stores various information related to the disc drive, including defect list information and read / write optimization parameter information, and is an area that a user cannot access arbitrarily.

도 2는 본 발명이 적용되는 디스크 드라이브의 전기적인 회로를 보여준다.2 shows an electrical circuit of a disk drive to which the present invention is applied.

도 2에 도시된 바와 같이, 본 발명에 의한 디스크 드라이브는 디스크(12), 변환기(16), 프리 앰프(210), 기록/판독 채널(220), 버퍼(230), 컨트롤러(240), ROM(250A), RAM(250B), 호스트 인터페이스(260) 및 보이스 코일 모터(VCM) 구동부(270)를 구비한다.As shown in FIG. 2, the disk drive according to the present invention includes a disk 12, a converter 16, a preamplifier 210, a write / read channel 220, a buffer 230, a controller 240, a ROM. 250A, RAM 250B, host interface 260, and voice coil motor (VCM) driver 270.

컨트롤러(240)는 디지털 신호 프로세서(DSP : Digital Signal Processor), 마이크로프로세서, 마이크로컨트롤러 등으로 설계될 수 있다. 컨트롤러(240)는 호스트 인터페이스(260)를 통하여 호스트 기기(도면에 미도시)로부터 수신되는 커맨드(command)에 따라서 디스크(12)로부터 정보를 읽거나 또는 디스크(12)에 정보를 기록하기 위하여 기록/판독 채널(220)을 제어한다. The controller 240 may be designed as a digital signal processor (DSP), a microprocessor, a microcontroller, or the like. The controller 240 records for reading information from or writing information to the disk 12 according to a command received from a host device (not shown in the drawing) via the host interface 260. Control the read channel 220.

그리고, 컨트롤러(240)는 보이스 코일(26)에 구동 전류를 공급하는 VCM 구동부(270)에 또한 결합되어 있다. 컨트롤러(240)는 보이스 코일 모터의 여기 및 변환기(16)의 움직임을 제어하기 위하여 VCM 구동부(270)로 제어신호를 공급한다. The controller 240 is also coupled to the VCM driver 270 which supplies a drive current to the voice coil 26. The controller 240 supplies a control signal to the VCM driver 270 to control the excitation of the voice coil motor and the movement of the transducer 16.

ROM(250A)에는 디스크 드라이브를 제어하는 펌웨어 및 각종 제어 데이터들이 저장되어 있다. 물론 도 3 및 도 4에 도시된 본 발명에 따른 마스터 부트 레코드 백업 및 복구 방법의 흐름도를 실행시키기 위한 프로그램들도 저장되어 있다.The ROM 250A stores firmware and various control data for controlling the disk drive. Of course, programs for executing the flowchart of the master boot record backup and recovery method according to the present invention shown in Figs. 3 and 4 are also stored.

RAM(250B)에는 디스크 드라이브에 전원이 공급되면 디스크(12)의 메인터넌스 실린더(Maintenance Cylinder) 위치에서 읽어낸 디스크 드라이브 정보들이 로딩된다.When power is supplied to the disk drive, the RAM 250B loads disk drive information read from a maintenance cylinder position of the disk 12.

우선, 일반적인 디스크 드라이브의 동작을 설명하면 다음과 같다.First, the operation of a general disk drive will be described.

데이터 읽기(Read) 모드에서, 디스크 드라이브는 디스크(12)로부터 변환기(16 ; 일명 헤드라 칭함)에 의하여 감지된 전기적인 신호를 프리 앰프(210)에서 신호 처리에 용이하도록 증폭시킨다. 그리고 나서, 기록/판독 채널(220)에서는 증폭된 아날로그 신호를 호스트 기기(도면에 미도시)가 판독할 수 있는 디지털 신호로 부호화시키고, 스트림 데이터로 변환하여 버퍼(230)에 일시 저장시킨 후에 호스트 인터페이스(260)를 통하여 호스트 기기로 전송한다. In the data read mode, the disc drive amplifies the electrical signal sensed by the converter 16 (also called head) from the disc 12 in the preamplifier 210 to facilitate signal processing. Then, in the recording / reading channel 220, the amplified analog signal is encoded into a digital signal that can be read by a host device (not shown), converted into stream data, and temporarily stored in the buffer 230, and then the host. It transmits to the host device through the interface 260.

반대로 데이터 쓰기(Write) 모드에서, 디스크 드라이브는 호스트 인터페이스(260)를 통하여 호스트 기기로부터 데이터를 입력받아 버퍼(230)에 일시 저장시킨 후에, 버퍼(230)에 저장된 데이터를 순차적으로 출력하여 기록/판독 채널(220)에 의하여 기록 채널에 적합한 바이너리 데이터 스트림으로 변환시킨 후에 프리 앰프(210)에 의하여 증폭된 기록 전류를 변환기(16)를 통하여 디스크(12)에 기록시킨다.In contrast, in the data write mode, the disk drive receives data from the host device through the host interface 260 and temporarily stores the data in the buffer 230, and sequentially outputs the data stored in the buffer 230 to write / write the data. After conversion by the read channel 220 into a binary data stream suitable for the write channel, the write current amplified by the preamplifier 210 is written to the disc 12 via the converter 16.

본 발명에 따르면, 컨트롤러(240)는 호스트 기기로부터 출력되는 커맨드를 호스트 인터페이스(260)를 통하여 전달받고, 입력된 커맨드가 마스터 부트 레코드 백업 커맨드인 경우에 디스크(12)의 사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 디스크(12)의 비사용자 영역에 복사하고, 입력된 커맨드가 마스터 부트 레코드 복구 커맨드인 경우에는 디스크(12)의 비사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 디스크(12)의 사용자 영역의 마스터 부트 레코드 저장 위치에 복사하도록 제어한다.According to the present invention, the controller 240 receives a command output from the host device through the host interface 260, and is stored in the user area of the disk 12 when the input command is a master boot record backup command. Copy the master boot record information to the non-user area of the disk 12, and if the input command is a master boot record recovery command, the master boot record information stored in the non-user area of the disk 12 is stored in the disk 12. Control to copy to the master boot record storage location of the user area.

또한, 컨트롤러(240)는 마스터 부트 레코드 정보를 디스크(12)의 비사용자 영역에 복사할 때 백업 이력 정보를 생성시켜 비사용자 영역의 특정 위치에 저장하고, 마스터 부트 복구 커맨드가 입력된 경우에 비사용자 영역의 특정 위치에 저장되어 있는 백업 이력 정보를 확인하여 마스터 부트 레코드 정보가 비사용자 영역에 저장된 이력이 있는 경우에만 마스터 부트 레코드를 복구시키도록 제어한다.In addition, the controller 240 generates backup history information when copying the master boot record information to the non-user area of the disk 12, and stores the backup history information in a specific location of the non-user area. By checking the backup history information stored in a specific location of the user area, it controls to restore the master boot record only when the master boot record information has a history stored in the non-user area.

그러면, 본 발명에 따른 마스터 부트 레코드를 백업시키는 방법 및 마스터 부트 레코드를 복구시키는 방법을 나누어 세부적으로 설명하기로 한다.Then, the method for backing up the master boot record and the method for restoring the master boot record according to the present invention will be described in detail.

우선, 도 3의 흐름도를 참조하여 마스터 부트 레코드를 백업시키는 방법에 대하여 상세히 설명하기로 한다.First, a method of backing up a master boot record will be described in detail with reference to the flowchart of FIG. 3.

사용자가 마스터 부트 레코드를 백업하고자 하는 경우에는 하드디스크 드라이브에 접속된 호스트 기기(도면에 미도시)에서 마스터 부트 레코드 백업을 위하여 정의된 커맨드를 선택한다(S310). If the user wants to back up the master boot record, the host device (not shown) connected to the hard disk drive selects a command defined for the master boot record backup (S310).

단계310(S310)에서 마스터 부트 레코드 백업용 커맨드가 선택된 경우에, 호스트 기기는 호스트 인터페이스(260)를 통하여 하드디스크 드라이브의 컨트롤러(240)로 마스터 부트 레코드 백업용 커맨드 코드를 전달한다(S320). 즉, BIOS 프로그램을 이용하거나, 또한 백업 유틸리티(backup utility) 프로그램을 이용하여 호스트 기기에서 하드디스크 드라이브로 마스터 부트 레코드를 백업시키도록 정의된 커맨드를 보내줄 수 있다. When the master boot record backup command is selected in step 310 (S310), the host device transmits the master boot record backup command code to the controller 240 of the hard disk drive through the host interface 260 (S320). That is, a command defined to back up the master boot record from the host device to the hard disk drive may be sent by using a BIOS program or by using a backup utility program.

그러면, 컨트롤러(240)는 디스크(12)의 사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 디스크(12)의 비사용자 영역에 복사하도록 제어한다(S330). 즉, 컨트롤러(240)는 LBA 0번지에 저장되어 있는 마스터 부트 레코드 정보를 리드(READ)하여 버퍼(230)에 저장시킨 후에, 버퍼(230)에 저장된 마스터 부트 레코드 정보를 비사용자 영역에 해당되는 메인터넌스 실린더 영역의 제1위치에 라이트(WRITE)하는 프로세스를 실행시킨다.Then, the controller 240 controls to copy the master boot record information stored in the user area of the disk 12 to the non-user area of the disk 12 (S330). That is, the controller 240 reads and stores the master boot record information stored in the LBA address 0 in the buffer 230 and then stores the master boot record information stored in the buffer 230 in the non-user area. The process of writing to the first position of the maintenance cylinder area is executed.

그리고 나서, 컨트롤러(240)는 마스터 부스트 레코드 정보를 메인터넌스 실린더에 저장했음을 알리는 MBR 백업 이력 정보를 메인터넌스 실린더 영역의 제2위치에 라이트하는 프로세스를 실행시킨다(S340). Then, the controller 240 executes a process of writing the MBR backup history information indicating that the master boost record information has been stored in the maintenance cylinder to the second position of the maintenance cylinder area (S340).

도 3의 흐름도에 따라서 도 5A에 도시된 바와 같이, 일 예로서 BIOS 프로그램을 이용하여 드라이브로 전달되는 MBR COPY Command(MBR 백업을 위하여 정의된 커맨드)에 따라 디스크의 사용자 영역에 저장되어 있는 MBR 정보를 비사용자 영역에 복사하여 백업시키게 된다. According to the flowchart of FIG. 3, as shown in FIG. 5A, for example, MBR information stored in a user area of a disk according to an MBR COPY command (a command defined for MBR backup) transmitted to a drive using a BIOS program. Will be copied to the non-user area for backup.

다음으로, 도 4의 흐름도를 참조하여 마스터 부트 레코드를 복구시키는 방법에 대하여 상세히 설명하기로 한다.Next, a method of recovering a master boot record will be described in detail with reference to the flowchart of FIG. 4.

디스크의 사용자 영역에 저장된 마스터 부트 레코드 정보가 지워지거나 훼손되면 디스크 드라이브는 정상적인 리드/라이트 동작을 실행할 수 없게 된다.If the master boot record information stored in the user area of the disk is erased or corrupted, the disk drive will not be able to perform normal read / write operations.

이에 따라서, 사용자 영역에 저장된 마스터 부트 레코드 정보가 지워지거나 훼손된 경우에, 이를 복구하기 위하여 사용자는 마스터 부트 레코드 복구를 위하여 정의된 커맨드를 선택한다(S410). Accordingly, when the master boot record information stored in the user area is erased or corrupted, the user selects a command defined for master boot record recovery in order to recover the master boot record information (S410).

단계410(S410)에서 마스터 부트 레코드 복구용 커맨드가 선택된 경우에, 호스트 기기는 호스트 인터페이스(260)를 통하여 하드디스크 드라이브의 컨트롤러(240)로 마스터 부트 레코드 복구용 커맨드 코드를 전달한다(S420). 즉, BIOS 프로그램을 이용하거나, 또한 복구 유틸리티(restore utility) 프로그램을 이용하여 호스트 기기에서 하드디스크 드라이브로 마스터 부트 레코드를 복구시키도록 정의된 커맨드를 보내줄 수 있다.When the master boot record recovery command is selected in step 410 (S410), the host device transmits a master boot record recovery command code to the controller 240 of the hard disk drive through the host interface 260 (S420). That is, a command defined to restore the master boot record from the host device to the hard disk drive may be sent by using a BIOS program or by using a restore utility program.

그러면, 컨트롤러(240)는 디스크(12)의 마스터 부트 레코드를 복구하기 전에 메인터넌스 실린더 제2위치를 액세스하여 MBR 백업 이력 정보를 확인한다(S430).Then, the controller 240 checks the MBR backup history information by accessing the maintenance cylinder second position before restoring the master boot record of the disk 12 (S430).

MBR 백업 이력 정보를 확인하여 비사용자 영역인 메인터넌스 실린더 영역에 MBR 정보를 백업시킨 이력이 있는지를 판단한다(S440).The MBR backup history information is checked to determine whether there is a history of backing up the MBR information in the maintenance cylinder area which is a non-user area (S440).

단계440(S440)의 판단 결과 메인터넌스 실린더 영역에 MBR 정보를 백업시킨 이력이 있는 경우에는, 메인턴넌스 실린더 영역의 제1위치에 저장되어 있는 마스터 부트 레코드 정보를 사용자 영역에서 MBR 정보가 저장되는 위치인 LBA 0번지에 복사한다(S450). 즉, 컨트롤러(240)는 메인터넌스 실린더 영역의 제1위치에 백업되어 있는 마스터 부트 레코드 정보를 리드(READ)하여 버퍼(230)에 저장시킨 후에, 버퍼(230)에 저장된 마스터 부트 레코드 정보를 사용자 영역에서 마스터 부트 레코드 정보가 저장되는 위치인 LBA 0번지에 라이트(WRITE)하는 프로세스를 실행시킨다.As a result of the determination in step 440 (S440), if there is a history of backing up the MBR information in the maintenance cylinder area, the location where the MBR information is stored in the user area is the master boot record information stored in the first location of the maintenance cylinder area. Copy to LBA 0 (S450). That is, the controller 240 reads the master boot record information backed up to the first position of the maintenance cylinder area, stores the master boot record information in the buffer 230, and then stores the master boot record information stored in the buffer 230 in the user area. WRITE is executed at LBA 0 which is the location where master boot record information is stored.

그러나, 단계440(S440)의 판단 결과 메인터넌스 실린더 영역에 MBR 정보를 백업시킨 이력이 없는 경우에는, 마스트 부트 레코드 정보를 복구시키지 않고 메인터넌스 실린더 영역에 백업된 마스터 부트 레코드 정보가 없음을 알리는 리포트를 발행한다(S460).However, if there is no history of backing up the MBR information in the maintenance cylinder area as a result of the determination in step 440 (S440), a report indicating that there is no master boot record information backed up in the maintenance cylinder area without restoring the master boot record information is issued. (S460).

도 4의 흐름도에 따라서 도 5B에 도시된 바와 같이, 일 예로서 BIOS 프로그램을 이용하여 드라이브로 전달되는 MBR RESTORE Command(MBR 복구를 위하여 정의된 커맨드)에 따라 디스크의 비사용자 영역에 백업되어 있는 MBR 정보를 사용자 영역의 MBR 저장 위치에 복사하여 손상된 MBR 정보를 복구시키게 된다. As shown in FIG. 5B according to the flowchart of FIG. 4, as an example, an MBR backed up to a non-user area of a disk according to an MBR RESTORE Command (a command defined for MBR recovery) transferred to a drive using a BIOS program. The information is copied to the MBR storage location in the user area to recover damaged MBR information.

본 발명은 방법, 장치, 시스템 등으로서 실행될 수 있다. 소프트웨어로 실행될 때, 본 발명의 구성 수단들은 필연적으로 필요한 작업을 실행하는 코드 세그먼트들이다. 프로그램 또는 코드 세그먼트들은 프로세서 판독 가능 매체에 저장되어 질 수 있으며 또는 전송 매체 또는 통신망에서 반송파와 결합된 컴퓨터 데이터 신 호에 의하여 전송될 수 있다. 프로세서 판독 가능 매체는 정보를 저장 또는 전송할 수 있는 어떠한 매체도 포함한다. 프로세서 판독 가능 매체의 예로는 전자 회로, 반도체 메모리 소자, ROM, 플레쉬 메모리, 이레이져블 ROM(EROM : Erasable ROM), 플로피 디스크, 광 디스크, 하드디스크, 광 섬유 매체, 무선 주파수(RF) 망, 등이 있다. 컴퓨터 데이터 신호는 전자 망 채널, 광 섬유, 공기, 전자계, RF 망, 등과 같은 전송 매체 위로 전파될 수 있는 어떠한 신호도 포함된다. The invention can be practiced as a method, apparatus, system, or the like. When implemented in software, the constituent means of the present invention are code segments that necessarily perform the necessary work. The program or code segments may be stored on a processor readable medium or transmitted by a computer data signal coupled with a carrier on a transmission medium or network. Processor readable media includes any medium that can store or transmit information. Examples of processor-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memory, erasable ROM (EROM), floppy disks, optical disks, hard disks, optical fiber media, radio frequency (RF) networks, Etc. Computer data signals include any signal that can propagate over transmission media such as electronic network channels, optical fibers, air, electromagnetic fields, RF networks, and the like.

첨부된 도면에 도시되어 설명된 특정의 실시 예들은 단지 본 발명의 예로서 이해되어 지고, 본 발명의 범위를 한정하는 것이 아니며, 본 발명이 속하는 기술 분야에서 본 발명에 기술된 기술적 사상의 범위에서도 다양한 다른 변경이 발생될 수 있으므로, 본 발명은 보여지거나 기술된 특정의 구성 및 배열로 제한되지 않는 것은 자명하다. 즉, 본 발명은 하드디스크 드라이브를 포함하는 각종 디스크 드라이브에 적용될 수 있을 뿐만 아니라, 다양한 종류의 데이터 저장 장치에 적용될 수 있음은 당연한 사실이다.Specific embodiments shown and described in the accompanying drawings are only to be understood as an example of the present invention, not to limit the scope of the invention, but also within the scope of the technical spirit described in the present invention in the technical field to which the present invention belongs As various other changes may occur, it is obvious that the invention is not limited to the specific constructions and arrangements shown or described. That is, it is a matter of course that the present invention can be applied not only to various disk drives including hard disk drives, but also to various kinds of data storage devices.

상술한 바와 같이, 본 발명에 의하면 디스크의 사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 비사용자 영역에 저장하여 백업시키고, 사용자 영역에 저장되어 있는 마스터 부트 레코드 정보가 손상된 경우에 비사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 사용자 영역의 마스터 부트 정보 저장 위치에 복사하여 복구함으로써, 디스크 드라이브의 마스터 부트 레코드 정보가 손상되더라도 손쉽게 복구할 수 있는 효과가 발생된다.As described above, according to the present invention, the master boot record information stored in the user area of the disk is stored and backed up in the non-user area, and the master boot record information stored in the user area is stored in the non-user area in case of damage. By copying and restoring the master boot record information to the master boot information storage location of the user area, even if the master boot record information of the disk drive is damaged, it can be easily recovered.

Claims (6)

(a) 디스크의 사용자 영역에 저장된 마스터 부트 레코드 정보를 제1특정 커맨드를 이용하여 디스크의 비사용자 영역에 복사하는 단계; 및(a) copying the master boot record information stored in the user area of the disk to the non-user area of the disk using a first specific command; And (b) 상기 비사용자 영역에 저장된 마스터 부트 레코드 정보를 제2특정 커맨드를 이용하여 상기 사용자 영역의 마스터 부트 레코드 정보 저장 위치에 복사하여 복구하는 단계를 포함함을 특징으로 하는 저장매체의 마스터 부트 레코드 복구 방법.(b) copying and restoring master boot record information stored in the non-user area to a master boot record information storage location of the user area by using a second specific command, and recovering the master boot record of the storage medium. Recovery method. 제1항에 있어서, 상기 제1특정 커맨드 및 제2특정 커맨드는 BIOS 프로그램을 이용하여 디스크 드라이브로 전달됨을 특징으로 하는 저장매체의 마스터 부트 레코드 복구 방법.The method of claim 1, wherein the first specific command and the second specific command are transmitted to a disk drive using a BIOS program. 제1항에 있어서, 상기 비사용자 영역은 메인터넌스 실린더 영역을 포함함을 특징으로 하는 저장매체의 마스터 부트 레코드 복구 방법.2. The method of claim 1, wherein the non-user area comprises a maintenance cylinder area. 제1항에 있어서, 상기 마스터 부트 레코드 정보를 상기 디스크의 비사용자 영역에 복사할 때 마스터 부트 레코드 정보를 백업했음을 알리는 이력 정보를 상기 비사용자 영역의 특정 위치에 저장시키고, 상기 제2커맨드에 따라서 마스트 부트 레코드 정보를 복구하기 전에 상기 이력 정보를 확인하여 마스터 부트 레코드 정보 가 상기 비사용자 영역에 저장된 이력이 있는 경우에만 마스터 부트 레코드를 복구시키는 것을 특징으로 하는 저장매체의 마스터 부트 레코드 복구 방법.The method of claim 1, wherein when copying the master boot record information to the non-user area of the disk, history information indicating that the master boot record information is backed up is stored in a specific location of the non-user area, and according to the second command. And recovering the master boot record only when the history information is stored in the non-user area by checking the history information before recovering the master boot record information. 데이터 저장 장치에 있어서,In the data storage device, 사용자 영역과 비사용자 영역을 갖는 디스크; 및A disk having a user area and a non-user area; And 마스터 부트 레코드 백업 커맨드의 입력에 따라서 상기 디스크의 사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 상기 디스크의 비사용자 영역에 복사하고, 마스터 부트 레코드 복구 커맨드의 입력에 따라서 상기 디스크의 비사용자 영역에 저장되어 있는 마스터 부트 레코드 정보를 상기 디스크의 사용자 영역의 마스터 부트 레코드 저장 위치에 복사하도록 제어하는 컨트롤러를 포함함을 특징으로 하는 디스크 드라이브.Copy the master boot record information stored in the user area of the disk to the non-user area of the disk according to the input of the master boot record backup command, and store it in the non-user area of the disk according to the input of the master boot record recovery command. And a controller for controlling the master boot record information to be copied to a master boot record storage location of a user area of the disk. 제5항에 있어서, 상기 컨트롤러는 마스터 부트 레코드 정보를 상기 디스크의 비사용자 영역에 복사할 때 백업 이력 정보를 생성시켜 저장하고, 상기 마스터 부트 복구 커맨드가 입력되는 경우에 상기 백업 이력 정보를 확인하여 마스터 부트 레코드 정보가 상기 비사용자 영역에 저장된 이력이 있는 경우에만 마스터 부트 레코드를 복구시키도록 제어함을 특징으로 하는 디스크 드라이브.The method of claim 5, wherein the controller generates and stores backup history information when the master boot record information is copied to a non-user area of the disk, and checks the backup history information when the master boot recovery command is input. And recovering the master boot record only when there is a history of master boot record information stored in the non-user area.
KR1020050118835A 2005-12-07 2005-12-07 Method for restoring the master boot record of storage medium and disk drive using the same KR20070096081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050118835A KR20070096081A (en) 2005-12-07 2005-12-07 Method for restoring the master boot record of storage medium and disk drive using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050118835A KR20070096081A (en) 2005-12-07 2005-12-07 Method for restoring the master boot record of storage medium and disk drive using the same

Publications (1)

Publication Number Publication Date
KR20070096081A true KR20070096081A (en) 2007-10-02

Family

ID=38802973

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050118835A KR20070096081A (en) 2005-12-07 2005-12-07 Method for restoring the master boot record of storage medium and disk drive using the same

Country Status (1)

Country Link
KR (1) KR20070096081A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130100879A (en) * 2012-03-04 2013-09-12 삼성전자주식회사 Electronic apparatus, method for restore of mbr and computer-readable recording medium
WO2016058184A1 (en) * 2014-10-14 2016-04-21 深圳市华星光电技术有限公司 Liquid crystal display panel and array substrate thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130100879A (en) * 2012-03-04 2013-09-12 삼성전자주식회사 Electronic apparatus, method for restore of mbr and computer-readable recording medium
WO2016058184A1 (en) * 2014-10-14 2016-04-21 深圳市华星光电技术有限公司 Liquid crystal display panel and array substrate thereof

Similar Documents

Publication Publication Date Title
JP4733400B2 (en) Automatic data update method in data storage system and disk drive using the same
KR101517761B1 (en) Method for managing data storage position and data storage system using the same
US6310741B1 (en) Magnetic disk apparatus with data track reassigning function
US6584583B2 (en) Method and apparatus for restoring data damaged by a computer virus on a magnetic information recording disk in a hard disk drive
US7487388B2 (en) Method of recovering reallocation sectors in data storage system and disc drive using the same
KR100464440B1 (en) Method for managing defects of disc drive, recording media therefor and disc drive therefor
KR100594301B1 (en) Method for varying the recording density of data storage medium and disc drive using the same
JP3865723B2 (en) Method for recording data in hard disk drive and control device therefor
KR20070008011A (en) Write controlling method of hard disk drive, and hard disk drive and recording medium therefor
KR20070096081A (en) Method for restoring the master boot record of storage medium and disk drive using the same
JP4317527B2 (en) Head operation control method in data storage device, disk drive using the same, and disk drive design method
KR100524989B1 (en) Method for improving retry process in data storage system and disc drive using the same
KR100699880B1 (en) Method for managing track defect of maintenance cylinder in data storage system and disc drive using the same
KR20110036403A (en) Method for setting zone layout of recording media and data storage apparatus and storage media applying the same
KR100699877B1 (en) Method for preserving data of the defect sector and disc drive using the same
KR100594264B1 (en) Method for controlling retry process in data storage system and disc drive using the same
KR100585165B1 (en) Data storage apparatus and data protecting method
KR100660896B1 (en) Method for executing a vendor specific command and disk drive using the same
KR100723512B1 (en) Cache buffer control method and disk drive using the same
JPH11224474A (en) Writing device of servo pattern, servo pattern control system, and magnetic disk device
KR100618835B1 (en) Method for reassigning sector adaptively in data storage system and disc drive using the same
KR100723513B1 (en) Method for detecting a bent disc and disc drive using the same
KR100640666B1 (en) Method for managing track defect in data storage system and disc drive using the same
KR100688508B1 (en) Method for recording reference servo information of hard disk drive, method for recording final servo information of hard disk drive, hard disk drive therefor, and recording medium therefor
JP2503371B2 (en) Disk system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
J201 Request for trial against refusal decision
AMND Amendment
E801 Decision on dismissal of amendment
B601 Maintenance of original decision after re-examination before a trial
J301 Trial decision

Free format text: TRIAL DECISION FOR APPEAL AGAINST DECISION TO DECLINE REFUSAL REQUESTED 20070511

Effective date: 20071204