File recovery method and device of linux system

A file recovery and recovery technology, which is applied in the computer field, can solve the problems of difficulty in recovering Ext4 format disk data, inability to use recovery tools directly, and difficult data recovery, etc.

Inactive Publication Date: 2014-12-10
上海天脉聚源文化传媒有限公司
View PDF5 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The software deleted through the graphical interface on the Linux server is generally recoverable in the recycle bin, but the data deleted through the command line with the "rm-rf*" command is difficult to recover
Disks in Ext2 file format can usually be recovere...

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File recovery method and device of linux system
  • File recovery method and device of linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0047] In a Linux system, the inode value of the "root" directory is generally 2. When a partition is mounted to a directory, the inode value of the "root" directory is 2. First, mount the disk partition with lost data to the / mnt directory , To avoid data being overwritten, deleting files under Linux is not actually deleting the files in the disk partition, but clearing the sector pointers in the inode node of the files, and releasing the data blocks corresponding to these data. When the released data blocks are When the system is redistributed, the deleted data will be overwritten, so after deleting the data by mistake, you should immediately unmount the partition where t...

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

PUM

No PUM Login to view more

Abstract

The invention discloses a file recovery method and device of a linux system. The file recovery method and device of the linux system are used for recovering Ext4 files which are deleted through rm by mistake on a linux server, and avoiding enormous losses caused due to the fact that important data of the server are lost. The method includes the steps that after file data of an Ext4 file system are deleted by mistake, a disk partition where the file data which are deleted by mistake are located is recorded as a disk partition to be recovered; a root directory of the linux system is switched to; the position of the disk partition to be recovered is sought for in a directory tree to obtain position information; the disk partition to be recovered is unloaded according to the position information; an inode value is check to confirm that the file data which are deleted by mistake are located in the root directory of the linux system at present; a disk traversal tool is downloaded and installed; the disk partition to be recovered is traversed, a list of all files with invalid inode information is obtained, and the file data which are deleted by mistake are found out; the inode information corresponding to the file data which are deleted by mistake is changed to be valid.

Description

Technical field [0001] The invention relates to the field of computer technology, in particular to a file recovery method and device of a linux system. Background technique [0002] Linux is a free-to-use and freely disseminated Unix-like (Eunice) operating system. It is a multi-user, multi-tasking, multi-threaded and multi-CPU operating system. It supports 32-bit and 64-bit hardware. Linux inherits Unix's network-centric design philosophy and is a multi-user network operating system with stable performance. [0003] The basic idea of ​​Linux has two points: first, everything is a file; second, every software has a certain purpose. The first one in detail is that everything in the system comes down to one file, including commands, hardware and software devices, operating systems, processes, etc. For the operating system kernel, they are all regarded as files with their own characteristics or types. . [0004] There are three types of Linux file systems: Ext 2, Ext 3, and Ext 4. ...

Claims

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

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/14
Inventor 张新亮
Owner 上海天脉聚源文化传媒有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products