Transfer disk image to larger/smaller disk

Posted by forthrin on Super User See other posts from Super User or by forthrin
Published on 2012-11-28T16:32:06Z Indexed on 2012/11/28 17:07 UTC
Read the original article Hit count: 150

Filed under:
|
|

I need to switch the hard drive on a 2006 iMac to a new SSD. I don't have the original installation CDs. I know I can order CDs from Apple, but this costs money.

Someone told me it's possible to rip the image of the old drive and transfer to the new drive. If so, does the size of the new drive have to be exactly the same as the old?

If not, my questions are:

  1. Is it possible to "stretch" the image from 120 MB disk to a 256 MB disk (numbers are examples)? If so, what is the command line for this?

  2. Likewise, is it possible to "shrink" an image from a larger disk (eg. 256 MB) to a smaller disk (eg. 120 MB), provided that the actual space used on the disk does not exceed 120 MB? How do you do this on the command line?

© Super User or respective owner

Related posts about osx

Related posts about unix