I have an iMac with the HD split into two equal size partitions. Both partitions are bootable with Snow Leopard. I then start-up partition 1 with an admin user account.
I want to create a disk image of partition 2 and save the .dmg file on partition 1. I have to do this remotely from a box running Linux.
The shell command I'm using is
ssh <username>@<ipaddress> "echo password | sudo -S hdiutil create -puppetstrings -srcfolder /Volumes/Part2 /Users/Shared/image.dmg"
When I run the command from the remote shell it consistently dies around 98%, but when I run the hdiutil from / of partition 1 on the box hosting partition 2, everything works as expected.
I've been able to run other hdiutil commands from the remote shell. I'm only having a problem with the create verb.
I don't believe it's a network issue because it always dies in the same place. I'm puzzled why the same command would behave differently when executed from a remote shell.