Recover Data from Crashed Disks with ddrescue command

How to save and recover Data from Crashed Disks with ddrescue command?
This is program is useful to rescue data in case I/O error.
How to solve problem “wrong fs type, bad option, bad superblock” error?

mount: wrong fs type, bad option, bad superblock on 192.168.1.155:/home/shared, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) 
In some cases useful info is found in syslog - try dmesg | tail or so.

My server
OS: Centos 7
HDD1: /dev/sda1
HDD2: /dev/sdb1 ( mount point /mnt)

HDD2: /dev/sdb1 is crash, not mount pint /mnt. How to do it! I attach a new HDD3 disk: /dev/sdc1 on my system. use ddrescue command.

Install ddrescue on centos


# yum install ddrescue

How do I use ddrescue command rescue a partition in /dev/sdb1 to /dev/sdc1


## is damaged, you will need to recreate it somehow on /dev/sdb. ##
ddrescue -f -n /dev/sdb /dev/sdc logfile
ddrescue -d -f -r3 /dev/sdb /dev/sdc logfile
## check for errors ##
fsck -v -f /dev/sdc1

Finish,

# mount /dev/sdc1 /mnt


Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server

How to install php7 on centos 6