KR101487609B1 - Method and apparatus for preventing misoperation of storage device - Google Patents

Method and apparatus for preventing misoperation of storage device Download PDF

Info

Publication number
KR101487609B1
KR101487609B1 KR20130087186A KR20130087186A KR101487609B1 KR 101487609 B1 KR101487609 B1 KR 101487609B1 KR 20130087186 A KR20130087186 A KR 20130087186A KR 20130087186 A KR20130087186 A KR 20130087186A KR 101487609 B1 KR101487609 B1 KR 101487609B1
Authority
KR
South Korea
Prior art keywords
storage device
operation speed
speed
fragmentation
information
Prior art date
Application number
KR20130087186A
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 KR20130087186A priority Critical patent/KR101487609B1/en
Application granted granted Critical
Publication of KR101487609B1 publication Critical patent/KR101487609B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals

Landscapes

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

Abstract

The present invention relates to a method and apparatus for preventing the malfunction of a storage device. To achieve this, an embodiment of the present invention provides an apparatus for preventing the malfunction of a storage device, the apparatus comprising an input unit configured to acquire file system information from the storage device; a fragmented state calculating unit configured to generate the fragmented state information of the storage device using the file system information; an operating speed prediction unit configured to predict the operating speed of the storage device using the fragmented state information; and a determination unit configured to compare the predicted operating speed of the storage device with a minimum required speed necessary to store data to determine whether the storage device can be normally operated. Therefore, the apparatus may predict the operating speed of a storage device using a fragmented state thereof, may determine whether the storage device can be normally operated, and may format the storage device only if required, thereby preventing the life of the storage device from being shortened due to frequent formatting and preventing a malfunction induced by deterioration of operating speed of the storage device.

Description

저장 장치의 오동작 방지 방법 및 장치{METHOD AND APPARATUS FOR PREVENTING MISOPERATION OF STORAGE DEVICE}[0001] METHOD AND APPARATUS FOR PREVENTING MISOPERATION OF STORAGE DEVICE [0002]

본 발명은 저장 장치의 오동작 방지 방법 및 장치에 관한 것이다.
The present invention relates to a method and apparatus for preventing malfunction of a storage device.

일반적으로 차량의 주행시 운행 정보를 기록하는 차량용 DVR(Digital Video Recorder) 또는 주행 영상을 촬영하는 차량용 블랙박스에는 메모리 카드(예를 들어 SD 카드) 같은 저장 장치가 이용된다.In general, a storage device such as a DVR (Digital Video Recorder) for recording driving information at the time of driving of a vehicle or a memory card (for example, SD card) is used for a vehicle black box for photographing a traveling image.

이러한 메모리 카드, 저장 장치를 장기간 계속적으로 사용하는 동안, 메모리 카드, 저장 장치 내에 저장된 파일들은 지워지고 여기에 새로운 파일들이 기록된다. 이렇게 파일들을 재기록하는 과정을 반복하면 저장된 파일들과 메모리 카드, 저장 장치의 빈 공간들의 단편화가 발생한다. 단편화는 저장 장치 등의 동작 속도를 느리게 한다. 차량용 DVR, 차량용 블랙박스 외에 저장 장치 또는 메모리 카드 를 이용하는 장치에서, 저장 장치 등에 정보가 입력되는 속도보다 파일을 기록하는 속도가 느리면 저장 장치에 오동작이 발생한다. 저장 장치 등에서 오동작이 발생하면 정보의 손실을 초래할 수 있다. While these memory cards and storage devices are continuously used for a long period of time, files stored in the memory card and the storage device are erased and new files are recorded therein. Repeating the process of rewriting files causes fragmentation of stored files, memory cards, and empty spaces in storage devices. Fragmentation slows the operation speed of storage devices and the like. In a device using a storage device or a memory card in addition to a vehicle DVR and a vehicle black box, if the speed of recording a file is slower than the speed at which information is input to a storage device or the like, a malfunction occurs in the storage device. If a malfunction occurs in a storage device or the like, information may be lost.

종래에는 일정 주기 간격으로 저장 장치를 포맷하거나 디스크 조각 모음을 통해서 저장 장치에 발생하는 단편화 현상을 제거한다. 그러나 이렇게 반복적인 포맷이나 부분적으로 삭제와 기록을 반복하는 디스크 조각 모음을 수행하면 저장 장치의 수명을 단축시킬 수 있는 문제점이 있다.
Conventionally, a storage device is formatted at regular intervals or a defragmentation phenomenon occurring in a storage device is removed through defragmentation. However, there is a problem in that it is possible to shorten the life of the storage device by performing the disk defragmentation such repetitive formatting or partially deleting and recording.

본 발명은 저장 장치의 단편화 상태를 이용하여 동작 속도를 예측하고 정상 동작 가능 여부를 판단하여 필요시에만 저장 장치를 포맷을 수행함으로써 잦은 포맷으로 해당 저장 장치의 수명이 단축되는 것을 방지하고 저장 장치의 동작 속도 저하에 따른 오동작을 방지하는 것을 목적으로 한다.The present invention predicts an operation speed by using a fragmented state of a storage device, determines whether normal operation is possible, and formats the storage device only when necessary, thereby preventing the life of the storage device from being shortened in a frequent format, And to prevent a malfunction due to a decrease in operation speed.

본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.
The objects of the present invention are not limited to the above-mentioned objects, and other objects and advantages of the present invention which are not mentioned can be understood by the following description and more clearly understood by the embodiments of the present invention. It will also be readily apparent that the objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims.

이러한 목적을 달성하기 위한 본 발명은 저장 장치로부터 파일 시스템 정보를 획득하는 단계, 상기 파일 시스템 정보를 이용하여 상기 저장 장치의 단편화 상태 정보를 생성하는 단계, 상기 단편화 상태 정보를 이용하여 상기 저장 장치의 동작 속도를 예측하는 단계, 예측된 상기 저장 장치의 동작 속도와 데이터 저장에 필요한 최소 요구 속도를 비교하여 상기 저장 장치의 정상 동작 가능 여부를 판단하는 단계를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method for managing a fragmentation state of a storage device, the method comprising: obtaining file system information from a storage device; generating fragmentation state information of the storage device using the file system information; Determining a normal operation of the storage device by comparing the operation speed of the storage device with a minimum required speed for data storage;

또한 본 발명은 저장 장치로부터 파일 시스템 정보를 획득하는 입력부, 상기 파일 시스템 정보를 이용하여 상기 저장 장치의 단편화 상태 정보를 생성하는 단편화 상태 산출부, 상기 단편화 상태 정보를 이용하여 상기 저장 장치의 동작 속도를 예측하는 동작 속도 예측부, 예측된 상기 저장 장치의 동작 속도와 데이터 저장에 필요한 최소 요구 속도를 비교하여 상기 저장 장치의 정상 동작 가능 여부를 판단하는 판단부를 포함하는 것을 특징으로 한다.
The present invention also provides an information processing apparatus including an input unit for obtaining file system information from a storage device, a fragmentation status calculator for generating fragmentation status information of the storage device using the file system information, And a determination unit for determining whether the storage device can be normally operated by comparing the predicted operation speed of the storage device with a minimum required speed for data storage.

전술한 바와 같은 본 발명에 의하면, 저장 장치의 단편화 상태를 이용하여 동작 속도를 예측하고 정상 동작 가능 여부를 판단하여 필요시에만 저장 장치를 포맷을 수행함으로써 잦은 포맷으로 해당 저장 장치의 수명이 단축되는 것을 방지하고 저장 장치의 동작 속도 저하에 따른 오동작을 방지할 수 있는 장점이 있다.
According to the present invention as described above, the operation speed is predicted using the fragmented state of the storage device, the normal operation is determined, and the storage device is formatted only when necessary, thereby shortening the life of the storage device in a frequent format And it is possible to prevent a malfunction due to a decrease in operation speed of the storage device.

도 1은 본 발명의 실시예에 따른 저장 장치의 오동작 방지 장치의 구성도.
도 2는 본 발명의 실시예에 따른 저장 장치의 오동작 방지 장치에 연결되는 저장 장치의 파일 시스템 구조도.
도 3은 본 발명의 실시예에 따른 저장 장치의 오동작 방지 장치에 연결되는저장 장치의 파일 단편화 상태를 설명하기 위한 클러스터 사용 상태의 구조도.
도 4는 본 발명의 실시예에 따른 평균 동작 속도 테이블.
도 5는 본 발명의 실시예에 따른 저장 장치의 오동작 방지 방법을 설명하기 위한 흐름도.
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a configuration diagram of a malfunction prevention device of a storage device according to an embodiment of the present invention; FIG.
BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a storage device,
BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a storage device,
4 is a table of average operating speeds according to an embodiment of the present invention.
5 is a flowchart for explaining a malfunction prevention method of a storage device according to an embodiment of the present invention;

전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 도면에서 동일한 참조부호는 동일 또는 유사한 구성요소를 가리키는 것으로 사용된다.The above and other objects, features, and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, which are not intended to limit the scope of the present invention. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to denote the same or similar elements.

도 1은 본 발명의 실시예에 따른 저장 장치의 오동작 방지 장치의 구성도이다. 도 1을 참조하면, 저장 장치의 오동작 방지 장치(104)는 입력부(106), 단편화 상태 산출부(108), 동작 속도 예측부(110), 판단부(112), 초기화부(114)를 포함한다.1 is a configuration diagram of a malfunction prevention device of a storage device according to an embodiment of the present invention. 1, a malfunction prevention device 104 of a storage device includes an input unit 106, a fragmentation state calculation unit 108, an operation speed prediction unit 110, a determination unit 112, and an initialization unit 114 do.

입력부(106)는 저장 장치(102)로부터 파일 시스템 정보를 획득하는 기능을 수행한다. 저장 장치(102)는 이동식 메모리 카드(예를 들어 SD카드)나 하드 디스크일 수 있다. 저장 장치(102)는 입력부(106)에 연결되고, 입력부(106)는 저장 장치(102)로부터 파일 시스템 정보를 읽는다. The input unit 106 performs a function of obtaining file system information from the storage device 102. [ The storage device 102 may be a removable memory card (e.g., an SD card) or a hard disk. Storage device 102 is connected to input 106 and input 106 reads file system information from storage device 102.

도 2는 본 발명의 실시예에 따른 저장 장치의 오동작 방지 장치에 연결되는 저장 장치의 파일 시스템 구조도를 나타낸다. 도 2를 참조하면, 일반적으로 저장 장치의 파일 시스템 구조는 부트 레코드 영역(202), FAT 영역(204), 데이터 영역(206)를 포함할 수 있다. 부트 레코드 영역(202)은 볼륨의 첫 번째 섹터를 의미하며 운영체제를 부팅시키기 위한 어셈블리어 코드와 FAT 파일 시스템의 설정 값들을 포함한다. FAT 영역(204)은 클러스터들을 관리하는 영역으로, FAT 영역(204)으로부터 클러스터 각각에 대한 사용 정보, 클러스터의 크기 등 파일 시스템 정보들을 읽을 수 있다. 데이터 영역(206)은 파일과 디렉토리가 저장되는 영역으로 클러스터(Cluster)의 논리적 단위로 파일을 읽기 또는 쓰기가 가능하다.2 is a block diagram of a file system of a storage device connected to a malfunction prevention device of a storage device according to an embodiment of the present invention. 2, the file system structure of a storage device may include a boot record area 202, a FAT area 204, and a data area 206 in general. The boot record area 202 refers to the first sector of the volume, and includes the assembly code for booting the operating system and the setting values of the FAT file system. The FAT area 204 is an area for managing clusters. The FAT area 204 can read file system information such as usage information and cluster size for each cluster from the FAT area 204. The data area 206 is an area where files and directories are stored, and can read or write files in a logical unit of a cluster.

입력부(106)는 저장 장치의 도 2의 FAT 영역(204)으로부터 클러스터 각각에 대한 사용 정보, 클러스터의 크기를 포함하는 파일 시스템 정보를 획득한다.The input unit 106 obtains the file system information including the usage information for each cluster and the cluster size from the FAT area 204 of FIG. 2 of the storage device.

단편화 상태 산출부(108)는 파일 시스템 정보를 이용하여 저장 장치의 단편화 상태 정보를 생성하는 기능을 수행한다. 파일 시스템 정보에 포함되는 클러스터 각각에 대한 사용 정보를 이용하여 데이터 영역(206)에서의 저장 장치 내의 파일 단편화 상태 정보를 생성할 수 있다.The fragmentation status calculating unit 108 performs a function of generating fragmentation status information of the storage device using the file system information. The file fragmentation status information in the storage device in the data area 206 can be generated using the usage information for each cluster included in the file system information.

도 3은 본 발명의 실시예에 따른 저장 장치의 오동작 방지 장치에 연결되는저장 장치의 파일 단편화 상태를 설명하기 위한 클러스터 사용 상태의 구조도를 나타낸다. 도 3을 참조하면, 저장 장치 내의 데이터 영역에서 클러스터 단위로 표시된 파일의 배치가 나타난다. 여기서 빗금친 부분은 사용된 클러스터를, 빗금이 아닌 부분은 사용되지 않은 빈 클러스터를 의미한다. 참조(302)에는 사용된 클러스터와 사용되지 않은 클러스터가 반복적으로 존재하고 이 데이터 영역은 완전한 단편화(단편화 상태 정보는 100%) 상태이다. 참조(304)에는 사용된 클러스터가 모두 연속하여 단편화가 이루어지지 않은 이상적인 파일 배치 상태(단편화 상태 정보는 0%)이다.3 is a structural diagram of a cluster use state for explaining a file fragmentation state of a storage device connected to a malfunction prevention device of a storage device according to an embodiment of the present invention. Referring to FIG. 3, the arrangement of files displayed in cluster units in the data area in the storage device is shown. Here, the hatched part means the used cluster and the non hatched part means the empty cluster which is not used. In reference 302, there are repeated clusters used and unused clusters, and this data area is in a state of complete fragmentation (100% of fragmentation status information). Reference numeral 304 denotes an ideal file placement state (0% of fragmentation state information) in which all of the used clusters are not continuously fragmented.

단편화 상태 산출부(108)는 FAT 영역(204)으로부터 클러스터 각각에 대한 사용 정보를 포함하는 파일 시스템 정보를 이용하여 저장 장치의 파일 단편화 상태 정보를 생성할 수 있다. 보다 상세하게는, 클러스터 각각에 대한 사용 정보로부터 사용된 클러스터의 전체 개수를 카운트하고, 연속하여 사용된 클러스터의 개수를 카운트한다. 이때 사용된 클러스터의 전체 개수에 대한 사용된 클러스터의 전체 개수에서 연속으로 사용된 클러스터의 개수를 뺀 수의 비율(수학식 1로 나타난다.)은 단편화 상태 정보가 된다.The fragmentation status calculating unit 108 can generate the file fragmentation status information of the storage device from the FAT area 204 using the file system information including the usage information for each of the clusters. More specifically, the total number of clusters used is counted from the usage information for each cluster, and the number of clusters consecutively used is counted. The ratio of the total number of used clusters to the total number of used clusters minus the number of consecutively used clusters (represented by Equation 1) becomes fragmentation status information.

[수학식 1][Equation 1]

Figure 112013066788148-pat00001

Figure 112013066788148-pat00001

예를 들어, 참조(302)의 경우, 사용된 클러스터의 전체 개수는 7개이고, 이 중에서 연속으로 사용된 클러스터의 개수는 0이므로

Figure 112013066788148-pat00002
, 즉 참조(302)의 단편화 상태 정보는 100%이다. 참조(304)의 경우도 마찬가지로, 사용된 클러스터의 전체 개수는 7개이고, 이 중에서 연속으로 사용된 클러스터의 개수는 7이므로 수학식 1에 의하면
Figure 112013066788148-pat00003
단편화 상태 정보 0%가 된다. 이렇게 단편화 상태 산출부(108)를 통해 저장 장치의 단편화 상태 정보를 생성할 수 있다.For example, in the case of reference 302, the total number of used clusters is 7, and the number of consecutively used clusters is 0
Figure 112013066788148-pat00002
, That is, the fragmentation status information of the reference 302 is 100%. Similarly, in the case of reference numeral 304, the total number of used clusters is 7, and the number of consecutively used clusters is 7, so that according to Equation (1)
Figure 112013066788148-pat00003
The fragmentation status information becomes 0%. The fragmentation status information of the storage device can be generated through the fragmentation status calculator 108 as described above.

동작 속도 예측부(110)는 단편화 상태 정보를 이용하여 저장 장치의 동작 속도를 예측하는 기능을 수행한다. 저장 장치의 동작 속도는 영상이나 이미지 파일을 기록하는 속도로 저장 장치에 초당 기록되는 비트의 수(bit per second, bps)를 의미한다. The operation speed predicting unit 110 performs a function of predicting the operation speed of the storage device using the fragmented status information. The operating speed of the storage device means the number of bits recorded per second (bits per second, bps) in the storage device at the speed of recording video or image files.

동작 속도 예측부(110)는 클러스터의 크기 및 단편화 상태 정보에 따른 평균 동작 속도 테이블(120)을 이용할 수 있다. 평균 동작 속도 테이블은 임의의 이동식 저장 장치를 임의의 단편화 상태로 만든 후 파일을 기록할 때 저장 장치의 평균적인 동작 속도를 기록한 테이블(120)이다. 각각의 클러스터의 크기 및 단편화 상태 정보에 따른 실험적인 평균 동작 속도가 테이블에 기록된다. 동작 속도 예측부(110)는 미리 저장된 평균 동작 속도 테이블(120)을 입력 받고, 평균 동작 속도 테이블로부터 단편화 상태 산출부(108)에서 생성된 단편화 상태 정보에 대응하는 평균 동작 속도를 검색한다. 동작 속도 예측부(110)는 검색된 평균 동작 속도를 저장 장치의 동작 속도로 결정한다.The operation speed predicting unit 110 may use the average operation speed table 120 according to the cluster size and fragmentation status information. The average operation speed table is a table 120 that records the average operation speed of the storage device when recording a file after making any removable storage device into an arbitrary fragmented state. The experimental average operating speed according to the size of each cluster and the fragmentation status information is recorded in the table. The operation speed predicting unit 110 receives the pre-stored average operation speed table 120 and retrieves an average operation speed corresponding to the fragmentation status information generated by the fragmentation status calculation unit 108 from the average operation speed table. The operation speed predicting unit 110 determines the searched average operation speed as the operation speed of the storage device.

판단부(112)는 예측된 저장 장치의 동작 속도와 데이터 저장에 필요한 최소 요구 속도를 비교하여 저장 장치의 정상 동작 가능 여부를 판단하는 기능을 수행한다.The determination unit 112 compares the operation speed of the storage device with the minimum required speed for data storage to determine whether the storage device can be normally operated.

예를 들어, 도 3의 참조(302)에서, 클러스터의 크기가 4kb일 때 8kb의 파일을 기록하려고 하면 클러스터들이 100% 단편화 되어 있어서 8kb크기의 파일을 연속적인 클러스터에 기록할 수 없다. 따라서 8kb크기의 파일은 클러스터의 크기 4kb로 나누어 기록해야하고 저장 장치의 동작 속도는 느려진다. 저장 장치의 동작 속도가 데이터 저장에 필요한 최소 요구 속도보다 느린 경우에는 저장 장치에 기록되는 데이터의 손실이 발생하게 되고 저장 장치가 정상 동작할 수 없다.For example, in reference 302 of FIG. 3, when a cluster size is 4kb, when attempting to write a 8kb file, the clusters are 100% fragmented, so that a file of 8kb size can not be written in successive clusters. Therefore, an 8kb file must be written in 4kb size and the operation speed of the storage device is slowed down. If the operating speed of the storage device is slower than the minimum required speed for data storage, the data stored in the storage device is lost and the storage device can not operate normally.

즉, 판단부(112)는 동작 속도 예측부(110)에서 예측된 저장 장치의 동작 속도와 데이터를 저장하는데 필요한 최소한의 요구 속도를 비교하여 최소 요구 속도를 충족하지 못하는 경우, 저장 장치가 정상 동작 가능하지 않다고 판단할 수 있다.That is, the determination unit 112 compares the operation speed of the storage device predicted by the operation speed predicting unit 110 with the minimum required speed for storing the data, and if the minimum required speed is not satisfied, It can be judged that it is not possible.

도 4는 본 발명의 실시예에 따른 평균 동작 속도 테이블이다. 도 4를 참조하면 임의의 클러스터의 크기(402), 단편화 상태 정보(404)에 따른 각각의 평균 동작 속도(406)가 테이블에 기록된다. 4 is an average operation speed table according to an embodiment of the present invention. Referring to FIG. 4, each average operating speed 406 according to the size 402 of any cluster and the fragmented status information 404 is recorded in a table.

예를 들어 데이터를 저장하는데 필요한 최소 요구 속도가 24.9Mbps일 때, 단편화 상태 정보가 51%, 클러스터의 크기는 8kb인 경우(408)를 가정한다. 도 4를 참조하면, 단편화 상태 정보 51%, 클러스터의 크기는 8kb일 때 예측되는 평균 동작 속도는 24.8Mbps이다. 이 예에서, 데이터를 저장하는데 필요한 최소 요구 속도는 24.9Mbps로 평균 동작 속도가 최소 요구 속도에 부족하므로 판단부(112)는 저장 장치가 정상 동작 가능하지 않다고 판단한다.For example, when the minimum required rate for storing data is 24.9 Mbps, it is assumed that the fragmentation status information is 51% and the cluster size is 8 kb (408). Referring to FIG. 4, when the fragmented state information is 51% and the cluster size is 8kb, the average operation speed is 24.8Mbps. In this example, the minimum required speed for storing data is 24.9 Mbps, and the average operation speed is insufficient for the minimum required speed, so the determination unit 112 determines that the storage device is not normally operable.

초기화부(114)는 판단부(112)에서 저장 장치가 정상 동작 가능하지 않다고 판단된 경우, 저장 장치를 초기화하는 기능을 수행한다. 사용자 인터페이스(UI)를 통해 사용자가 선택적으로 포맷하거나, 정상 동작 가능하지 않음을 사용자에게 알릴 수 있다.The initialization unit 114 initializes the storage device when the determination unit 112 determines that the storage device is not normally operable. The user can selectively format or inform the user that the normal operation is not possible through the user interface (UI).

도 5는 본 발명의 실시예에 따른 저장 장치의 오동작 방지 방법을 설명하기 위한 흐름도이다. 도 5를 참조하면, 먼저 저장 장치로부터 파일 시스템 정보를 획득한다(502). 파일 시스템 정보는 클러스터 각각에 대한 사용 정보, 클러스터의 크기를 포함할 수 있다.5 is a flowchart for explaining a malfunction prevention method of a storage device according to an embodiment of the present invention. Referring to FIG. 5, file system information is first obtained from a storage device (502). The file system information may include usage information for each cluster, and cluster size.

그 다음, 저장 장치의 단편화 상태 정보를 생성한다(504). 단편화 상태 정보는 단계(502)에서 획득한 파일 시스템 정보 중 클러스터 각각에 대한 사용 정보를 이용할 수 있다. 보다 상세하게는, 상술한 바와 같이 클러스터 각각에 대한 사용 정보로부터 사용된 클러스터의 전체 개수를 카운트하고, 연속하여 사용된 클러스터의 개수를 카운트한다. 이 때, 사용된 클러스터의 전체 개수에 대한 사용된 클러스터의 전체 개수에서 연속으로 사용된 클러스터의 개수를 뺀 수의 비율(수학식 1로 나타난다.)이 단편화 상태 정보가 된다.Next, fragmentation status information of the storage device is generated (504). The fragmentation status information may use the usage information for each cluster among the file system information acquired in step 502. [ More specifically, as described above, the total number of clusters used is counted from the usage information for each cluster, and the number of clusters consecutively used is counted. At this time, the ratio of the total number of used clusters to the total number of used clusters minus the number of consecutively used clusters (represented by Equation 1) becomes fragmentation status information.

그 다음, 저장 장치의 동작 속도를 예측한다(506). 도 5에는 나타나 있지 않으나, 저장 장치의 동작 속도를 예측하기 위해 미리 저장된 평균 동작 속도 테이블을 입력 받을 수 있다. 입력 받은 평균 동작 속도 테이블로부터 단계(504)에서 생성된 단편화 상태 정보와 단계(502)에서 획득한 클러스터의 크기에 대응하는 평균 동작 속도를 검색하고, 이를 저장 장치의 동작 속도로 예측할 수 있다.Next, the operating speed of the storage device is predicted (506). Although not shown in FIG. 5, a pre-stored average operation speed table can be input to predict the operation speed of the storage device. The average operation speed corresponding to the fragmentation state information generated in step 504 and the cluster size acquired in step 502 may be retrieved from the inputted average operation speed table and predicted based on the operation speed of the storage device.

그 다음, 저장 장치의 동작 속도와 데이터 저장에 필요한 최소 요구 속도를 비교한다(508). 데이터 저장에 필요한 최소 요구 속도는 저장 장치에 입력되는 정보의 기록 속도(예를 들어, 저장 장치가 비디오 카메라에 사용되는 경우, 영상이 저장 장치에 기록되는 속도는 20Mbps이고, 데이터 저장에 필요한 최소 요구 속도는 20Mbps이다)일 수 있다. Then, the operating speed of the storage device is compared with the minimum required speed for data storage (508). The minimum required speed for data storage is the recording speed of the information input to the storage device (for example, when the storage device is used in a video camera, the speed at which the image is recorded on the storage device is 20 Mbps, Speed is 20 Mbps).

마지막으로, 저장 장치의 정상 동작 가능 여부를 판단한다(510). 단계(506)에서 예측한 저장 장치의 동작 속도가 데이터 저장에 필요한 최소 요구 속도보다 작은 경우 정상 동작 가능하지 않으므로, 저장 장치를 포맷한다(512).Finally, it is determined whether the normal operation of the storage device is possible (510). If the operation speed of the storage device predicted in step 506 is smaller than the minimum required speed for data storage, the storage device is formatted (512) because the normal operation is not possible.

전술한 본 발명은, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 있어 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능하므로 전술한 실시예 및 첨부된 도면에 의해 한정되는 것이 아니다.While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, But the present invention is not limited thereto.

Claims (8)

입력부가 저장 장치로부터 파일 시스템 정보를 획득하는 단계;
단편화 상태 산출부가 상기 파일 시스템 정보를 이용하여 상기 저장 장치의 단편화 상태 정보를 생성하는 단계;
동작 속도 예측부가 상기 단편화 상태 정보를 이용하여 상기 저장 장치의 동작 속도를 예측하는 단계; 및
판단부가 예측된 상기 저장 장치의 동작 속도와 데이터 저장에 필요한 최소 요구 속도를 비교하여 상기 저장 장치의 정상 동작 가능 여부를 판단하는 단계를 포함하고,
상기 저장 장치의 동작 속도를 예측하는 단계는
미리 저장된 평균 동작 속도 테이블을 입력 받는 단계;
상기 평균 동작 속도 테이블로부터 상기 생성된 단편화 상태 정보에 대응하는 평균 동작 속도를 검색하는 단계; 및
검색된 상기 평균 동작 속도를 상기 저장 장치의 동작 속도로 결정하는 단계
를 포함하는 것을 특징으로 하는 저장 장치의 오동작 방지 방법.
The input unit acquiring file system information from the storage device;
The fragmentation status calculator generates fragmentation status information of the storage device using the file system information;
Estimating an operating speed of the storage device using the fragmented status information; And
Determining whether a normal operation of the storage device is possible by comparing an operation speed of the storage device predicted by the judgment unit with a minimum required speed for data storage,
The step of predicting the operating speed of the storage device
Receiving a pre-stored average operation speed table;
Retrieving an average operation rate corresponding to the generated fragmented state information from the average operation rate table; And
Determining the detected average operation speed as an operation speed of the storage device
And a controller for controlling the operation of the storage device.
제1항에 있어서,
상기 저장 장치가 정상 동작 가능하지 않다고 판단된 경우, 초기화부가 상기 저장 장치를 초기화하는 단계
를 더 포함하는 저장 장치의 오동작 방지 방법.
The method according to claim 1,
If it is determined that the storage device is not normally operable, initializing the storage device
Further comprising the steps of:
제1항에 있어서,
상기 저장 장치의 단편화 상태 정보를 생성하는 단계는
상기 단편화 상태 산출부가 수학식 1에 의해 단편화 상태 정보를 생성하는 단계

[수학식 1]
Figure 112014089420316-pat00004

를 포함하는 저장 장치의 오동작 방지 방법.
The method according to claim 1,
The step of generating the fragmentation status information of the storage device
Wherein the fragmentation state calculating unit generates fragmentation state information according to Equation (1)

[Equation 1]
Figure 112014089420316-pat00004

And a controller for controlling the operation of the storage device.
삭제delete 저장 장치로부터 파일 시스템 정보를 획득하는 입력부;
상기 파일 시스템 정보를 이용하여 상기 저장 장치의 단편화 상태 정보를 생성하는 단편화 상태 산출부;
상기 단편화 상태 정보를 이용하여 상기 저장 장치의 동작 속도를 예측하는 동작 속도 예측부 및
예측된 상기 저장 장치의 동작 속도와 데이터 저장에 필요한 최소 요구 속도를 비교하여 상기 저장 장치의 정상 동작 가능 여부를 판단하는 판단부를 포함하고,
상기 동작 속도 예측부는
미리 저장된 평균 동작 속도 테이블을 입력 받고, 상기 평균 동작 속도 테이블로부터 상기 생성된 단편화 상태 정보에 대응하는 평균 동작 속도를 검색하여, 검색된 상기 평균 동작 속도를 상기 저장 장치의 동작 속도로 결정하는 것을 특징으로 하는
를 포함하는 저장 장치의 오동작 방지 장치.
An input unit for obtaining file system information from a storage device;
A fragmentation state calculation unit for generating fragmentation state information of the storage device using the file system information;
An operation speed prediction unit for predicting an operation speed of the storage device using the fragmentation status information,
And a determination unit for determining whether a normal operation of the storage device is possible by comparing a predicted operation speed of the storage device with a minimum required speed for data storage,
The operation speed predicting unit
The average operation speed corresponding to the fragmented state information is retrieved from the average operation speed table and the retrieved average operation speed is determined as the operation speed of the storage device. doing
And a controller for controlling the malfunction of the storage device.
제5항에 있어서,
상기 저장 장치가 정상 동작 가능하지 않다고 판단된 경우, 상기 저장 장치를 초기화하는 초기화부
를 더 포함하는 저장 장치의 오동작 방지 장치.
6. The method of claim 5,
When it is determined that the storage device is not normally operable,
Further comprising: a storage unit for storing the malfunction information;
제5항에 있어서,
상기 단편화 상태 산출부는
수학식 1에 의해 단편화 상태 정보를 생성하는
[수학식 1]
Figure 112013066788148-pat00005

저장 장치의 오동작 방지 장치.
6. The method of claim 5,
The fragmentation state calculation unit
The fragmentation status information is generated by Equation (1)
[Equation 1]
Figure 112013066788148-pat00005

An apparatus for preventing malfunction of a storage device.
삭제delete
KR20130087186A 2013-07-24 2013-07-24 Method and apparatus for preventing misoperation of storage device KR101487609B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR20130087186A KR101487609B1 (en) 2013-07-24 2013-07-24 Method and apparatus for preventing misoperation of storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR20130087186A KR101487609B1 (en) 2013-07-24 2013-07-24 Method and apparatus for preventing misoperation of storage device

Publications (1)

Publication Number Publication Date
KR101487609B1 true KR101487609B1 (en) 2015-01-29

Family

ID=52592987

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20130087186A KR101487609B1 (en) 2013-07-24 2013-07-24 Method and apparatus for preventing misoperation of storage device

Country Status (1)

Country Link
KR (1) KR101487609B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003308178A (en) 2002-04-18 2003-10-31 Nec Soft Ltd Information processor and information processing method
JP2008123255A (en) 2006-11-13 2008-05-29 Nec Corp File accumulation device, file accumulation method, and file management program
JP2010015251A (en) 2008-07-01 2010-01-21 Canon Inc Recording device
JP2011061735A (en) 2009-09-14 2011-03-24 Ricoh Co Ltd Image forming apparatus and image information processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003308178A (en) 2002-04-18 2003-10-31 Nec Soft Ltd Information processor and information processing method
JP2008123255A (en) 2006-11-13 2008-05-29 Nec Corp File accumulation device, file accumulation method, and file management program
JP2010015251A (en) 2008-07-01 2010-01-21 Canon Inc Recording device
JP2011061735A (en) 2009-09-14 2011-03-24 Ricoh Co Ltd Image forming apparatus and image information processing method

Similar Documents

Publication Publication Date Title
US9582199B2 (en) Method and an apparatus for analyzing data to facilitate data allocation in a storage device
US8166231B2 (en) Memory controller, nonvolatile memory device, access device, and nonvolatile memory system
US8112575B2 (en) Memory controller, nonvolatile memory device, access device, and nonvolatile memory system
JP2013509658A (en) Allocation of storage memory based on future usage estimates
JP5235541B2 (en) Recording apparatus and method
JP2007193449A (en) Information recorder, and control method therefor
US8255656B2 (en) Storage device, memory controller, and data protection method
US20080101182A1 (en) Disc device
KR101487609B1 (en) Method and apparatus for preventing misoperation of storage device
KR101827920B1 (en) Diagnosis system for removable media drive and method for generating diagnosis information for removable media drive
JP5568083B2 (en) Semiconductor memory device, early warning system and early warning method thereof
US10353589B2 (en) Data storage device and data management method for data storage device
JP2009065387A (en) Video recorder, video recording method and program
US11507306B2 (en) Recording apparatus that records data using file system, control method therefor, and storage medium storing control program therefor
JP2008027248A (en) Information processing device, control method and control program of information processing system
US10950274B2 (en) Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium
JP2010015385A (en) Information processing apparatus, information processing method, and program
US20210055877A1 (en) Control apparatus, control method of recording apparatus, and non-transitory computer readable storage medium
JP2016015057A (en) Recording device
JP5489818B2 (en) Recording / reproducing apparatus and control method thereof
US20090319587A1 (en) Memory controller, nonvolatile memory device, and nonvolatile memory system
CN115831194A (en) Storage system and control method of nonvolatile memory
JP2008027108A (en) Recorder, storage medium and recording method, and recording program
JP2007058671A (en) Information processor, method and program, and recording medium
JP2015022785A (en) Recording device

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20180122

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20200103

Year of fee payment: 6