LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-15-2009, 08:56 PM   #1
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
Clone Hard Drive


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.

Thanks

Last edited by lindylex; 02-15-2009 at 09:09 PM.
 
Old 02-15-2009, 09:19 PM   #2
drpt
LQ Newbie
 
Registered: Mar 2007
Location: whereami Texas
Distribution: gentooo (don't you)
Posts: 9

Rep: Reputation: 0
you ould use dd ,, http://www.linuxquestions.org/questi...ommand-362506/
 
Old 02-15-2009, 10:14 PM   #3
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
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.
 
Old 02-16-2009, 04:02 PM   #4
drpt
LQ Newbie
 
Registered: Mar 2007
Location: whereami Texas
Distribution: gentooo (don't you)
Posts: 9

Rep: Reputation: 0
if the partition table is hatched http://www.cgsecurity.org/wiki/TestDisk does wonders
 
Old 02-16-2009, 06:27 PM   #5
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
^^ is one of those included in SystemRescueCd, I remember
 
Old 02-17-2009, 12:36 AM   #6
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Original Poster
Rep: Reputation: 17
"^^ 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.

Thanks much

Last edited by lindylex; 02-17-2009 at 02:23 AM.
 
Old 02-17-2009, 06:22 PM   #7
drpt
LQ Newbie
 
Registered: Mar 2007
Location: whereami Texas
Distribution: gentooo (don't you)
Posts: 9

Rep: Reputation: 0
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
 
Old 03-05-2009, 11:11 AM   #8
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Original Poster
Rep: Reputation: 17
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.

This has a really good explanation of how to use dd
http://www.backuphowto.info/linux-ba...-disk-clone-dd

http://www.linuxquestions.org/questi...ommand-362506/
http://lists.xensource.com/archives/.../msg00927.html
http://ubuntuforums.org/archive/index.php/t-308821.html
http://wahyupratama.blogspot.com/200...ive-using.html
http://www.debianadmin.com/recover-d...-ddrescue.html
http://www.pantz.org/software/dd/dri...hsshanddd.html
http://www.lupaworld.com/24775/viewspace-120130.html

Last edited by lindylex; 03-06-2009 at 07:10 AM.
 
Old 03-05-2009, 01:58 PM   #9
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
http://www.users.bigpond.net.au/hermanzone/p21.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
clone hard drive to smaller hard drive digity Linux - Newbie 8 01-11-2009 06:29 PM
Clone a dual booting IDE hard drive to a SATA hard drive namida12 Linux - Distributions 1 07-14-2008 10:01 AM
Best way to clone hard drive to server sharptech Linux - Newbie 5 06-23-2007 08:18 AM
Using dd to clone my hard drive Tommo Linux - Hardware 15 05-20-2007 03:49 PM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration