Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was trying to resize an external ntfs hard drive, so that I could make room at the front of the disk for a swap partition. At the end of the process gparted encountered an error. It couldn't see my disk again until I rebooted the system. Now, when it looks at the hard drive, it sees it as one big unpartitioned hard drive.

I'm pretty sure all the data is still there, uncorrupted. I just can't access it. How can I fix this?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I used some old tools from Acronis (I don't remember the whole name), but you can try this utity: Partition recovery

Or you can try to use this utility under Linux: PartImage . If you have no idea how to start it - the most simplest way is Live CD SystemRescueCD

share|improve this answer

I would use testdisk, that way you can retrieve just the files you need. If you have the space, always use the Linux/UNIX dd utility to make a backup of your disk. If you use gzip compression, any unused space or text files should compress very well.

dd example with gzip compression (make sure the drive is NOT mounted first):

mount | grep [/dev/sdb|`vol_id --uuid /dev/sdb`]
sudo dd if=/dev/sdb | gzip -c > /path/to/image.img

now you can run testdisk (exits for Windows, Mac OS X, and Linux among other platforms)

sudo testdisk /dev/sdb

Follow the instructions ...

See http://www.cgsecurity.org/wiki/TestDisk for more inforation on testdisk and http://ss64.com/bash/dd.html for more info on dd.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.