How to Recover a Linux Formatted Disk

Hard drive failure is most computer users' greatest fear. If your Linux formatted disk has conked out, don't panic. Fortunately, there are a variety of options available to Linux users experiencing hard drive issues. The open source nature of Linux means that there are freely available applications that can be used to recover entire Linux formatted disks with a few simple commands. Many of these applications seem technical in nature, but the commands used to do a basic recovery are very straight-forward and can be initiated in just a few steps.

Things You'll Need

  • ddrescue
Show More

Instructions

    • 1

      Launch Terminal. This application is the command prompt for Linux. It is usually found under "Applications" and "Accessories," but may be in a different location, depending on your Linux distribution.

    • 2

      Install ddrescue, a comprehensive data and disk recovery application designed for Linux, by executing the following command in Terminal (you may need to enter your administrative password to complete this action):
      sudo apt-get install ddrescue

    • 3

      Determine the logical name of the hard disk you need to recover by entering the following command in Terminal:
      sudo lshw -C disk

    • 4

      Recover the damaged or non-responsive hard disk to another location by entering the following command (where DISK1 is the bad disk and DISK2 is a good disk):
      sudo dd_rescue /dev/DISK1 /dev/DISK2/backup.img

    • 5

      Check the disk image for errors once the recovery is complete by executing the following command:
      sudo fsck -y /dev/DISK2/backup.img

    • 6

      Restore the disk image to another location from the recovery image by executing the following command:
      sudo dd_rescue /dev/sda2/backup.img /dev/sda1

Related Searches:

References

Comments

  • Mar 03, 2011
    i tried to recover my formatted hard disk(windows) through linux mint but i lost both o.s. need solutions

You May Also Like

  • Linux Hard Drive Recovery

    Whether caused by a total hard drive meltdown or simple accidental deletion, the idea of losing files is anxiety-inducing. How you recover...

  • How to Delete a Hard Drive on Linux

    The hard drive of a computer is where all the memory is stored and software is installed. Deleting a hard drive will...

  • How to Format a Hard Drive in Linux

    This article explains how to format a hard drive in Linux using the standard commands fdisk, mkfs and fsck. The procedure described...

  • How to Format Jump Drives in Linux

    Jump Drives are portable USB flash drives. To clear all files from your Jump Drive, you must format it. Jump Drives are...

  • How to Recover a FAT32 Partition

    A FAT32 partition is a hard drive that has been formatted to run two different operating systems (such as Windows XP and...

  • How to Format a Flash Drive in Linux

    If you're new to the Linux operating system, it may seem overwhelming at first. But you will soon realize that you can...

  • How to Restore & Backup to a Disk

    In Microsoft Windows operating systems, the Backup and Restore Center provides easy-to-use wizards for backing up important data and files to CDs...

  • How to Format a Linux Disk

    For a desktop Linux system, there are many graphical tools available for disk partitioning and formatting. The most famous are GParted and...

Related Ads

Featured