Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I formatted a NTFS hard drive with important data I would like to recover. I would like to clone the hard drive and try to restore the lost files from the cloned hard drive image using Stellar Phoenix recovery software.
How can I clone the hard drive with Linux in a format that this Windows application can open?
I tried Clonezilla but it seems like Clonezilla saves and restores only used blocks in the hard disk.
I would like to know the correct name of what I am trying to do if it is not called cloning.
Yep, dd will copy _everything_, including free space. You can also pipe dd to gzip, bzip2, lzma, etc. to compress the partition image.
Then you can mount the image you made in Linux and use a Linux app to recover files (sorry if you must use Stellar Phoeniz). SystemRescueCd comes with several you can try.
"^^ is one of those included in SystemRescueCd, I remembe" yes
That dd tutorial link was great.
When I tried dd it failed when it encountered errors on the hard drive even when I used the conv=noerror flag. I ended up using dd_rescue like this.
First I install it.
aptitude install ddrescue
Then I made a back up to another computer using ssh.
dd_rescue /dev/sda1 - | ssh username@machineip ‘cat /datarecovery/backup.img’
Problems
1. The image file format Stellar Phoenex could not read. What kind of format does dd_rescue produce?
2. What linux tool(s) can I use to salvage any data from my bit for bit hard drive image?
3. Is there a way I can mount the image in Windows? That would let S.P. do it's magic.
GetdataBack for NTFS can read the image file created with dd_rescue. That was a nice surprise but I want to see what other application are out there that might give me better results. I preffer the results I received with Stellar P. over GetDataBack. But S.P. does not want to open the image.
[UPDATE]
testdisk_win.exe path/to/hadimage.img
This seems to work I will let you know what results I get.
It does not find allow me to restore any files from the previous ntfs file system.
if you restore the image to a empty partition, then use Stellar Phoenex<br>
if windows complains about the partition not formatted then run test disk and repair the partition table and try again with sp
drpt, Thanks
[SOLUTION]
Just take the .img bit for bit hard drive image I created using dd on Linux and palce it on a real hard drive partition that Windows can see then use Stellar Phoenix to recover the contents from the formatted hard drive.
Thanks
These are some of the best collection of sites on how to use the dd command for Linux. Use the first link if you are a beginner.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.