Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home Ā» Command-line Based Data Recovery Utility for Ubuntu Linux – SafeCopy
    Ubuntu

    Command-line Based Data Recovery Utility for Ubuntu Linux – SafeCopy

    GayanBy GayanJanuary 9, 2012Updated:September 25, 2012No Comments4 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    Even if you use highest quality materials and storing methods there’s still no guarantee against data corruption because shi* just happens :/. Although having a quality optical storage media devices such as CD/DVD (or even Blu-ray in today’s standards) do help and by using them with a utility like DvdDisaster can add even more durability.

    But tools like ‘DvdDisaster’ can do very little if your optical discs are already in a bad state and your only hope is to use some sort of a data recovery tool. If you use Ubuntu then you can try ‘SafeCopy’. It is based on the command but due to its simplicity, anyone can use it easily.

    Main features …

    *. Manually change “block sizes”, number of recover attempts, “force seek” and enable/disable driver buffer reading.

    *. Three (3) built in “modes”. If your media is slightly damaged then you can use the mode 0 (zero) as it’s the fastest method because in that mode SafeCopy won’t use aggressive methods. If you have a really bad media (or few blocks badly damaged) then you can use the mode 1 (default option) or 2.

    *. You can make it to exclude reading good blocks and only try to recover bad ones by first creating a log file. Then later you can use it to try to recover those sectors using aggressive methods.

    *. Change read attempts (you can manually define how many times should “SafeCopy” try to read through bad sectors).

    *. Use your own string to fill nonrecoverable sectors instead of filling them with zero bytes (default action).

    *. Change the scanning sector size. This is another useful feature for thoroughly scanning the media (increases the error recovery chances).

    *. Displays an output with nonrecoverable blocks, recovered bad blocks, copied bytes etc.

    These are just a very little of its features to mention.

    You can install SafeCopy in Ubuntu 12.04 Precise Pangolin, 11.10 Oneiric Ocelot, 11.04 Natty Narwhal, 10.10 and 10.04 by simply typing the below command in your Terminal window.

    sudo apt-get install safecopy

    And make sure to read its manual which is essential if you want to get the maximum out of it. For that please use the below command.

    man safecopy

    Or for a short lits of commands use the below one instead.

    safecopy -h

    An example …

    As said before even if it’s a command-line based powerful utility still the default mode is optimized for most users. Let’s say that I wanted to recover data from a CD. Then without changing anything I’d just use the below command.

    safecopy /dev/cdrom temp.iso

    Just replace “/dev/cdrom” with your actual drive path (whether it’s a HDD, Tape drive etc) and “temp.iso” with your preferred file name.

    If I want a bit additional control, say I wanted SafeCopy to try to read 5 times (default 3) before giving up on a bad sector (errrrr :D) then I’d use the “r” attribute (it’s all in the manual). For that I’ll use something like the below command.

    safecopy -r 5 /dev/cdrom

    If I wanted the same thing done but with a “debug” output for later analysis and need to use 512 bytes for the block size for increasing recovery rate, then I’ll use the below command.

    safecopy -r 5 –debug -b 512 /dev/cdrom temp.iso

    It also has few built in “debug” output settingsĀ  as shown below in the below screenshot.

    Again these are all laid out in the manual so if you’re serious about using SafeCopy then please read it. For further study, pleases visit this SafeCopy home page and this article for creating analysis outputs for more. But please remember that no tool can guarantee complete success and if the media is badly damaged then you might never be able to recover data from it. Good luck.

    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    Debian vs Ubuntu Server: A Brief Comparison for Beginners

    July 2, 2023

    CPU Based Simple System Stability and Benchmark Tester for Ubuntu Linux – systester

    June 16, 2023

    Typespeed: Typing Speed Testing Game for Ubuntu Linux

    March 12, 2023

    Debian vs Ubuntu in 2023- Which Linux OS is Right for You?

    January 6, 2023
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.