Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I backed up my BOOT CAMP partition with Winclone, trying to restore I get the same error message...

zoesdad had the same result with the imageinfo. You need to jump ahead to post #12.

Code:
sudo /usr/bin/hdiutil attach -nomount -verbose -imagekey diskimage-class=CSparseBundleDiskImage [B]"/Users/Brian/Desktop/xpclone.winclone/Windows.sparsebundle"[/B]
sudo /usr/sbin/diskutil unmount [B]"/dev/disk0s3"[/B]
sudo "/Library/NTFSProgs/ntfsclone" --rescue -f -f -O [B]"/dev/disk0s3"[/B] [B]"/dev/disk2"[/B]

Substitute your source image, source device (provided after the first attach command) and destination device for the bolded bits.

You do seem to have a non-standard partition scheme since your Boot Camp partition is at /dev/disk0s2 not /dev/disk0s3. Did you remove the EFI partition? Can you post how showpart sees your disk?

B
 
zoesdad had the same result with the imageinfo. You need to jump ahead to post #12.

Code:
sudo /usr/bin/hdiutil attach -nomount -verbose -imagekey diskimage-class=CSparseBundleDiskImage [B]"/Users/Brian/Desktop/xpclone.winclone/Windows.sparsebundle"[/B]
sudo /usr/sbin/diskutil unmount [B]"/dev/disk0s3"[/B]
sudo "/Library/NTFSProgs/ntfsclone" --rescue -f -f -O [B]"/dev/disk0s3"[/B] [B]"/dev/disk2"[/B]

Substitute your source image, source device (provided after the first attach command) and destination device for the bolded bits.

You do seem to have a non-standard partition scheme since your Boot Camp partition is at /dev/disk0s2 not /dev/disk0s3. Did you remove the EFI partition? Can you post how showpart sees your disk?

B

Well, I'm trying something a bit different. Trying to encrypt the whole hard drive with True Crypt, and for that I can't use Boot Camp anymore, Windows has to be the first partition on the hard drive, then I'll need to install rEFit so i can pick the right booting system... I backed up both my Mac OS X and my Windows partitions so i didn't have to install everything again.

(Check out blog.taggesell.de/index.php?/archives/36-TrueCrypt-on-Macbook-Windows-XP.html )

I had some progress before you posted but then I went to bed that I'm going to post in a bit, but I'm at the last step, though the last set of commands didn't seem to work for me

Code:
sudo ~/Desktop/showpart /dev/disk0

Returns "command not found"
 
Dumb me, I didn't read I had to download something and put it on my desktop, I'll give that a shot and I'll keep you posted... Thanks again :)
 
I was typing the reply yesterday night hoping I would be able t be done that same night :p (Windows cloning took too long so I just crashed while waiting). Anyways here's a quick report of everything I did, hopefully this can work as a guide if anyone should have the same problems in a future...

These are the steps to correct this problem, note that you must replace everything that says "/Volumes/JucHDD1/Untitled.winclone/Windows.sparsebundle" with the real address for your Windows Image.

This "/dev/disk0s2" with your actual target partition and

"/dev/disk3" with the actual address your Windows Image got after mounting it.

Cheers and Good luck! Credits to Mr. Balamw, our true hero :p


NOTE: Balamw, I read you're thinking of rescuing the Winclone project? if so, I'm a developer, probably not as experienced as you are with Unix systems, I'm new programing for Mac OS X (Objective-C kinda pisses me off lol, but I'm giving Project Mono a shot). If you ever need a hand, please let me know, and probably keep it open source so we can make sure this time the project isn't lost.




-------------------------- GUIDE STARTS HERE ----------------------------

Hey friend, I'm sorry, I didn't see the second command line you posted.

So i tried this one.

Code:
sudo /usr/bin/hdiutil attach -nomount -verbose -imagekey diskimage-class=CSparseBundleDiskImage "/Volumes/JucHDD1/Untitled.winclone/Windows.sparsebundle"

and it seem to have worked a bit better, I got this in return

Code:
hdiutil: imageinfo: processing "/Volumes/JucHDD1/Untitled.winclone/Windows.sparsebundle"
CBSDBackingStore::newProbe directory, not a valid image file.
DIBackingStoreInstantiatorProbe: interface  0, score    -1000, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score     1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score    -1000, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: selecting CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: selecting CBSDBackingStore
CCachedBackingStore::readDataFork returning 29
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CMacBinaryEncoding
CCachedBackingStore::readDataFork returning 29
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CAppleSingleEncoding
CCachedBackingStore::readDataFork returning 29
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CMacBinaryEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CAppleSingleEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CUDIFEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CSegmentedNDIFEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CSegmentedUDIFEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CSegmentedUDIFRawEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIDiskImageInstantiatorProbe: interface  0, score     -100, CDARTDiskImage
DIDiskImageInstantiatorProbe: interface  1, score    -1000, CDiskCopy42DiskImage
DIDiskImageInstantiatorProbe: interface  2, score    -1000, CNDIFDiskImage
DIDiskImageInstantiatorProbe: interface  3, score    -1000, CUDIFDiskImage
DIDiskImageInstantiatorProbe: interface  5, score    -1000, CRawDiskImage
DIDiskImageInstantiatorProbe: interface  6, score     -100, CShadowedDiskImage
DIDiskImageInstantiatorProbe: interface  7, score     -100, CSparseDiskImage
DIDiskImageInstantiatorProbe: interface  8, score     9999, CSparseBundleDiskImage
DIDiskImageInstantiatorProbe: interface  9, score    -1000, CCFPlugInDiskImage
DIDiskImageInstantiatorProbe: interface 10, score     -100, CWrappedDiskImage
DIDiskImageInstantiatorProbe: selecting CSparseBundleDiskImage
DIDiskImageNewWithBackingStore: CSparseBundleDiskImage
DIDiskImageNewWithBackingStore: instantiator returned 0
hdiutil(964,0x7fff7091fbe0) malloc: *** error for object 0x100124490: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap
jucardi:~ jucardi$ sudo /usr/bin/hdiutil attach -nomount -verbose -imagekey diskimage-class=CSparseBundleDiskImage "/Volumes/JucHDD1/Untitled.winclone/Windows.sparsebundle"
Password:
Initializing…
CBSDBackingStore::newProbe directory, not a valid image file.
DIBackingStoreInstantiatorProbe: interface  0, score    -1000, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score     1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score    -1000, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: selecting CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: selecting CBSDBackingStore
CBSDBackingStore::newProbe directory, not a valid image file.
DIBackingStoreInstantiatorProbe: interface  0, score    -1000, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score     1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score    -1000, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: selecting CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: selecting CBSDBackingStore
CCachedBackingStore::readDataFork returning 29
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CMacBinaryEncoding
CCachedBackingStore::readDataFork returning 29
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CAppleSingleEncoding
CCachedBackingStore::readDataFork returning 29
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CMacBinaryEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CAppleSingleEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CUDIFEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CSegmentedNDIFEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CSegmentedUDIFEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CSegmentedUDIFRawEncoding
DIFileEncodingInstantiatorProbe: nothing to select.
DIDiskImageInstantiatorProbe: interface  0, score     -100, CDARTDiskImage
DIDiskImageInstantiatorProbe: interface  1, score    -1000, CDiskCopy42DiskImage
DIDiskImageInstantiatorProbe: interface  2, score    -1000, CNDIFDiskImage
DIDiskImageInstantiatorProbe: interface  3, score    -1000, CUDIFDiskImage
DIDiskImageInstantiatorProbe: interface  5, score    -1000, CRawDiskImage
DIDiskImageInstantiatorProbe: interface  6, score     -100, CShadowedDiskImage
DIDiskImageInstantiatorProbe: interface  7, score     -100, CSparseDiskImage
DIDiskImageInstantiatorProbe: interface  8, score     9999, CSparseBundleDiskImage
DIDiskImageInstantiatorProbe: interface  9, score    -1000, CCFPlugInDiskImage
DIDiskImageInstantiatorProbe: interface 10, score     -100, CWrappedDiskImage
DIDiskImageInstantiatorProbe: selecting CSparseBundleDiskImage
DIDiskImageNewWithBackingStore: CSparseBundleDiskImage
DIDiskImageNewWithBackingStore: instantiator returned 0
Attaching…
DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000005 seconds
2011-03-08 01:44:03.326 diskimages-helper[1295:4013] DIHelperHDID serveImage: attaching drive
{
    autodiskmount = 0;
    "hdiagent-drive-identifier" = "ED374210-E8D3-44EB-9A28-EA9CD5AB3A63";
    "unmount-timeout" = 0;
}
2011-03-08 01:44:03.333 diskimages-helper[1295:4013] DIHelperHDID serveImage: connecting to myDrive 0x490B
2011-03-08 01:44:03.334 diskimages-helper[1295:4013] DIHelperHDID serveImage: register _readBuffer 0x102b00000
2011-03-08 01:44:03.334 diskimages-helper[1295:4013] DIHelperHDID serveImage: activating drive port 0x4a07
2011-03-08 01:44:03.337 diskimages-helper[1295:4013] DIHelperHDID serveImage: set cache enabled=TRUE returned FAILURE.
2011-03-08 01:44:03.337 diskimages-helper[1295:4013] DIHelperHDID serveImage: set on IO thread=TRUE returned SUCCESS.
2011-03-08 01:44:03.339 diskimages-helper[1295:4013] DIHelperHDID serveImage: terminating UI Agent
2011-03-08 01:44:03.341 diskimages-helper[1295:4013] DIHelperHDID serveImage: starting server loop - myPort is 0x4a07
Finishing…
Finishing…
/dev/disk3          	                               	
jucardi:~ jucardi$ 2011-03-08 01:44:19.331 diskimages-helper[1295:4013] -processKernelRequest: will sleep received
2011-03-08 01:44:55.327 diskimages-helper[1295:4013] -processKernelRequest: will sleep received
2011-03-08 01:45:24.328 diskimages-helper[1295:4013] -processKernelRequest: will sleep received

after that I opened the Disk Utility and I saw my Windows partition there under "Untitled.winclone" but it was unmouted so i manually mounted it. After that I tried using the following command

Code:
sudo "/Library/NTFSProgs/ntfsclone" --rescue -f -f -O "/dev/disk0s2" "/dev/disk3"

and got the following error

Code:
ntfsclone v2.0.0 (libntfs 10:0:0)
ERROR(16): Opening '/dev/disk3' as NTFS failed: Resource busy

So I manually unmounted the target partition and the source partition with the Disk Utility, then tried the command again, and "Cloning NTFS ..." :)


After that I downloaded the showpart file from here (uncompress it on the Desktop)

Entered the following command

Code:
sudo ~/Desktop/showpart /dev/disk0

Which returned this.

Code:
Current GPT partition table:
 #      Start LBA      End LBA  Type
 1             40       409639  EFI System (FAT)
 2         409640    661012519  Mac OS X HFS+
 3      661276672    976773119  Basic Data

Current MBR partition table:
 # A    Start LBA      End LBA  Type
 1 *         2048       206847  07  NTFS/HPFS
 2         206848    327682047  07  NTFS/HPFS

MBR contents:
 Boot Code: Unknown, but bootable

Partition at LBA 40:
 Boot Code: None (Non-system disk message)
 File System: FAT32
 Listed in GPT as partition 1, type EFI System (FAT)

Partition at LBA 409640:
 Boot Code: None
 File System: Unknown
 Listed in GPT as partition 2, type Mac OS X HFS+

Partition at LBA 661276672:
 Boot Code: Windows BOOTMGR (Vista)
 File System: NTFS
 Listed in GPT as partition 3, type Basic Data

Partition at LBA 2048:
 Boot Code: Windows BOOTMGR (Vista)
 File System: NTFS
 Listed in MBR as partition 1, type 07  NTFS/HPFS, active

Partition at LBA 206848:
 Boot Code: Windows BOOTMGR (Vista)
 File System: NTFS
 Listed in MBR as partition 2, type 07  NTFS/HPFS

Then I entered this command (if your Winclone app isn't in the normal Application folder, you must correct the address bellow)

Code:
sudo "/Applications/Winclone.app/Contents/Resources/gptrefresh" -f -w -m "/Volumes/JucHDD1/Untitled.winclone/Windows.sparsebundle" -a 3 -u -i 0x07 "/dev/disk0"

And got the following... Making it work btw.
Code:
 -------------------------------------- GPT ----------------------------------
      start       size  index  contents
        40      409639      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
    409640   661012519      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
 661276672   976773119      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


 ----------------------------- BIOS Partition Table--------------------------
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
*1: 07    0  32  33 -   12 223  19 [      2048 -     204800]
 2: 07   12 223  20 - 1023 254  63 [    206848 -  327475200]
 3: 00    0   0   0 -    0   0   0 [         0 -          0]
 4: 00    0   0   0 -    0   0   0 [         0 -          0]
lba is different: 1 2048
lba_size is different: 409639 204800
start_head is different: 0 32
start_sector is different: 2 33
end_head is different: 127 223
end_sector is different: 14 19
end_track is different: 25 12
type is different: ee 07
The GPT and BIOS partitions appear to be inconsistent with each other!


---------------------------------------------------------------
-----------------New Partition Table to write------------------
---------------------------------------------------------------


 ----------------------------- BIOS Partition Table--------------------------
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 -   25 127  14 [         1 -     409639]
 2: AF   25 127  15 - 1023  32  14 [    409640 -  660602880]
*3: 07 1023 145   8 - 1023  80  15 [ 661276672 -  315496448]
 4: 00    0   0   0 -    0   0   0 [         0 -          0]
error opening mbr file.: No such file or directory
jucardi:~ jucardi$ "/Applications/Winclone.app/Contents/Resources/gptrefresh" -f -w -m "/Users/Brian/Desktop/xpclone.winclone/boot.mbr" -a 3 -u -i 0x07 "/dev/disk0"
/dev/disk0 must be run as root
jucardi:~ jucardi$ sudo "/Applications/Winclone.app/Contents/Resources/gptrefresh" -f -w -m "/Volumes/JucHDD1/Untitled.winclone/Windows.sparsebundle" -a 3 -u -i 0x07 "/dev/disk0"
 -------------------------------------- GPT ----------------------------------
      start       size  index  contents
        40      409639      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
    409640   661012519      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
 661276672   976773119      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


 ----------------------------- BIOS Partition Table--------------------------
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
*1: 07    0  32  33 -   12 223  19 [      2048 -     204800]
 2: 07   12 223  20 - 1023 254  63 [    206848 -  327475200]
 3: 00    0   0   0 -    0   0   0 [         0 -          0]
 4: 00    0   0   0 -    0   0   0 [         0 -          0]
lba is different: 1 2048
lba_size is different: 409639 204800
start_head is different: 0 32
start_sector is different: 2 33
end_head is different: 127 223
end_sector is different: 14 19
end_track is different: 25 12
type is different: ee 07
The GPT and BIOS partitions appear to be inconsistent with each other!


---------------------------------------------------------------
-----------------New Partition Table to write------------------
---------------------------------------------------------------


 ----------------------------- BIOS Partition Table--------------------------
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 -   25 127  14 [         1 -     409639]
 2: AF   25 127  15 - 1023  32  14 [    409640 -  660602880]
*3: 07 1023 145   8 - 1023  80  15 [ 661276672 -  315496448]
 4: 00    0   0   0 -    0   0   0 [         0 -          0]
Updating start sector offset
 
Well, I'm trying something a bit different. Trying to encrypt the whole hard drive with True Crypt, and for that I can't use Boot Camp anymore, Windows has to be the first partition on the hard drive, then I'll need to install rEFit so i can pick the right booting system...

Just note that the commands provided work fine in the plain vanilla model, but I'm not sure how it'll all work with TrueCrypt and rEFIt.

Do keep us posted.

B
 
Just note that the commands provided work fine in the plain vanilla model, but I'm not sure how it'll all work with TrueCrypt and rEFIt.

Do keep us posted.

B

If I get it to work, I must certainly will keep you posted letting you know how i did it... Balamw thank you so much for your help, you saved me a lot of work with your posts. And please do let me know if you would like a hand rescuing the Winclone project
 
Well I managed to have Mac OS, Windows and Linux with the help of rEFI and the windows partition worked perfectly, but something weird happened.

After restoring with Disk utility my old Mac OS X partition, my windows and linux partition got damaged so i had to fix then with their own setups.

now... before i started doing anything, i deleted all partitions in my hard drive then created a windows partition, yet somehow my windows partition ended at the end of the hard drive and my Mac partition at the begining and I need the Windows partition at the begining of the Hard Drive in order for it to work...

I guess im gonna try again, this time leaving the first 100Kb free on the hard drive and see how it goes.

Any suggestions, I'm all ears
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.