LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-05-2012, 02:44 PM   #1
mcooper
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Question using dd to recover .ISO image?


Hello!

I'm wondering if I could possibly get some information regarding the dd tool.

I've recently been tasked with a new member of my workplace providing me an external drive with a "clone" of their previous computer.

Their expectation is that I will be able to restore this disk image to a new computer that was built for them because they could not take their previous machine.

Fist off, I'm a linux noob (I'm more of a Windows and Mac OS guy, along with hardware) but I've got a supportive manager who always helps when needed

I've been provided a 75GB folder with 27 image files (Computer-160GB.iso.gz.aa-av) and a text file named "disk information" with the following.

> fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbbdfbbdf

Device Boot Start End Blocks Id System
/dev/sda1 1 6079 48829536 83 Linux
/dev/sda2 6080 12198 49150867+ 83 Linux
/dev/sda3 * 12199 18705 52267477+ 7 HPFS/NTFS
/dev/sda4 18706 19457 6040409+ 5 Extended
/dev/sda5 18706 19457 6040408+ 82 Linux swap / Solaris


From looking around, it seems there's a bit of a task in restoration (probably due to my unfamiliarity) but I haven't seen if I can unzip with ISO image and then somehow restore it to the new drive (which is a RAID 5 Array)

Am I looking at spending a lot of time for no success or do I just need to be pointed in the right direction?

Thanks much!
 
Old 03-05-2012, 03:00 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mcooper View Post
I haven't seen if I can unzip with ISO image
Why not? Seems reasonable. The "aa-av" part suggests it's been split with the 'split' utility ('man split' for more). Just try it and you should have confirmation the CDROMs weren't burned with some proprietary application and the disk image is intact by loop-mounting it afterwards ('man losetup' for more).
 
Old 03-05-2012, 03:07 PM   #3
mcooper
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Sorry, I should say my expectation would be to extract the zipped/split files into a single 160GB ISO image.

From there, I'm lost on what to do, and I haven't found any information on taking an .ISO and recovering the disk image made. I'm correct in thinking I have to identically partition the new drive before recovery? (if I'm wrong, you'll see how list I am)

Obviously this is out of my realm and the sad thing is the person who created this doesn't know how to preform the recovery part.

It would have been easier to have a disk image I could ghost with some kind of GUI :P
 
Old 03-05-2012, 03:51 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I get the feeling they used clonezilla to make this image.

I think the iso part is misleading.
 
Old 03-05-2012, 03:58 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mcooper View Post
Sorry, I should say my expectation would be to extract the zipped/split files into a single 160GB ISO image. From there, I'm lost on what to do, and I haven't found any information on taking an .ISO and recovering the disk image made.
You'll have to find out what the ISO contains. (And do note working with personal computers or finding out what SW was used to create the ISO doesn't require "feeling".) There's standard ISO tools on Linux allowing you create directory listings of ISO contents. Regardless of what the the ISO contains (a 'dd' single or several disk images, file system contents or something proprietary) you have to create the RAID5 array. If the ISO contains an OS you should check if you need a disk to boot from or if the OS can boot from RAID5.
 
Old 03-05-2012, 09:58 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
"(Computer-160GB.iso.gz.aa-av"

That iso was named poorly. I think the name should have been some name.img or such instead of name.iso.

The parts aa to av suggest to me that clonezilla or some part of was the tool used to clone the drive. Forget the iso part.
 
Old 03-06-2012, 10:21 AM   #7
mcooper
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Yeah, my understanding is an ISO of the entire drive was made, but then was split into DVD sized volumes. all using this dd command.

I talked with my 'customer' yesterday and told him I've got no experience with this stuff but he claims it to be incredibly easy.

"You just boot from a linux CD, I have Kubuntu and then you just run the reverse command"

Whatever that means..... either way, he's coming by to do it himself.. I'm not paid to do this, just to build the computer

We shall see what happens
 
Old 03-06-2012, 03:17 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I'd boot to clonezilla.
 
Old 03-06-2012, 09:00 PM   #9
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Rep: Reputation: Disabled
Quote:
Originally Posted by mcooper View Post
Yeah, my understanding is an ISO of the entire drive was made, but then was split into DVD sized volumes. all using this dd command.

I talked with my 'customer' yesterday and told him I've got no experience with this stuff but he claims it to be incredibly easy.

"You just boot from a linux CD, I have Kubuntu and then you just run the reverse command"

Whatever that means..... either way, he's coming by to do it himself.. I'm not paid to do this, just to build the computer

We shall see what happens
Well normally, yes, in a sense you simply use any live distro and type

dd if=/file.iso of=/dev/sda bs=4096 conv=notrunc,noerror

sda being the actual drive. It can be sdb or sdc.

But Im not sure on the RAID5 aspect.

Last edited by rootaccess; 03-06-2012 at 09:02 PM.
 
Old 03-07-2012, 03:39 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
RAID uses other device names but with respect to using 'dd' /dev/md0 is as much a block device as your average SCSI(-like) target.
 
Old 03-07-2012, 04:37 PM   #11
mcooper
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
so here's the command he punched in

the RAID volume shows up as /dev/sda so that's nice.

cat Filename.iso.gz.* | gzip -d | dd of=dev/sda

Supposedly this will extract the disk image and copy the data onto the new drive. Supposedly copying over partitions and boot sectors I guess...

We'll see in the morning if it even worked.
 
Old 03-07-2012, 06:06 PM   #12
elfenlied
Member
 
Registered: Dec 2004
Posts: 83

Rep: Reputation: 8
What that doesn't take into account is disk sizes. If his old disk was bigger than the current disk then it will fail, if the new disk is bigger than the old disk then he will have space that's unallocated. It's doable but there are better ways of doing it such as using clonezilla.
 
Old 03-09-2012, 01:38 PM   #13
mcooper
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
So it all worked!

Obviously it only brought back the original 160GB partitioned, and I want nothing to do with rezising partitions so that's his problem (my boss is already saying I've spent too much time on it)

There's also a Windows XP install that I sadly can't repair, so we either do a fresh install or forget it. Luckily I found I can do a fresh install on the old XP partition, then use rescatux to restore the GRUB boot loader (XP after Linux and it overwrites the boot sector and all...)

Hopefully this thing will finally be off the workbench today... then he wants two more identical machines that have similar restorations to have done.
 
  


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
LXer: Edit the Contents of ISO Disk Image with ISO Master LXer Syndicated Linux News 0 09-25-2011 04:20 PM
[SOLVED] Using Linux LiveCD + External HD To Recover A Windows ISO incomingfire Linux - Newbie 4 09-13-2009 03:13 PM
Can I recover Virtual Box Hard Drive Image (hdi)? tromboneman Linux - Newbie 1 12-07-2008 06:49 PM
How do you merge 4 CD ISO images into one DVD ISO image? nsydenham Linux - Software 6 01-15-2007 09:49 AM
Get files from a disk image ? (How do I recover a floppy using Linux ?) me3 Linux - Software 7 06-11-2006 05:28 PM

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

All times are GMT -5. The time now is 11:09 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