Sparse Image Problem - 'Not enough space'

Discussion in 'macOS' started by NATO, Aug 14, 2007.

  1. NATO macrumors 68000

    NATO

    Joined:
    Feb 14, 2005
    Location:
    Northern Ireland
    #1
    Hi, I was hoping someone might know how to deal with a problem I'm having with a Sparse Image. It appears that the image has reached the capacity I initially set it to, and now that I'm trying to add new files to it, I'm expecting the image to grow to accommodate the new files. However, I'm simply getting a message there there isn't enough space. Would anyone know how I could fix this?
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Your problem stems from a misunderstanding about how sparse images work. Sparse images only use as much space as is actually needed to store their contents but cannot expand dynamically if the initial limit set when the sparse image is created is exceeded.

    Therefore the only solution is to create a new sparse image with a larger limit, copy all the files to the new image, and delete the old image.
     
  3. NATO thread starter macrumors 68000

    NATO

    Joined:
    Feb 14, 2005
    Location:
    Northern Ireland
    #3
    I didn't realise that, I was under the assumption a Sparse Image expanded in size, but now you mention how it really works, I guess that makes sense compared to normal disk images. Thanks for clearing that up for me :)
     
  4. brkirch macrumors regular

    Joined:
    Oct 18, 2001
    #4
    It is possible to resize a sparse image, but it must be done through the terminal. Open the Terminal (located in Applications > Utilities) and type
    Code:
    hdiutil resize -size
    then hit the space bar, type the size you want to it to be (for example, type 5g for 5 gigabytes) then hit the space bar again, drag the sparse image on the terminal window, click the terminal window to bring it to the front, and hit return.
     

Share This Page