Visualizzazione dei risultati da 1 a 2 su 2

Discussione: annullare un "rm -rf"

  1. #1

    annullare un "rm -rf"

    salve a tutti,
    ultimamente sono il mago dei purge e l'ultima è stato un "rm -rf" in home. evitanto gli inevitabili commenti: cosa posso fare? il filesystem è reiserfs

    grazie

  2. #2
    se era un file di testo puoi seguir queste info trovate qui


    Another method of file recovery is to use grep to search for text contained in the file. This approach is unlikely to work on anything but text files, and even then it may return a partial file or a file surrounded by text or binary junk. To use this approach, you type a command such as the following:

    # grep -a -B5 -A100 "Dear Senator Jones" /dev/sda4 > recover.txt

    This command searches for the text Dear Senator Jones on /dev/sda4 and returns the five lines before (-B5) and the 100 lines after (-A100) that string. The redirection operator stores the results in the file recover.txt. Because this operation involves a scan of the entire raw disk device, it's likely to take a while. (You can speed matters up slightly by omitting the redirection operator and instead cutting and pasting the returned lines from an xterm into a text editor; this enables you to hit Ctrl+C to cancel the operation once it's located the file. Another option is to use script to start a new shell that copies its output to a file, so you don't need to copy text into an editor.) This approach also works with any filesystem. If the file is fragmented, though, it will only return part of the file. If you misjudge the size of the file in lines, you'll either get just part of the file or too much -- possibly including binary data before, after, or even within the target file.
    che poi è la stessa cosa che spiegano qui


    un thread simile

    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.