Results 1 to 4 of 4
Discuss How to resize a DMG with hdiutil? at the Tiger - Hackint0sh.org; hi, I've been trying to resize a DVD image with hdiutil. It showld work but ...
  1. #1
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default How to resize a DMG with hdiutil?

    hi, I've been trying to resize a DVD image with hdiutil. It showld work but it doesnt.
    I do:

    hdiutil resize -size 1g disk1.dmg
    hdiutil resize -size 1g -partitionOnly disk1.dmg
    hdiutil resize -size 1g -imageOnly disk1.dmg

    and I get this error every time,

    hdiutil: resize request is below minimum size allowed.
    hdiutil: resize: failed. Invalid argument (22)

    the image has read/write privileges, and is not mounted. Its also empty (I deleted all the contents, I just need the bootsector).
    Im missing something.....



  2. #2
    Rookie Array

    Join Date
    May 2006
    Posts
    12
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    this works perfectly fine for me :

    ~ : hdiutil resize -size 40M ~/Desktop/new4test.dmg
    ~ : ll ~/Desktop/new4test.dmg
    -rw-r--r-- 1 caytam caytam 41980928 Jul 30 07:24 ~/Desktop/new4test.dmg
    ~ : hdiutil resize -size 100M ~/Desktop/new4test.dmg
    ~ : ll ~/Desktop/new4test.dmg
    -rw-r--r-- 1 caytam caytam 104895488 Jul 30 07:25 ~/Desktop/new4test.dmg

    your problem should be elsewhere.

    Try to have a look to this i got different problem a bit time ago:

    http://www.hackint0sh.org/forum/show...41&postcount=7
    http://www.hackint0sh.org/forum/show...3&postcount=10

  3. #3
    Newbie Array

    Join Date
    Mar 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    if you just need a boot sector
    why not use dd and the i386s(standalone/i386) create one by yourself

  4. #4
    Professional Array

    Join Date
    Sep 2006
    Posts
    94
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    Quote Originally Posted by hdfdisk View Post
    if you just need a boot sector
    why not use dd and the i386s(standalone/i386) create one by yourself

    Thats a good one!, thanks

 

 

Similar Threads

  1. Resize windows with alt + right mouse
    By k1piee in forum Genuine Mac Support
    Replies: 1
    Last Post: 06-29-2010, 01:39 AM
  2. [help] Resize root partition
    By ziffer in forum Winpwn
    Replies: 1
    Last Post: 03-19-2009, 10:54 PM
  3. [winpwn] 2.0.0.4 Root partition resize
    By jgdsl in forum Winpwn
    Replies: 3
    Last Post: 08-15-2008, 06:03 AM
  4. Resize iTunes purchased movies
    By joseluismb in forum General
    Replies: 3
    Last Post: 12-16-2007, 08:19 PM
  5. Resize pictures to save space?
    By joseluismb in forum General
    Replies: 1
    Last Post: 11-27-2007, 05:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 12:06 AM.
twitter, follow us!