Hello.
Does anyone help me for restore process in Redhat?
A friend of mine took an image of a machine installed CentOS. Most probably with using dd command. And now I have one file which is about 300 GB. I have tried to restore it to a SATA 320 GB Harddisk. The command I used is "# dd if=/media/disk/image of=/dev/sda1".
My source disk contains image connected via USB and the other target disk connected via USB too. When this command comleted I tried to look at inside but there is no meaningful info.
I added the image to SMART(ASR) program and shows the following
Image (273.230 GB)
Unallocated Data(31.5 KB)
image (Sector 0)
Linux (83) Partition (101.94 KB) FSEXT3(/boot)
image (Sector 63)
Type '8e' Partition (273.124 GB)
image (Sector 208,845)
Unallocated Data (7.55 MB)
image (Sector 572,990,355)
SMART only mounts the boot partition but I can not see the Type '8e' Partition.
Thanks to all reply.
You're trying to restore a drive to a partition. /dev/sda is the drive, /dev/sda1 is the first partition in the drive.
Try doing it again as
> dd if=/media/disk/image of=/dev/sda
I concur. When restoring an image you need to choose a destination disk, not a partition.
Alan Harper
you said the target disk is connected via USB. Are you sure it would be /dev/sda then? If you have a SATA drive in your computer, then the target drive could be /dev/sdb or /dev/sdc (since the media drive is connected via USB as well).
And as for the posts above, whether you use of=/dev/sda or /dev/sda1 will depend on if your friend imaged a partition or the whole drive.
And as for the posts above, whether you use of=/dev/sda or /dev/sda1 will depend on if your friend imaged a partition or the whole drive.
If you read his post again, you'll see that inside the image there are multiple partitions. If this is the case, you have an image of a drive, and not a partition. Note also that the 63 sector offset to the start of the first partition is consistent with a normal hard drive with reserved sectors after the MBR before the first partition.
Hence, there shouldn't be a question of how the image was made, you can work it out from the information provided.
If you read his post again, you'll see that inside the image there are multiple partitions.
Yea, I glossed over the sentence about putting the image in SMART.
Thanks to everyone.
I am trying the command #dd if=/media/disk/image of=/dev/sda
You are right I think I made a mistake with the first try of "#…….. of=/dev/sda1" command.
I will tell you the result when the restore process is completed.
Thanks again.
I have managed restoring the image. It works well.
The only problem is sda expression instead of sda1.
I corrected. Every thing is OK.