Accessing Crashed Disk

Home » CentOS » Accessing Crashed Disk
CentOS 6 Comments

Hi

I have a CentOS server that crashed, it would no longer boot. I thought it was the disk with the OS that was the problem so I bought a new one and did a fresh install and now the computer is again up and running. But I’m having problems with accessing the old failed disk. I can see it with gnome-disk-utility and it says that the disk is OK but has 8 bad sectors. I can mount the boot partition from it and I can decrypt the main partition. But then I can see no way to mount the main partition. It is a LVM physical volume.

Any advice?

6 thoughts on - Accessing Crashed Disk

  • If you think the disk is going faulty the very first thing to do is to make a copy of it and then work on the copy. If your failed disk is on
    (as an example) /dev/sdc, the command is:

    # dd if=/dev/sdc of=/home/dd-copy-of-sdc

    It will take a long time, and ensure that /home has enough space for the complete disk. Use kpartx(8) to make the disk visible and you can then mount the partitions.

    lvs(8) will tell you about any logical volumes and IIRC, lvchange allows you to activate them. You can then mount them as normal.

  • Looks interesting. I’ve only used dd in anger, and then only maybe 3 or
    4 times over the last 20 years. It’s worth pointing out that ddrescue is not in the main distro, you’ll need to get it from EPEL.

    Whatever method you use though: “Be diligent because every time a physically damaged drive powers up and is able to output some data, it may be the very last time that it ever will.” (ddrescue manual section 9)

  • If the data is important to you, don’t mess around and contact a reputable professional data recovery expert or company.

    If losing your data is a viable option, try to do it yourself. Otherwise seek professional help, with the data recovery effort of course.

  • W dniu 14.12.2017 o 23:06, Nizar Armansyah pisze:

    If the data is important to you, you will get it back from your backups, won’t you?


    Over And Out MoonWolf