os x hdiutil expert needed


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users os x hdiutil expert needed
# 8  
Old 04-18-2012
Not posting your O/S and Shell details is driving me nuts!

We really need to know whether the O/S Shell can cope with numbers above 2147483647 ((2 x 1024 x 1024 x 1024) -1 ). i.e. a 32-bit O/S.
The unix bc command can cope with much larger numbers.

I give up.

Last edited by methyl; 04-18-2012 at 09:04 PM..
This User Gave Thanks to methyl For This Post:
# 9  
Old 04-19-2012
My apologies, I was at work and trying to get this done in between things. Thanks for trying to help anyway!

I ended up just converting to GB and rounding up to the nearest whole number. Not ideal, but it will work for now. I will try to find out about my shell (bash) for future reference. Thanks again!
# 10  
Old 04-19-2012
FWIW, this is bash 3.2.48 on OSX 10.7
Code:
$ echo $(( 2 ** 63 - 1 ))
9223372036854775807


Last edited by Scrutinizer; 04-19-2012 at 03:49 AM..
This User Gave Thanks to Scrutinizer For This Post:
# 11  
Old 04-19-2012
So that was not the problem. I think the issue I that hdiutil is not reporting the exact number I am looking for.

Furthermore, I don't know enough to know if the uncompressed size of a dmg is exactly equivalent to the space on a partition required to be able to restore the image to that partition. Other than actually mounting the disk image and finding the size with diskutil or uncompressing each image, I don't know of its possible to get this info.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
Login or Register to Ask a Question