Sponsored Content
Full Discussion: os x hdiutil expert needed
Top Forums UNIX for Advanced & Expert Users os x hdiutil expert needed Post 302626045 by methyl on Wednesday 18th of April 2012 06:53:39 PM
Old 04-18-2012
Quote:
the total mounted size of a compressed dmg
Do you mean "the total uncompressed size of a compressed dmg" ?

Please post the exact version of your O/S (blanking anything confidential like machine names with X's).
Code:
uname -a

Please post sample output from your hdiutil command for the largest file involved:
Code:
hdiutil imageinfo -plist filename

Quote:
The size of the partitions is based on the total size of the mounted disk image.
What are the mathematical calculations for this? Are any of these "partitions" larger than exactly 2 Gb ?
 

6 More Discussions You Might Find Interesting

1. Solaris

expert vi commands

:) Hi UNIX friends, Where do I get advanced vi commands to practice. Please Help Me. Love (4 Replies)
Discussion started by: Love
4 Replies

2. UNIX for Advanced & Expert Users

Expert Opinion

This perhaps does not belong in ths category; apologies, however, we have a heated debate going and your input will decide the result. Should UNIX (HP, AIX, etc) be rebooted following a monthly cycle (Every month, or a qtr, etc.). We have some UX admins (grumps) who say they have seen a UX... (6 Replies)
Discussion started by: rsheikh
6 Replies

3. Shell Programming and Scripting

Expert cp command

How can I use the cp command to copy every file that I can find inside several folders cp -R *test* folder Supose there is ./122342343teste122343.txt ./bound/123teste1223453.txt ./feed/123teste1223453.txt and i want the files 122342343teste122343.txt, bound/123teste1223453.txt... (12 Replies)
Discussion started by: lipe.82
12 Replies

4. Solaris

Becoming a Solaris expert?

Hello everyone, how do you really study to become an expert in solaris OS? Thanks (3 Replies)
Discussion started by: cjashu
3 Replies

5. Shell Programming and Scripting

Parse hdiutil -plist data for specific info

I am trying to get the mounted size of a compressed .dmg. I can use hdiutil imageinfo -plist $imagename to get a lot of info, including what I need. The problem is that I have no idea how to parse that single piece of info into a variable (or in this case, array element). Here is what I have so... (2 Replies)
Discussion started by: nextyoyoma
2 Replies

6. Shell Programming and Scripting

Optimizing the Shell Script [Expert Advise Needed]

I have prepared a shell script to find the duplicates based on the part of filename and retain latest. #!/bin/bash if ; then mkdir -p dup fi NOW=$(date +"%F-%H:%M:%S") LOGFILE="purge_duplicate_log-$NOW.log" LOGTIME=`date "+%Y-%m-%d %H:%M:%S"` echo... (6 Replies)
Discussion started by: gold2k8
6 Replies
hdik(8) 						    BSD System Manager's Manual 						   hdik(8)

NAME
hdik -- lightweight tool to attach and mount disk images in-kernel SYNOPSIS
hdik imagefile [options] hdik -e device DESCRIPTION
hdik is a simple tool that can be used to attach disk images directly to the DiskImages driver. The end result is functionally similar to passing -kernel to hdiutil(1)'s attach verb. hdik does not rely upon the presence of DiskImages or other high-level frameworks. The DiskImages driver only supports a selection of disk image formats: UDRW, UDRO, UDZO, ULFO, SPARSE (UDSP). It also supports shadow files. hdiutil(1)'s imageinfo verb indicates whether a particular image is kernel compatible. hdik requires root access to perform its functions. In the first form, an image to attach must be provided: imagefile path to the disk image file to attach. In its second form, hdik issues an eject command to the specified device. The argument is the full device node path (e.g. /dev/disk2). Any volumes mounted from the device must be unmounted first, or the command will fail. See umount(8). OPTIONS
-shadow [shadowfile] Use a shadow file in conjunction with the data in the image. This option prevents modification of the original image and allows read-only images to be used as read/write images. When blocks are being read from the image, blocks present in the shadow file override blocks in the base image. When blocks are being written, the writes will be redirected to the shadow file. If not specified, -shadow defaults to <imagename>.shadow. If the shadow file does not exist, it is created. -nomount Suppress automatic mounting of filesystems contained within the image. This will result in /dev entries being created, but will not mount any volumes. -drivekey keyname=value Specify a key/value pair for the IOHDIXHDDrive object created (shows up in the IOKit registry of devices which is viewable with ioreg(8)). SEE ALSO
hdiutil(1), diskarbitrationd(8), diskutil(8), umount(8), ioreg(8) macOS 20 Mar 2014 macOS
All times are GMT -4. The time now is 05:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy