Help - Search - Members - Calendar
Full Version: Restoring a partition from a .DMG file
InsanelyMac Forum > OSx86 Project > Post-Installation Discussion > OSx86 Leopard (10.5)
EuphangeL
Greetings everyone

I am really left off right now. I wanted to expand the size of my OSX partition so i made an image of it using Disk Utility from iDeneb 10.5.5 disk (i booted and opened the Disk Utility) and that created a DMG image file which i saved to another HFS+ partition on the same drive.

I deleted the OSX partition and reformated it with osx extended journaled and booted again with iDeneb 10.5.5 to restore the partition image to the newly formated mac os extended journaled partition. I select the DMG and as destination the new partition, click restore and BOOM, the disk utility says:

Could not validate source - error 254

What can i do? I've encountered the same error message before when trying to restore a vanilla OSX dvd to a hard drive partition. I never figured out why this is happening and im really left off right now because i have valuable files into this partition (which seems to be just a DMG file now..)

Im desperately seeking for assistance
EuphangeL
I've just discoverd some things:

In Disk Utility the image information at the bottom of the window says: Partition Map Scheme: No partition map

Why is that? Here i have to notice that my drive is MBR partitioned

And since i cant mount the image (propably because it cant find any partitions in it) i did the following:

sudo hdiutil attach /Volumes/MACCLN/MACOSX.DMG -nomount

and

sudo dd if=/dev/disk1 of=/dev/disk0s2

with disk0s2 being the new MACOSX volume which i have unmounted or else the dd gave me resource busy

Will this work? I still cant understand why dd is taking soooo long. The disk activity is just 2MB/s

The image file is 60GB by the way.
EuphangeL
Now it is clear that the thing that does not go well is that the image does not have a format but its possibly a block by block copy of the volume here is what asr says to me:

sudo asr restore --source /Volumes/MACCLN/MACOSX.DMG --target /dev/disk0s2 --erase --format HFS+ --noverify
Validating target...done
Validating source...
Could not detect format of volume on device /dev/disk1
Could not validate source - error 254

What can i do? How can i restore a block by block image? Is there any way to properly do this?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.