Recover deleted files from LinuxAs a multi-user, multi-tasking Linux operating system, there will be no backup in the case of some user files mistakenly deleted, Linux files under the once deleted, it is difficult to
Today, a customer's database accidentally deleted the entire directory of data files, operating system level deletion, but fortunately the database did not crash, still in the open state, the customer found a problem, help us, and finally fully recover all the data files.
Under Linux, a general demonstration of the re
is currently using a file on disk, a mount point, or even a network port, and gives detailed information about the program process. Common parameters:-m Specifies the partition or mount point to view-V lists details such as the user that the process belongs to, the process-related commands, and so on, if the parameter is not used, only the PID is listed-U lists the users that the process belongs to- K sends the KILL-9 signal to the end of the process associated with the current directory or mo
database has become a mount state, in the use of file handles to recover the data file is too late, so I used the general recovery method , unexpectedly ah unexpectedly, archive log is not complete, immediately I whole person "spartan", finally tell a friend to do DBA need courage.
Below I use my own test library to demonstrate the operating system RM-level Delete data
lsof to see if there is currently a process open/var/logmessages file, as follows:# lsof |grep/var/log/messagesSyslogd 1283 root 2w REG 3,3 5381017 1773647/var/log/messages (Deleted)From the above information you can see that the PID 1283 (syslogd) Open file has a file descriptor of 2. You can also see/var/log/messages has been marked for deletion.Recovery:Cat /PROC/1283/FD/2 >/var/log/messages Recovery SuccessThis method of recovering deleted files
the/OPT directory
CD to the/OPT directory, at this point we see the understanding of the Restore tool, and then into the Extundelete Restore tool directory, enter./configure (if you do not have GCC gcc-c++ will be an error, install it)
To compileOnce the compilation is complete, the installation steps are complete and then tested.Three Experimental test1. Create three files on a mounted hard drive2. Delete Two of the
Rationale: The directory and name of the process are stored under the/proc partition of the Linux system, containing the FD (file descriptor) and the subdirectory under it (the link to the process open file), and if a file is deleted, there is also a reference to the Inode:/proc/process number/fd/file descriptor. All we need to know is that the process PID and file descriptor FD for the currently open file can use the Lsof tool to list the
Tags: linux extundelete restore mistakenly deleted filesFirst, before the experiment needs to know1, Extundelete is a tool to restore the EXT3,EXT4 partition file, he will use the log information in the partition to try to recover the deleted files, but not every deleted file can be ensured to be restored, so the important file everyone still want to do backup. T
Use the Delete command with caution!Recovery is because your sector is not covered, this is why copy files so slow and delete files so fast, because the deletion is only the filename, the inode number is still good.The downloaded EXTUNDELETE-0.2.4.TAR.BZ2 software must first be uploaded to the Linux system and extractedTAR-JXVF extundelete-0.2.4.tar.bz2Uninstall
Rm * An error occurred while deleting too many files/bin/rm: Argumentlisttoo solved the problem of too many Chinese files in a single directory in Linux, if you try to use rm * to delete all f
The Linux rm command is used to delete a file or directory.SyntaxRm [options] name...Parameters:-I ask for confirmation one by one before deletion.-F the original file is deleted directly even if its attribute is set to "read-only". You do not need to confirm the attribute one by one.-R also deletes directories and the following files one by one.Instanc
Converting the rm command in linux to moving a file to the recycle bin rm is a command for deleting files in Linux. it is a very powerful but dangerous command in Linux, in particular, rm
Yesterday I learned the command to create files and directories mkdir, today to learn Linux delete files and directories command: RM command. RM is a commonly used command that deletes one or more files or directories in a directo
), which is referenced in this Python implementation.
All output information (except for help information) is colored in order to be as interesting as possible.
As much as possible, all behaviors are consistent with the RM command that comes with the system, and all inconsistencies are treated as bugs, except for features that are impossible or unnecessary to implement (such as three erase file blocks that make the file unrecoverable and attem
How do I recover from an Ubuntu system that uses RM commands to delete files?If it is a EXT3/EXT4 file system, you can use the Extundelete tool to recover.$ df-ht File system type capacity used available% mount point/dev/sda1 ext4 455G 366G 66G 85%/Reference article:1. http://longgeek.com/2012/11/25/extundelete-recover
I learned the command to create files and directories mkdir, today I'm going to learn the commands for deleting files and directories in Linux: RM command. RM is a commonly used command that deletes one or more files or directorie
####### Happy weekend! #######
### Search and clear files and folders from the sea. For the column spaces, refer to Haha, ^_^ ###
####### Gold coins are not required, even though they are still poor, \ (^ o ^ )/~ ######
I. Three Methods for clearing files
1 echo ""> test.txt
2> test.txt3 CAT/dev/null> test.txt
Ii. Linux folder clearing command
For how recovery works, see the first blog on the Restoration topic:Http://fly1116.blog.51cto.com/8301004/1337681For a brief introduction to the fly. sh script used in the restoration process and other scripts, see the second blog on the Restoration topic:Http://fly1116.blog.51cto.com/8301004/1338316If the database is not in the archive State and there is no backup, you can use the operating system command rm to accidentally delete all data
There was a client recovery request this morning, and he accidentally used the RM-RF oradata command in the Solaris system to delete all the data files under one partition. Now do not know how to do, ask us to give support. Check it out. found that the database is not crash, it seems that directly consider the use of handle recoveryROOT@CNISORCLSVR # Uname-aSunOS cnisorclsvr 5.9 generic_112233-08 sun4u SPAR
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.