Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com

This Blog is protected by DMCA.com

huuphan.com. Powered by Blogger.

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


post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com