0

I have a Windows drive that went bad. 500GB. I need data off it.

I'm new to Linux, so using the GUI version, not command prompt.

I downloaded the ISO and created a USB bootable drive, and am running Ubuntu from that right now, on the All In One computer that has the drive that needs recovery.

It will not mount, but under "Drives" I can see the 7 different partitions, and select the primary one (labeled correctly) with the C drive and all the data that should be on it.

I'm currently creating a partition image, and I was hoping to be able to mount it back in and navigate through the files.

I'm not sure if this is the best way to do this, or not.

Windows will not boot. When booting to run a CHKDSK /f or /r, it is taking FOREVER.

Right now, during the partition image creation, I have 11,608 bad sectors and it is 1% complete. It does say that it has saved 4GB of data, and 510MB is unreadable.

It's only one folder that I need: C:\Photos

Is there a better way to recover or access only that directory?


Update: It jumped to 70% complete now, 340GB done, 339GB unreadable. Yikes. Says a total of 16,024 sectors are bad.

Will CHKDSK even possibly fix this? I find it hard to believe that the data is just "gone"


CHKDSK ran, but now I can't read the superblock.

Dan
  • 1

1 Answers1

0

Run the following in Ubuntu's terminal:

sudo mount /dev/sdxx /mnt
cd /mnt
for i in `find . -name *`
do
    if [[ -r $i ]]
    then
        echo "$i is ok!"
        cp -f "$i" "/path/to/different/disk/that/is/uncorrupted/"
    else
        echo "$i is not ok."

If it does say $i is not ok, you have no chance of recovering that folder.

fosslinux
  • 3,831
  • So, it is SDA, and the partition is 5. My external is SDC. Would this be correct, or am I missing something?

    sudo mount /dev/sda /mnt cd /mnt for i in find . -name * do if [[ -r $i ]] then echo "$i is ok!" cp -f "$i" "/dev/sdc/" else echo "$i is not ok."

    – Dan Jul 23 '16 at 20:34
  • Is SDA5 the disk with Photos? – fosslinux Jul 23 '16 at 20:45
  • Yes, that is the NTFS Windows C Drive partition. – Dan Jul 23 '16 at 20:55
  • FYI, I tried mounting the image file that was created, and got the same error message as when trying to mount the ACTUAL volume--so creating the image did nothing. – Dan Jul 23 '16 at 20:59
  • When I attempt to mount the image I get this error: Mount is denied because the NTFS volume is already exclusively opened. The volume may already be mounted.... etc. etc. – Dan Jul 23 '16 at 21:03
  • Run sudo umount /dev/sda5 then my script – fosslinux Jul 23 '16 at 21:27
  • Okay, so when I did the CHK dsk, I try to run this command: sudo mount /dev/sda5 /mnt is says that it can't read the superblock – Dan Jul 25 '16 at 05:25
  • @Dan, you should avoid using chkdsk on a NTFS partition which is a bit more than slightly broken, nor rely on OS tools for mounting the drive. Please see the Q I've linked under your question for a proper recovery strategy. – Andrea Lazzarotto Jul 26 '16 at 21:56