Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-24-2013, 12:53 AM   #1
LQ Newbie
Registered: Sep 2008
Location: truth or consequences, nm
Distribution: suse
Posts: 18

Rep: Reputation: 11
Forgot how I imaged my hard drive, dd, ddrescue, ntfsclone???

Been three years since I did it. I split an 80gb drive up between 9 .img files I vaguely remember doing it but don't remember anything more than that.

I suspect whatever command I used automatically split the files but I might have did the "skip" "seek" thing. They are compressed.

I was able to restore the image to the original 80gb drive (sda)
cat file.000 file.001 file.002 file.003 etc. | gunzip -c | dd of=/dev/sda conv=sync,noerror bs=64K
but it was not readable. So I formatted it and than tried dd to (sda1) the drive was no longer readable. No error's (both times) it finished completely.
76848496640 (77gb) copied, 1015.14 s, 75.7 mb/s
tried joining the files with cat and piping to gzip got a 33gb image file. tried ntfsclone on that unfortunately I don't remember the error I got.
what's odd is how dd managed to copy 77gb to the drive when the uncompressed version of the file was only 33gb.

also tried

cat file.000 file.001 file.002 etc. | gunzip -c | ntfsclone --restore-image --overwrite /dev/sda1 -
also tried

cat file.* | gunzip -c | ntfsclone -r -O /dev/sda1

I should have kept a pad handy to write down all the errors but didn't think of it at the time. Neither command worked.

If I search enough I might find the page I used as a template to generate the files but was hoping maybe somebody is familiar enough with ntfsclone to know what I did wrong. (assuming it's a ntfsclone file)

It could be ddrescue tried that also and it said something to the effect no input output file:

cat file.000 file.001 file.002 etc. | gunzip -c | ddrescue /dev/sda1

Used trinity rescue disk both to generate the file and in my attempt to recover it.

Robert Christ
Attached Thumbnails
Click image for larger version

Name:	ddfiles.jpg
Views:	23
Size:	35.9 KB
ID:	11694  
Old 01-24-2013, 11:54 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,837

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
I'll guess that you copied the files, not the blank space, with something like
mount /dev/sda1 /mnt
cp -a /mnt/* |split=whatever blah blah
tar -czf backup.tar.gz /mnt/* |split =2G (That was a kernel limit at some point)

I would run file on them all, and see if it recognises any signatures of a file type.
file *.00?
1 members found this post helpful.
Old 01-24-2013, 04:29 PM   #3
LQ Newbie
Registered: Sep 2008
Location: truth or consequences, nm
Distribution: suse
Posts: 18

Original Poster
Rep: Reputation: 11
Originally Posted by business_kid View Post
I would run file on them all, and see if it recognizes any signatures of a file type.
file *.00?
Running file on any one of the 9 individual compressed files just showed they were generated with gzip but I still had the 33gb decompressed file that I joined together using the cat piped to gzip and I ran file on that:
partimage file version 0.6.1 volume 0 type ntfs device /dev/sda1 original filename hp-win-back.img gzip compressed
Solved Thanks!

Robert Christ
Old 01-24-2013, 09:56 PM   #4
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 3,244

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
Those "file.000" "file.001" ... names are how partimage breaks up its output files. You do not want to combine them yourself. Just give partimage the name of the first file, and it will continue on with the others. The files will need to have their original names. Embedded in each file is the name of the next one in the sequence, but you do get a chance to provide an alternate name whenever a name is not found.


dd, ddrescue, file, image, ntfsclone

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dead hard drive, and failing ddrescue tromboneman Linux - Hardware 2 01-01-2010 07:12 PM
Forgot command to copy music to Hard drive? M$ISBS Linux - Software 6 04-02-2007 08:40 AM
LXer: Recover Data From a dead hard drive using ddrescue LXer Syndicated Linux News 0 11-28-2006 02:03 PM
Mount Imaged NTFS Drive quentusrex Linux - General 1 05-25-2005 05:05 PM
How do I use ntfsclone in drive to drive mode? Mr.Radar Linux - Software 0 06-25-2004 01:53 PM

All times are GMT -5. The time now is 01:50 AM.

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