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.
6 More Discussions You Might Find Interesting
1. Solaris
:) 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
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
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
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
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
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