KR20080060658A - Multimedia storage device and data recovering method of the device - Google Patents

Multimedia storage device and data recovering method of the device Download PDF

Info

Publication number
KR20080060658A
KR20080060658A KR1020060135006A KR20060135006A KR20080060658A KR 20080060658 A KR20080060658 A KR 20080060658A KR 1020060135006 A KR1020060135006 A KR 1020060135006A KR 20060135006 A KR20060135006 A KR 20060135006A KR 20080060658 A KR20080060658 A KR 20080060658A
Authority
KR
South Korea
Prior art keywords
data
kernel
file system
backup
rfs
Prior art date
Application number
KR1020060135006A
Other languages
Korean (ko)
Other versions
KR100853941B1 (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 KR1020060135006A priority Critical patent/KR100853941B1/en
Publication of KR20080060658A publication Critical patent/KR20080060658A/en
Application granted granted Critical
Publication of KR100853941B1 publication Critical patent/KR100853941B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/24Loading of the microprogram
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A multimedia storage device and a data recovery method thereof are provided to recover an error and perform booting normally without any equipment when a system is not booted by physical and logical errors of a booting flash medium of the multimedia storage device. A flash memory(100) includes an area for storing kernel file data, the area for storing backup kernel file data, and the area for storing RFS(Root File System) data. A RAM(500) stores a boot loader temporarily. An HDD(Hard Disk Drive)(200) stores the backup RFS data. A CPU(600) recovers the kernel and RFS data stored in the flash memory by using the backup kernel or RFS data when an error is detected in a data validity test while boots a system by checking validity of the kernel and RFS data. The CPU recovers an RFS stored in the flash memory by fixing the backup kernel as the booting kernel and mounting the backup RFS through the booting kernel when recovery of the kernel data is disabled.

Description

멀티미디어 저장장치와 데이터 복구방법{MULTIMEDIA STORAGE DEVICE AND DATA RECOVERING METHOD OF THE DEVICE}MULTIMEDIA STORAGE DEVICE AND DATA RECOVERING METHOD OF THE DEVICE}

도 1은 본 발명의 실시예에 따른 멀티미디어 저장장치의 부팅 관련 블럭구성도.1 is a block diagram related to booting of a multimedia storage device according to an embodiment of the present invention;

도 2와 도 3은 본 발명의 실시예에 따른 플래쉬 메모리의 영역 구획 예시도.2 and 3 are diagrams illustrating region divisions of a flash memory according to an exemplary embodiment of the present invention.

도 4는 본 발명의 실시예에 따른 멀티미디어 저장장치의 커널 및 루트 파일 시스템(Root File System) 복구 흐름도.4 is a flow diagram of a kernel and root file system recovery of a multimedia storage device according to an embodiment of the present invention.

본 발명은 멀티미디어 저장장치에 관한 것으로, 특히 플래쉬 매체에 저장된 커널 및 프로그램 코드 데이터에 대한 유효성을 검사하고 경우에 따라 자동 복구하는 멀티미디어 저장장치와 그 장치에서의 데이터 복구방법에 관한 것이다.The present invention relates to a multimedia storage device, and more particularly, to a multimedia storage device for validating and optionally restoring kernel and program code data stored in a flash medium and a data recovery method in the device.

멀티미디어 저장장치의 경우 멀티미디어 정보를 저장하기 위한 저장매체를 시스템 내부 혹은 외부에 포함한다. 대부분의 멀티미디어 저장매체의 경우 가격대비 성능이 우수한 HDD(Hard Disk Drive)가 사용된다. 초창기 멀티미디어 저장장치의 경우 HDD 내에 시스템 부팅을 위한 커널 및 프로그램 코드가 저장되었다. 그러 나 HDD의 경우 수명이 짧고 외부의 충격에 약하며 물리적, 논리적 에러가 발생할 빈도가 높아 상대적으로 안정적인 저장매체(플래쉬 메모리)에 커널 및 프로그램 코드를 저장하게 되었고, 단순히 HDD는 멀티미디어 정보를 저장하는 역할만을 수행하게 되었다.In the case of a multimedia storage device, a storage medium for storing multimedia information is included inside or outside the system. Most multimedia storage media use Hard Disk Drives (HDDs), which offer superior price / performance. In the early days of multimedia storage, the kernel and program code for system booting were stored in the HDD. However, HDD has a short lifespan, is weak to external shocks, and has a high frequency of physical and logical errors. Therefore, the kernel and program codes are stored in a relatively stable storage medium (flash memory). HDD simply stores multimedia information. Only to perform.

그러나 플래쉬 매체의 경우에도 HDD에 비해 상대적으로 안정적일 뿐이며 여전히 물리적, 논리적 에러가 발생한다. 발생 빈도 자체는 낮으나 일단 부팅용 플래쉬 매체에 에러가 발생하면 시스템이 부팅할 수 없는 상태로 빠지기 때문에 치명적인 문제가 아닐 수 없다.Flash media, however, are relatively stable compared to HDDs and still cause physical and logical errors. The frequency of occurrence is low, but it is a fatal problem because once the bootable flash media has an error, the system falls into an unbootable state.

종래의 경우, 플래쉬 매체에 에러가 발생하면 JTAG(Joint Test Action Group) 장비를 이용하거나 Production-HDD 또는 MutiMax 플래쉬 프로그램 툴을 이용하여 플래쉬 매체의 데이터를 삭제(Erase)하고 새로운 커널과 프로그램 코드를 기록하여 복구하였다. In the conventional case, if an error occurs in the flash medium, the JTAG (Joint Test Action Group) device or the Production-HDD or MutiMax flash program tool is used to erase the data of the flash medium and write a new kernel and program code. To recover.

JTAG 장비는 PCB와 IC 등을 테스트하기 위한 장비로서 플래쉬 메모리 (Flash Memory)의 특정 영역을 강제로 지우거나 기록할 수 있다. 프로덕션(Production)-HDD는 시스템 개발단계에서 사용하는 특수 기능의 HDD로 플래쉬 메모리에 대한 기록 삭제 및 기록이 가능하다. 멀티맥스(MultiMax) 플래쉬 프로그램 툴의 경우는 주로 생산단계에서 사용되는 플래쉬 프로그램 장비로 다수의 플래쉬 메모리를 동시에 삭제하고 기록할 수 있다.JTAG devices are used to test PCBs and ICs, and can forcibly erase or write a specific area of flash memory. Production-HDD is a special function HDD used in the system development stage. It can delete and record the flash memory. In the case of the MultiMax flash program tool, a flash program device mainly used in the production stage can delete and write multiple flash memories simultaneously.

그러나 JTAG 장비나 프로덕션(Production)-HDD, 멀티맥스(MultiMax) 플래쉬 프로그램 툴을 이용해 복구하는 방법은 시스템 개발 단계에서 사용되는 툴을 사용 하여 복구하는 것으로, 그 절차가 매우 번거로우며 사용 장비에 대한 전문지식을 필요로 하기 때문에 사용자 입장에서 다룰 수 없을 뿐만 아니라, JTAG 및 멀티맥스(MultiMax) 플래쉬 프로그램 툴의 경우 가격이 매우 고가인 단점이 있다. However, restoring using JTAG equipment, Production-HDD, or MultiMax flash program tools is a painstaking process using tools used during system development. Not only can it be handled from the user's point of view because it requires knowledge, but JTAG and MultiMax flash program tools are very expensive.

이에 본 발명은 멀티 미디어 저장장치에서 부팅용 플래쉬 매체의 물리적, 논리적 오류에 의한 시스템 부팅 불능 상태가 발생할 경우 별도의 장비 없이 오류를 복구하고 정상적인 부팅이 이루어질 수 있는 멀티미디어 저장장치 및 그 방법을 제공함을 주요 목적으로 한다.Accordingly, the present invention provides a multimedia storage device and a method for recovering an error without a separate device and performing a normal booting when a system incapable of booting due to a physical or logical error of a bootable flash medium occurs in a multimedia storage device. It is a main purpose.

상기 목적을 달성하기 위한 본 발명의 일실시예에 따른 멀티미디어 저장장치는,Multimedia storage device according to an embodiment of the present invention for achieving the above object,

적어도 커널파일 데이터를 저장하고 있는 영역과, 백업용 커널파일 데이터를 저장하고 있는 영역 및 루트 파일 시스템(RFS) 데이터를 저장하고 있는 영역을 포함하는 플래쉬 메모리와;A flash memory including at least an area storing kernel file data, an area storing backup kernel file data, and an area storing root file system (RFS) data;

부트로더를 일시 저장하기 위한 임시 메모리와;Temporary memory for temporarily storing the boot loader;

백업용 루트 파일 시스템 데이터가 저장된 멀티미디어 저장매체와;A multimedia storage medium storing root file system data for backup;

상기 커널 및 루트 파일 시스템(RFS) 데이터의 유효성을 검사하여 시스템을 부팅시키되, 데이터 유효성 검사시 오류 검출되면 상기 백업용 커널과 백업용 루트 파일 시스템 데이터중 어느 하나를 이용하여 상기 플래쉬 메모리에 저장된 커널과 루트 파일 시스템(RFS) 데이터를 복구하는 제어부;를 포함함을 특징으로 한다.Validate the kernel and root file system (RFS) data and boot the system. If an error is detected during data validation, the kernel and the root stored in the flash memory are stored using one of the backup kernel and the backup root file system data. And a control unit for restoring the file system (RFS) data.

더 나아가, 상기 제어부는 상기 커널에 대한 데이터 복구 불능시 상기 백업용 커널을 부팅용 커널로 지정하고, 그 부팅용 커널을 통해 상기 백업용 루트 파일 시스템을 마운트하여 상기 플래쉬 메모리에 저장된 루트 파일 시스템을 복구함을 특징으로 한다.Furthermore, the controller designates the backup kernel as a bootable kernel when data recovery for the kernel is impossible, mounts the backup root file system through the bootable kernel, and restores the root file system stored in the flash memory. It is characterized by.

또한 상기 제어부는 상기 멀티미디어 저장매체 포맷시 상기 플래쉬 메모리의 루트 파일 시스템 데이터를 상기 멀티미디어 저장매체에 백업함을 특징으로 하며,The controller may back up the root file system data of the flash memory to the multimedia storage medium when the multimedia storage medium is formatted.

경우에 따라서는 루트 파일 시스템 데이터 백업시 버전정보를 함께 기록하고, 루트 파일 시스템 데이터 복구시 최신 버전정보로 복구함을 특징으로 한다.In some cases, the version information is recorded together with the root file system data backup, and the latest version information is restored when the root file system data is restored.

상술한 본 발명의 특징에 따르면, 본 발명은 플래쉬 매체에 저장된 커널 및 프로그램 코드에 대한 데이터의 유효성을 부팅시점에서 검사하고, 오류 발생시 플래쉬 매체 및 멀티미디어 저장매체로부터 여분의 커널 및 프로그램 코드를 복사하여 부팅용 플래쉬 매체에 저장된 정보를 복구할 수 있기 때문에, 별도의 장비 및 툴 없이도 플래쉬 매체의 물리적 혹은 논리적 오류로 인해 멀티미디어 저장장치가 부팅 불능 상태로 빠지는 것을 막을 수 있게 되는 것이다.According to the above-described feature of the present invention, the present invention checks the validity of the data for the kernel and program code stored in the flash medium at boot time, and in the event of an error, by copying the extra kernel and program code from the flash medium and multimedia storage media Because information stored on a bootable flash medium can be recovered, physical or logical errors of the flash medium can prevent the multimedia storage device from becoming unbootable without the need for additional equipment and tools.

한편 본 발명의 실시예에 따른 멀티미디어 저장장치의 데이터 복구방법은 커널파일 데이터와 백업용 커널파일 데이터 및 루트 파일 시스템(RFS) 데이터를 저장하고 있는 플래쉬 기록매체와, 백업용 루트 파일 시스템 데이터를 저장하고 있는 멀티미디어 기록매체를 포함하는 멀티미디어 저장장치에서 실행 가능한 방법으로서;Meanwhile, a data recovery method of a multimedia storage device according to an embodiment of the present invention includes a flash recording medium storing kernel file data, backup kernel file data, and root file system (RFS) data, and a backup root file system data. A method executable in a multimedia storage device comprising a multimedia recording medium;

초기 전원 인가시 상기 커널 및 백업용 커널 데이터의 유효성을 검사하여 오 류 검출되면 정상 커널 데이터를 복사하여 오류 발생한 커널 데이터를 복구하는 단계와;Validating the kernel and backup kernel data upon initial power-up and if error is detected, copying the normal kernel data to recover the failed kernel data;

상기 커널 및 백업용 커널 데이터중 어느 하나의 정상 커널을 부팅용 커널로 지정하는 단계와;Designating a normal kernel of any one of the kernel and backup kernel data as a booting kernel;

상기 루트 파일 시스템(RFS) 데이터의 유효성을 검사하여 오류 검출되면 지정된 부팅용 커널을 통해 상기 백업용 루트 파일 시스템을 마운트하여 상기 플래쉬 메모리에 저장된 루트 파일 시스템을 복구하는 단계;를 포함함을 특징으로 한다.And checking the validity of the root file system (RFS) data and recovering the root file system stored in the flash memory by mounting the backup root file system through a designated boot kernel if an error is detected. .

이러한 방법 역시, 플래쉬 매체에 저장된 커널 및 프로그램 코드에 대한 데이터의 유효성을 부팅시점에서 검사하고, 오류 발생시 플래쉬 매체 및 멀티미디어 저장매체로부터 여분의 커널 및 프로그램 코드를 복사하여 부팅용 플래쉬 매체에 저장된 정보를 복구할 수 있기 때문에, 별도의 장비 및 툴 없이도 플래쉬 매체의 물리적 혹은 논리적 오류로 인해 멀티미디어 저장장치가 부팅 불능 상태로 빠지는 것을 막을 수 있게 되는 것이다.This method also checks the validity of the data on the kernel and program code stored in the flash media at boot time, and copies the extra kernel and program code from the flash media and multimedia storage media in the event of an error and restores the information stored on the bootable flash media. With the ability to recover, physical and logical errors on the flash media can prevent the multimedia storage device from becoming unbootable without the need for additional equipment and tools.

이하 첨부된 도면을 참조하면서 기술되는 바람직한 실시예를 통하여 본 발명을 당업자가 용이하게 이해하고 재현할 수 있도록 상세히 설명하기로 한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily understand and reproduce the present invention.

우선 도 1은 본 발명의 실시예에 따른 멀티미디어 저장장치의 블럭 구성도를 도시한 것으로, 보다 상세하게는 멀티미디어 저장장치에서 부팅과 관련된 하드웨어 구성을 도시한 것이다.First, FIG. 1 illustrates a block diagram of a multimedia storage device according to an embodiment of the present invention, and more specifically, illustrates a hardware configuration related to booting in a multimedia storage device.

도 1을 참조하면, 우선 플래쉬 메모리(100)(NOR형,NAND형 모두 가능)는 도 2에 도시한 바와 같이 적어도 커널파일 데이터를 저장하기 위한 영역(102)과, 백업 용 커널파일 데이터를 저장하기 위한 영역(104), 프로그램 코드와 네트워크 등 각종 라이브러리 프로그램 데이터들(이를 포괄하여 루트 파일 시스템(RFS) 데이터라 명명하기로 함)을 저장하기 위한 영역(106), 그리고 시스템 로그나 설정, 사용자 관련 정보를 저장하기 위한 EFS(Embeded File System) 영역(108)으로 구획되어 관리된다. 참고적으로 롬-바이어스(300)가 생략된 경우라면 도 3에 도시한 바와 같이 플래쉬 메모리(100)가 부트로더(101)를 추가 저장하기 위한 파티션을 더 포함할 수 있다.Referring to FIG. 1, first, the flash memory 100 (both NOR and NAND types) may store at least an area 102 for storing kernel file data and a backup kernel file data as shown in FIG. Area 104 for storing various program information (hereinafter, referred to as root file system (RFS) data) including program code and network, and a system log, configuration, and user. It is partitioned and managed by an EFS (Embeded File System) area 108 for storing related information. For reference, if the ROM-bias 300 is omitted, as shown in FIG. 3, the flash memory 100 may further include a partition for additionally storing the boot loader 101.

참고적으로 플래시 메모리의 크기는 가격과 직접적으로 연관되어 있다. 따라서 대용량의 플래시 메모리를 사용하는 것은 시스템 제조업자 측면에서 보면 비효율적이라 할 수 있다. 이에 본 발명에서는 멀티미디어 데이터 저장용 HDD를 활용하여 백업용 RFS를 저장하는 방법을 제시하였다. 멀티미디어 저장장치의 경우 최소 1개 이상의 HDD가 장착되기 때문에 본 발명에서 제시한 구조가 사용 가능하며 일반적인 멀티미디어 저장장치의 경우, 2~4개 정도의 HDD가 장착되기 때문에 각 HDD에 백업용 RFS를 저장함으로써 HDD가 갖는 불안정성도 어느 정도 해소 가능하다.For reference, the size of flash memory is directly related to price. Therefore, using a large amount of flash memory is inefficient from the system manufacturer's perspective. Accordingly, the present invention proposes a method of storing a backup RFS using a HDD for storing multimedia data. In the case of a multimedia storage device, at least one HDD is mounted so that the structure suggested in the present invention can be used. In the case of a general multimedia storage device, two or four HDDs are installed so that a backup RFS is stored in each HDD. The instability of HDD can be solved to some extent.

한편 멀티미디어 저장매체에 해당하는 HDD(200)는 백업용 루트 파일 시스템 데이터를 저장하기 위한 영역(202)과 일반 멀티미디어 데이터를 저장하기 위한 영역(204)으로 구획되어 후술하는 중앙처리장치(600)에 의해 데이터 액세스 된다. 참고적으로 상기 백업용 루트 파일 시스템 데이터를 저장하기 위한 영역(202)에는 루트 파일 시스템 데이터 백업시 버전정보가 함께 기록될 수 있다. 이러한 HDD(200)는 필요에 따라 1개 이상 다수 개 연결되는 구조를 가질 수도 있다.Meanwhile, the HDD 200 corresponding to the multimedia storage medium is divided into an area 202 for storing root file system data for backup and an area 204 for storing general multimedia data, and is divided by the central processing unit 600 described later. The data is accessed. For reference, in the region 202 for storing the backup root file system data, version information may be recorded together with the root file system data backup. The HDD 200 may have a structure in which at least one HDD is connected as necessary.

롬-바이오스(300)는 부트 로더(boot loader) 저장용으로 사용되며, ATA 제어기(400)는 HDD 제어용 컨트롤러 역할을 담당한다. 그리고 램(RAM)(500)은 중앙처리장치(600)에 의해 액세스된 부트 로더를 일시 저장하는 역할을 담당한다. 참고적으로 롬-바이오스(300)는 일반적으로 EEPROM 또는 플래쉬 매체가 사용되며, 경우에 따라서는 사용되지 않을 수도 있다.The ROM-bios 300 is used for storing a boot loader, and the ATA controller 400 serves as a controller for controlling an HDD. The RAM 500 temporarily stores a boot loader accessed by the CPU 600. For reference, the ROM-BIOS 300 generally uses an EEPROM or a flash medium, and may not be used in some cases.

제어부에 해당하는 중앙처리장치(600)는 플래쉬 메모리(100)에 저장된 프로그램 코드 데이터에 기초하여 멀티미디어 저장장치의 동작을 전반적으로 제어하는 역할을 수행한다. 예를 들면, 중앙처리장치(600)는 상기 커널 및 루트 파일 시스템(RFS) 데이터의 유효성을 검사하여 시스템을 부팅시키되, 데이터 유효성 검사시 오류 검출되면 상기 백업용 커널과 백업용 루트 파일 시스템 데이터중 어느 하나를 이용하여 상기 플래쉬 메모리에 저장된 커널과 루트 파일 시스템(RFS) 데이터를 복구한다. 이러한 중앙처리장치(600)의 제어동작은 도 4에서 상세히 설명하기로 한다.The central processing unit 600 corresponding to the control unit controls the overall operation of the multimedia storage device based on the program code data stored in the flash memory 100. For example, the central processing unit 600 boots the system by validating the kernel and root file system (RFS) data, and if an error is detected during data validation, one of the backup kernel and the backup root file system data is used. Recover the kernel and root file system (RFS) data stored in the flash memory using. The control operation of the CPU 600 will be described in detail with reference to FIG. 4.

도 4는 본 발명의 실시예에 따른 멀티미디어 저장장치의 커널 및 루트 파일 시스템(Root File System) 복구 흐름도를 도시한 것이다. 도 4에서 커널 A는 커널을 나타낸 것이며, 커널 B는 백업 커널을 지칭하는 것으로 한다. 이하 도 4를 참조하여 본 발명의 동작예를 설명하면,4 is a flowchart illustrating a kernel and root file system recovery of a multimedia storage device according to an exemplary embodiment of the present invention. In FIG. 4, kernel A represents a kernel, and kernel B refers to a backup kernel. Hereinafter, an operation example of the present invention will be described with reference to FIG. 4.

우선 초기 전원이 인가되면 중앙처리장치(600)는 롬 바이오스(300)에서 부트 로더를 읽어 와 램(500)에 기록하고 부트로더를 실행한다. 부트로더가 실행되면, 우선 중앙처리장치(600)는 부팅용 플래쉬 메모리(100)에서 커널(102) 및 백업커 널(104)을 램(500)에 로드하여 데이터의 유효성에 대해서 검사(S1단계)한다.First, when the initial power is applied, the CPU 600 reads the boot loader from the ROM BIOS 300, writes it to the RAM 500, and executes the boot loader. When the boot loader is executed, first, the CPU 600 loads the kernel 102 and the backup kernel 104 into the RAM 500 from the flash memory 100 for booting and checks the validity of the data (step S1). )do.

유효성 검사 방법은 플래쉬 메모리(100)에서 램(500)으로 로드되는 동안에 ECC(Error Correction Code)를 검사하여 유효성을 검출하는 방법이 있고, 램(500)으로 로드된 커널 데이터에 저장된 체크섬(Checksum)과 로드된 데이터를 이용해 계산된 체크섬 값을 비교하여 유효성을 검출하는 방법이 있다.Validation method is a method of detecting the validity by checking the ECC (Error Correction Code) while loading from the flash memory 100 to the RAM 500, the checksum stored in the kernel data loaded into the RAM 500 There is a method of detecting validity by comparing the checksum value calculated using the data and the loaded data.

만약 커널 및 백업 커널에 대한 유효성 검사에서 두 개의 커널 데이터가 정상인 것으로 판명되면 원래의 부팅용 커널, 즉 커널 A를 사용하여 부팅하도록 지정(S5단계)하고 S8단계로 진행한다. 만약 두 개의 커널 중 하나에 오류가 있는 경우라면 정상으로 판별된 커널 이미지를 이용해 오류가 발생한 커널 데이터를 복구(S2,S3단계)한다. 그리고 오류 발생한 커널 데이터를 복구한 다음 복구된 커널이 정상인지 다시 검사(S4단계)하며 복구에 성공한 경우 부팅용 커널 A를 사용하여 부팅하도록 지정(S5단계)하고 S8단계로 진행한다. 만약 S4단계에서 복구 실패로 판명되면, 플래쉬 메모리(100)의 오류가 발생한 커널 영역이 커널을 저장할 수 없을 만큼 물리적으로 파손된 것이므로 시스템 로그에 해당 커널의 복구 실패 기록을 남기고(S6단계), 여분의 정상 커널을 사용하여 부팅할 수 있도록 부팅용 커널을 지정(S7단계)한후 S8단계로 진행한다. If the kernel and backup kernel validate that the two kernel data are normal, then specify to boot using the original boot kernel, kernel A (step S5), and proceed to step S8. If one of the two kernels has an error, the failed kernel data is recovered (steps S2 and S3) using the determined kernel image. After recovering the failed kernel data, check whether the recovered kernel is normal again (step S4). If the recovery is successful, specify booting using bootable kernel A (step S5), and proceed to step S8. If it is determined that the recovery failed in step S4, the kernel area in which the error of the flash memory 100 is damaged is physically damaged so that the kernel cannot be stored, and a record of the recovery failure of the kernel is left in the system log (step S6). After specifying the boot kernel to boot using the normal kernel of S7 (step S7), proceed to step S8.

커널과 백업 커널중 어느 하나의 커널이 부팅용 커널로 지정되면, 중앙처리장치(600)는 플래쉬 메모리(100)에 저장된 루트 파일 시스템(RFS) 데이터에 대한 유효성을 검사(S8단계)한다. 검사방법은 커널에 대한 검사 방법과 동일하다. 단, 체크섬을 통해 검사하기 위해서는 미리 RFS 영역에 대한 체크섬을 만들어 두어야 할 것이다.If one of the kernel and the backup kernel is designated as the bootable kernel, the CPU 600 checks the validity of the root file system (RFS) data stored in the flash memory 100 (step S8). The test method is the same as the test method for the kernel. However, in order to check through the checksum, a checksum for the RFS region must be made in advance.

만약 루트 파일 시스템(RFS) 데이터에 대한 유효성 검사에서 데이터가 정상으로 판명되면 S5 혹은 S7단계에서 지정된 부팅용 커널을 통해 정상 부팅이 수행(S12단계)되며, 플래쉬 메모리(100)의 루트 파일 시스템(RFS) 데이터를 마운트하여 프로그램 코드가 실행(S13단계)되면서 멀티미디어 저장장치가 정상적인 기능을 수행하게 된다.If the data is found to be normal in the validation of the root file system (RFS) data, normal booting is performed through the booting kernel designated in step S5 or S7 (step S12), and the root file system of the flash memory 100 ( As the program code is executed by mounting the RFS data (step S13), the multimedia storage device performs a normal function.

그러나 만약 루트 파일 시스템(RFS) 데이터에 대한 유효성 검사에서 데이터에 대한 오류가 검출되면, 중앙처리장치(600)는 S5 혹은 S7단계에서 지정된 부팅용 커널을 통해 부팅(S9단계)하고, 이후 HDD(200)의 백업용 RFS(201) 데이터를 마운트(S10단계)하여 플래쉬 메모리(100)의 루트 파일 시스템(RFS) 데이터를 복구(S11단계)한후 S1단계로 되돌아간다.However, if an error about the data is detected in the validation of the root file system (RFS) data, the CPU 600 boots through the booting kernel designated in step S5 or S7 (step S9), and then the HDD ( After the backup RFS 201 data of the 200 is mounted (step S10), the root file system (RFS) data of the flash memory 100 is recovered (step S11), and the process returns to the step S1.

이러한 본 발명의 동작에 의해 설령 플래쉬 메모리(100)내 커널 혹은 루트 파일 시스템 데이터에 손상이 발생한 경우에도 백업용 커널 및 백업용 루트 파일 시스템 데이터에 의해 멀티미디어 저장장치가 정상적으로 부팅이 이루어질 수 있게 되는 것이다.According to the operation of the present invention, even when corruption occurs in the kernel or the root file system data in the flash memory 100, the multimedia storage device can be booted normally by the backup kernel and the backup root file system data.

참고적으로 HDD(200)의 백업용 RFS(202)를 사용하여 플래쉬 매모리(100)의 루트 파일 시스템(RFS) 데이터를 복구하기 위해서는 먼저 HDD(200)의 백업 RFS 영역에 복구용 데이터를 저장해야 한다. 멀티미디어 저장장치에 장착된 HDD의 경우, 사용자의 필요에 의해서 교체될 수 있기 때문에 제품출하 단계에서 복구 영역을 만들어 놓는 것은 큰 의미를 가지지 못한다. 따라서, 본 발명에서는 출하시 또는 사 용자가 HDD를 포맷(Format)할 때, 백업용 RFS영역이 구성되도록 하고 플래쉬 메모리(100)로부터 복구용 데이터가 백업 복사되도록 하였다. 즉, 중앙처리장치(600)는 멀티미디어 저장매체(200)의 포맷시 혹은 소프트웨어의 업그레이드시 플래쉬 메모리(100)에 저장된 루트 파일 시스템(RFS) 데이터를 멀티미디어 저장매체(200)에 백업하며, 이때 버전정보를 함께 기록하는 것이 바람직하다. 그 이유는 통상 멀티미디어 저장매체의 소프트웨어 업그레이드시에 플래쉬 메모리(100)의 RFS영역에 새로운 RFS가 저장되기 때문에, HDD(200)의 백업 RFS 영역에도 최신 RFS가 유지 되도록 하기 위함이다. 또한, 사용자에 의해 자유롭게 HDD(200)의 탈착이 이루어지므로 현재 플래쉬 메모리(100)보다 이전 버전의 백업 RFS로 복구될 가능성이 있다. 이러한 가능성을 최소화하기 위해 RFS 복구시점에 모든 HDD의 백업 RFS를 검사하여 가장 최신의 백업 RFS를 찾아 복구가 이루어지도록 하기 위해 상기의 버전정보가 필요한 것이다.For reference, in order to recover the root file system (RFS) data of the flash memory 100 using the RFS 202 for backup of the HDD 200, the data for recovery must be stored in the backup RFS area of the HDD 200 first. do. In the case of the HDD mounted in the multimedia storage device, it can be replaced by the user's needs, so making a recovery area at the shipment stage does not mean much. Therefore, in the present invention, the RFS area for the backup is configured at the time of shipment or when the user formats the HDD, and the recovery data is backed up and copied from the flash memory 100. That is, the central processing unit 600 backs up the root file system (RFS) data stored in the flash memory 100 when the multimedia storage medium 200 is formatted or when the software is upgraded, to the multimedia storage medium 200. It is desirable to record the information together. The reason is that the new RFS is stored in the RFS area of the flash memory 100 during the software upgrade of the multimedia storage medium, so that the latest RFS is also maintained in the backup RFS area of the HDD 200. In addition, since the HDD 200 is freely detached by the user, there is a possibility of restoring the backup RFS of a previous version than the current flash memory 100. In order to minimize this possibility, the above version information is necessary to check the backup RFS of all HDDs at the time of RFS recovery and find the latest backup RFS so that the recovery can be performed.

상술한 바와 같이 본 발명은 플래쉬 매체에 저장된 커널 및 프로그램 코드에 대한 데이터의 유효성을 부팅시점에서 검사하고, 오류 발생시 플래쉬 매체 및 멀티미디어 저장매체로부터 여분의 커널 및 프로그램 코드를 복사하여 부팅용 플래쉬 매체에 저장된 정보를 복구할 수 있기 때문에, 별도의 장비 및 툴 없이도, 그리고 사용자 또는 AS 제공자의 개입 없이도 플래쉬 매체의 물리적 혹은 논리적 오류로 인해 멀티미디어 저장장치가 부팅 불능 상태로 빠지는 것을 막을 수 있는 효과가 있다.As described above, the present invention checks the validity of data of the kernel and program codes stored in the flash medium at boot time, and copies the extra kernel and program codes from the flash medium and the multimedia storage medium to the bootable flash medium when an error occurs. Because the stored information can be recovered, the physical or logical errors of the flash media can prevent the multimedia storage device from becoming unbootable without the need for additional equipment and tools, and without the intervention of the user or AS provider.

한편 본 발명은 도면에 도시된 실시예들을 참고로 설명되었으나 이는 예시적인 것에 불과하며, 당해 기술분야에 통상의 지식을 지닌자라면 이로부터 다양한 변형 및 균등한 타실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위에 의해서만 정해져야 할 것이다.On the other hand, the present invention has been described with reference to the embodiments shown in the drawings, which are merely exemplary, and those skilled in the art will understand that various modifications and equivalent other embodiments are possible therefrom. Therefore, the true technical protection scope of the present invention should be defined only by the appended claims.

Claims (8)

적어도 커널파일 데이터를 저장하고 있는 영역과, 백업용 커널파일 데이터를 저장하고 있는 영역 및 루트 파일 시스템(RFS) 데이터를 저장하고 있는 영역을 포함하는 플래쉬 메모리와;A flash memory including at least an area storing kernel file data, an area storing backup kernel file data, and an area storing root file system (RFS) data; 부트로더를 일시 저장하기 위한 임시 메모리와;Temporary memory for temporarily storing the boot loader; 백업용 루트 파일 시스템 데이터가 저장된 멀티미디어 저장매체와;A multimedia storage medium storing root file system data for backup; 상기 커널 및 루트 파일 시스템(RFS) 데이터의 유효성을 검사하여 시스템을 부팅시키되, 데이터 유효성 검사시 오류 검출되면 상기 백업용 커널과 백업용 루트 파일 시스템 데이터중 어느 하나를 이용하여 상기 플래쉬 메모리에 저장된 커널과 루트 파일 시스템(RFS) 데이터를 복구하는 제어부;를 포함함을 특징으로 하는 멀티미디어 저장장치.Validate the kernel and root file system (RFS) data and boot the system. If an error is detected during data validation, the kernel and the root stored in the flash memory are stored using one of the backup kernel and the backup root file system data. And a control unit for restoring file system (RFS) data. 청구항 1에 있어서, 상기 제어부는 상기 커널에 대한 데이터 복구 불능시 상기 백업용 커널을 부팅용 커널로 지정하고, 그 부팅용 커널을 통해 상기 백업용 루트 파일 시스템을 마운트하여 상기 플래쉬 메모리에 저장된 루트 파일 시스템을 복구함을 특징으로 하는 멀티미디어 저장장치. 2. The root file system of claim 1, wherein the controller designates the backup kernel as a bootable kernel when data recovery for the kernel is impossible, mounts the backup root file system through the bootable kernel, and stores the root file system stored in the flash memory. Multimedia storage device characterized in that the recovery. 청구항 1에 있어서, 상기 제어부는 상기 멀티미디어 저장매체 포맷시 상기 플래쉬 메모리의 루트 파일 시스템 데이터를 상기 멀티미디어 저장매체에 백업함을 특징으로 하는 멀티미디어 저장장치.The multimedia storage device of claim 1, wherein the controller backs up the root file system data of the flash memory to the multimedia storage medium when the multimedia storage medium is formatted. 청구항 3에 있어서, 상기 제어부는 루트 파일 시스템 데이터 백업시 버전정보를 함께 기록하고, 루트 파일 시스템 데이터 복구시 최신 버전정보로 복구함을 특징으로 하는 멀티미디어 저장장치.The multimedia storage device of claim 3, wherein the controller records version information together when the root file system data is backed up and restores the latest version information when the root file system data is restored. 청구항 1 내지 청구항 4중 어느 한 항에 있어서, 상기 제어부는 에러정정코드 검사 또는 체크섬 값의 비교를 통해 상기 커널 및 루트 파일 시스템(RFS) 데이터의 유효성을 검사함을 특징으로 하는 멀티미디어 저장장치.The multimedia storage device according to any one of claims 1 to 4, wherein the controller checks the validity of the kernel and root file system (RFS) data by checking an error correction code or comparing a checksum value. 청구항 1 내지 청구항 4중 어느 한 항에 있어서, 상기 제어부는 상기 커널파일 데이터 복구 실패시 그 기록을 시스템 로그 정보로서 상기 플래쉬 메모리의 임베디드 파일 시스템 영역에 기록 저장함을 특징으로 하는 멀티미디어 저장장치.The multimedia storage device according to any one of claims 1 to 4, wherein the controller records and stores the record as system log information in an embedded file system area of the flash memory when the kernel file data recovery fails. 플래쉬 기록매체의 서로 다른 영역에 커널파일 데이터와 백업용 커널파일 데이터 및 루트 파일 시스템(RFS) 데이터가 저장되며, 멀티미디어 저장매체에 백업용 루트 파일 시스템 데이터가 저장되어 있는 멀티미디어 저장장치의 데이터 복구방법에 있어서;In the data recovery method of the multimedia storage device in which the kernel file data, the backup kernel file data and the root file system (RFS) data are stored in different areas of the flash recording medium, and the backup root file system data is stored in the multimedia storage medium. ; 초기 전원 인가시 상기 커널 및 백업용 커널 데이터의 유효성을 검사하여 오류 검출되면 정상 커널 데이터를 복사하여 오류 발생한 커널 데이터를 복구하는 단 계와;Checking the validity of the kernel and backup kernel data during initial power-up and copying normal kernel data to recover the failed kernel data if an error is detected; 상기 커널 및 백업용 커널 데이터중 어느 하나의 정상 커널을 부팅용 커널로 지정하는 단계와;Designating a normal kernel of any one of the kernel and backup kernel data as a booting kernel; 상기 루트 파일 초기 전원 인가시 상기 커널 및 백업용 커널 데이터의 유효성을 검사하여 오류 검출되면 정상 커널 데이터를 복사하여 오류 발생한 커널 데이터를 복구하는 단계와;시스템(RFS) 데이터의 유효성을 검사하여 오류 검출되면 지정된 부팅용 커널을 통해 상기 백업용 루트 파일 시스템을 마운트하여 상기 플래쉬 메모리에 저장된 루트 파일 시스템을 복구하는 단계;를 포함함을 특징으로 하는 멀티미디어 저장장치의 데이터 복구방법.Validating the kernel and backup kernel data upon initial power-up of the root file and copying the normal kernel data to restore the failed kernel data; when the error is detected by validating system (RFS) data; Restoring the root file system stored in the flash memory by mounting the backup root file system through a designated booting kernel; and recovering the root file system stored in the flash memory. 청구항 7에 있어서, 상기 멀티미디어 저장매체의 포맷시 혹은 소프트웨어 업그레이드시 상기 플래쉬 메모리에 저장된 루트 파일 시스템 데이터를 멀티미디어 저장매체에 백업하되, 버전정보를 함께 기록하는 단계;를 더 포함함을 특징으로 하는 멀티미디어 저장장치의 데이터 복구방법.The method of claim 7, further comprising: backing up the root file system data stored in the flash memory to the multimedia storage medium when the multimedia storage medium is formatted or software upgrade, and recording version information together. How to recover data from a storage device.
KR1020060135006A 2006-12-27 2006-12-27 Multimedia storage device and data recovering method of the device KR100853941B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060135006A KR100853941B1 (en) 2006-12-27 2006-12-27 Multimedia storage device and data recovering method of the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060135006A KR100853941B1 (en) 2006-12-27 2006-12-27 Multimedia storage device and data recovering method of the device

Publications (2)

Publication Number Publication Date
KR20080060658A true KR20080060658A (en) 2008-07-02
KR100853941B1 KR100853941B1 (en) 2008-08-25

Family

ID=39813158

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060135006A KR100853941B1 (en) 2006-12-27 2006-12-27 Multimedia storage device and data recovering method of the device

Country Status (1)

Country Link
KR (1) KR100853941B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101064650B1 (en) * 2009-09-03 2011-09-15 학교법인 동의학원 Method for kernel hardening of USB device driver in Linux operating system and apparatus thereof
KR20140057878A (en) * 2012-11-05 2014-05-14 콘티넨탈 오토모티브 시스템 주식회사 Data rstoration mehtod of re-programing and data rstoration apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102417317B1 (en) * 2016-02-05 2022-07-05 한화테크윈 주식회사 Apparatus and method for booting system
KR102516583B1 (en) * 2018-03-19 2023-04-03 삼성전자 주식회사 Electronic device and method for controling update thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100339051B1 (en) * 1999-09-06 2002-05-31 이호동 Auto-recovery system of LINUX using a flash card
KR100463838B1 (en) * 2002-12-12 2004-12-29 한국전자통신연구원 Method for downloading and supporting nfs for uia boot loader
KR100658564B1 (en) * 2004-12-06 2006-12-15 한국전자통신연구원 The software development and operation method for the embedded system and mobile terminal using the method
KR100665134B1 (en) * 2004-12-09 2007-01-04 한국전자통신연구원 The root file system configuration and operation method for the embedded system, and mobile terminal using the method
KR100615450B1 (en) * 2004-12-13 2006-08-28 한국전자통신연구원 Tool-chain configuration and operation method for the embedded system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101064650B1 (en) * 2009-09-03 2011-09-15 학교법인 동의학원 Method for kernel hardening of USB device driver in Linux operating system and apparatus thereof
KR20140057878A (en) * 2012-11-05 2014-05-14 콘티넨탈 오토모티브 시스템 주식회사 Data rstoration mehtod of re-programing and data rstoration apparatus

Also Published As

Publication number Publication date
KR100853941B1 (en) 2008-08-25

Similar Documents

Publication Publication Date Title
KR101115486B1 (en) Apparatus and method for controlling booting of computer system
US9606875B2 (en) Migration of computer data
JP5077726B1 (en) Computer, control method thereof and program
KR100750132B1 (en) Method and system for booting, updating software automatically and recovering update error, and computer readable medium recording the method
US8417992B2 (en) Method, system and article of manufacture for system recovery
TWI501253B (en) Handling errors during device bootup from a non-volatile memory
US20070055969A1 (en) System and method for updating firmware
US8806476B2 (en) Implementing a software installation process
US8812910B2 (en) Pilot process method for system boot and associated apparatus
US9983833B2 (en) Solid state drive with holding file for atomic updates
KR100339051B1 (en) Auto-recovery system of LINUX using a flash card
US20090013167A1 (en) Computer device, method for booting the same, and booting module for the same
KR100853941B1 (en) Multimedia storage device and data recovering method of the device
CN116361817B (en) Protection method of ubi file system under Linux
KR101393034B1 (en) Apparatus and method for restoring system
US20190138407A1 (en) Systems and methods of deploying an operating system from a resilient virtual drive
JP2005149248A (en) Metadata restoration system, method thereof, storage device and program therefor
US11922170B2 (en) Systems and method for bootup activation of firmware images
WO2023060976A1 (en) File reading and writing method for embedded file system, and electronic device and storage medium
JP2004021318A (en) Disk array device and its control method
Naha Clouds of glass: fragility of virtual machine disk images

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: 20130731

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20140630

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee