Hdiutil and creation of more then one partition in a dmg and sparse image?

Hello,
My main question,
after reading the man page and googling, I can't find any way to create a DMG file with more then one partition. Is this even possible?
My finaly goal is to attach those with -mountRandom and - nobrowse from inside a cocoa.app.
I need the return value to get the random path to those partitions.
hdiutil attach test.dmg -mountrandom /Users/dev/Desktop/testdmg
/dev/disk7 GUIDpartitionscheme
/dev/disk7s1 Apple_HFS /Users/dev/Desktop/testdmg/dmg.A43MrA
But I see that when I use a mutli partition dmg ( here simulated ) I will have to look for one or more random paths, something like this.
hdiutil attach test.dmg -mountrandom /Users/dev/Desktop/testdmg
/dev/disk7 Applepartitionscheme
/dev/disk7s1 Applepartitionmap
/dev/disk7s2 Apple_HFS /Users/dev/Desktop/testdmg/dmg.A43MrA
/dev/disk7s3 Apple_HFS /Users/dev/Desktop/testdmg/dmg.7IaUpK
What is the best way?
to grep a line wich contains '/dmg./ and then awk print $3 ?
path=/Users/dev/Desktop
hdiutil attach $path/test.dmg -mountrandom $path/testdmg | grep '/dmg.' | awk '{ print $3 }'
but what when I attach f.e a sparse image not using the -mountRandom, then I have no '/dmg.' just volumes?
Is that doable in one universal piece of code?

I can only answer your question re:multi partition on a .dmg with:
doug-penningtons-power-mac-g4:Desktop dougp$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: Applepartitionscheme *57.3 Gi disk0
1: Applepartitionmap 31.5 Ki disk0s1
2: Apple_Driver43 28.0 Ki disk0s2
3: Apple_Driver43 28.0 Ki disk0s3
4: AppleDriverATA 28.0 Ki disk0s4
5: AppleDriverATA 28.0 Ki disk0s5
6: Apple_FWDriver 256.0 Ki disk0s6
7: AppleDriverIOKit 256.0 Ki disk0s7
8: Apple_Patches 256.0 Ki disk0s8
9: Apple_HFS Joe 57.1 Gi disk0s10
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Applepartitionscheme *10.0 Mi disk1
1: Applepartitionmap 31.5 Ki disk1s1
2: Apple_HFS me 10.0 Mi disk1s2
doug-penningtons-power-mac-g4:Desktop dougp$ diskutil partitionDisk disk1 2 HFS+ leroy 5M HFS+ madge 5M
Started partitioning on disk disk1
Creating partition map
Formatting disk1s2 as Mac OS Extended with name leroy
Formatting disk1s3 as Mac OS Extended with name madge
[ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ]
Finished partitioning on disk disk1
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Applepartitionscheme *10.0 Mi disk1
1: Applepartitionmap 31.5 Ki disk1s1
2: Apple_HFS leroy 5.0 Mi disk1s2
3: Apple_HFS madge 5.0 Mi disk1s3
Message was edited by: doug pennington

Similar Messages

  • Common diemsions and more then one fact table join problem

    Hi,
    I have 5 common dimension and 3 fact table which in the same subject area. When I want to display results from more then one fact table sending database then query more then one and I think BI server join this two different result on OBI server. But I think if obi server sending database query for exp. WITH SAWITH0 .... the results get effective.
    +++002002:2ea0000:2ea000f:----2009/03/14 10:12:59
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report';SELECT "- Common Dimensions"."Year Month" saw_0, "- Subs. Tariff"."Subscriber Current Tariff Type" saw_1, "- Common Measures".Arpu saw_2, "- Common Measures"."Gross Margin" saw_3, "- Call Out"."Callout Dur" saw_4, "- Case".Case_Info_Num saw_5 FROM "CUSTOMER PROFILING" WHERE ("- Common Dimensions"."Year Month" = 200901) AND ("- Subs. Tariff"."Subscriber Current Tariff Type" = 'PREPAID') ORDER BY saw_0, saw_1
    +++002002:2ea0000:2ea000f:----2009/03/14 10:12:59
    -------------------- General Query Info:
    Repository: Star, Subject Area: CUSTOMER PROFILING REV, Presentation: CUSTOMER PROFILING
    +++002002:2ea0000:2ea000f:----2009/03/14 10:13:00
    -------------------- Sending query to database named CENTRAVEA (id: <<471777>>):
    select T223282.DIM_TIME_MONTH_ID as c1,
    T221204.DIM_SUBS_CURRENT_TARIFF_TYPE as c2,
    avg(T223490.FACT_CP_ARPU) as c3,
    sum(T223490.FACT_CP_GROSS_MARGIN) as c4,
    sum(T223490.FACT_CP_CO_DUR) as c5
    from
    DM.DIM_SUBSCRIBER T221204 /* A_DIM_SUBSCRIBER */ ,
    DM.DIM_TIME_MONTH T223282 /* A_DIM_TIME_MONTH */ ,
    DM.FACT_CUST_PROFILING_PART3 T223490 /* A_FACT_CUST_PROFILING_PART3 */
    where ( T221204.DIM_SUBS_ID = T223490.DIM_SUBS_ID and T221204.DIM_SUBS_CURRENT_TARIFF_TYPE = 'PREPAID' and T223282.DIM_TIME_MONTH_ID = T223490.DIM_TIME_MONTH_ID and T223282.DIM_TIME_MONTH_ID = 200901 and T223490.DIM_TIME_MONTH_ID = 200901 )
    group by T221204.DIM_SUBS_CURRENT_TARIFF_TYPE, T223282.DIM_TIME_MONTH_ID
    order by c1, c2
    +++002002:2ea0000:2ea000f:----2009/03/14 10:13:00
    -------------------- Sending query to database named CENTRAVEA (id: <<471881>>):
    select T223282.DIM_TIME_MONTH_ID as c1,
    T221204.DIM_SUBS_CURRENT_TARIFF_TYPE as c2,
    sum(T223294.FACT_CP_CASE_INFO_NO) as c3
    from
    DM.DIM_SUBSCRIBER T221204 /* A_DIM_SUBSCRIBER */ ,
    DM.DIM_TIME_MONTH T223282 /* A_DIM_TIME_MONTH */ ,
    DM.FACT_CUST_PROFILING_PART1 T223294 /* A_FACT_CUST_PROFILING_PART1 */
    where ( T221204.DIM_SUBS_ID = T223294.DIM_SUBS_ID and T221204.DIM_SUBS_CURRENT_TARIFF_TYPE = 'PREPAID' and T223282.DIM_TIME_MONTH_ID = T223294.DIM_TIME_MONTH_ID and T223282.DIM_TIME_MONTH_ID = 200901 and T223294.DIM_TIME_MONTH_ID = 200901 )
    group by T221204.DIM_SUBS_CURRENT_TARIFF_TYPE, T223282.DIM_TIME_MONTH_ID
    order by c1, c2
    I have another subject area and which defined like this subject area contain two dimension and 5 fact table. If I want to display results on this subject area I can see best sql for my database
    My problem is why this two different subject areas create different queries. I think following query is the best for database.
    Thanks for your help
    +++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report';SELECT "Dim - Segments"."Marketing Segment" saw_0, "Fact - Campaign Response"."Fact Campaign Award Amount" saw_1, "Fact - Customer Interaction"."Issue Response Cost" saw_2 FROM "AVEA ALL" ORDER BY saw_0
    +++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
    -------------------- General Query Info:
    Repository: Star, Subject Area: AVEA ALL, Presentation: AVEA ALL
    +++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
    -------------------- Sending query to database named AVEA ALL (id: <<474694>>):
    WITH
    SAWITH0 AS (select sum(T51461.FACT_CMPGN_AWARD_AMOUNT) as c1,
    T49384.DIM_MARKETING_SGMNT_DESC as c2
    from
    DM.DIM_MARKETING_SEGMENT T49384 /* DIM_BI_MARKETING_SEGMENT */ ,
    DM.FACT_CMPGN_RESPONSE T51461 /* FACT_BI_CMPGN_RESPONSE */
    where ( T49384.DIM_MARKETING_SGMNT_ID = T51461.DIM_MARKETING_SGMNT_ID )
    group by T49384.DIM_MARKETING_SGMNT_DESC),
    SAWITH1 AS (select sum(T51503.FACT_CUST_INT_ISSUE_RES_COST) as c1,
    T49384.DIM_MARKETING_SGMNT_DESC as c2
    from
    DM.DIM_MARKETING_SEGMENT T49384 /* DIM_BI_MARKETING_SEGMENT */ ,
    DM.FACT_CUST_INTERACTN T51503 /* FACT_BI_CUST_INTERACTN */
    where ( T49384.DIM_MARKETING_SGMNT_ID = T51503.DIM_MARKETING_SGMNT_ID )
    group by T49384.DIM_MARKETING_SGMNT_DESC)
    select distinct case when SAWITH0.c2 is not null then SAWITH0.c2 when SAWITH1.c2 is not null then SAWITH1.c2 end as c1,
    SAWITH0.c1 as c2,
    SAWITH1.c1 as c3
    from
    SAWITH0 full outer join SAWITH1 On SAWITH0.c2 = SAWITH1.c2
    order by c1

    I find solution on Oracle® Business Intelligence Suite Enterprise Edition Release Notes.
    If you use a version of Oracle Database 10g Release 2 prior to 10.2.0.3, then you might encounter an issue with a Full Outer Join that causes severe database performance issues and appears to hang the database when the Oracle BI Server sends to the database SQL queries that include WITH clauses.
    To work around this issue when using Oracle Database 10g Release 1 or 2, upgrade to Oracle Database 10g Release 2 Patch Set 2 (for 10.2.0.3). For performance reasons, this is the preferred workaround.
    To work around this issue without installing Patch Set 2, modify the Database Features table using the Administration Tool. This configuration prevents the Oracle BI Server from sending SQL constructs that expose the issue in an unpatched Oracle Database 10g.
    To modify the Database Features table:
    In the Administration Tool, open the properties of the Physical Database metadata object.
    Navigate to the Features tab.
    Ensure the values for the PERF_PREFER_MINIMAL_WITH_USAGE and PERF_PREFER_INTERNAL_STITCH_JOIN entries are selected, that is, set to True.

  • Find and Replace more then one character

    Hi
    I need to find and replace more then one character. for example: I need to replace "A" with "a". "B" with "b" and so on. how to do that in one search?

    See the following script by Peter Kahrel:
    Change case
    http://www.kahrel.plus.com/indesign/grep_change_case.html
    If the "A" and the "B" are in arbitrary positions in your text you could use the following GREP:
    [AB]
    together with the script.
    For testing your GREP expressions, you could use the following script, also by Peter Kahrel:
    A GREP editor
    http://www.kahrel.plus.com/indesign/grep_editor.html
    Uwe

  • I have a mac book pro and when I turned on iChat it would not let me video chat with more then one person even though I was able to in the past. It only showed an icon to video chat with one person. Please help!!

    I have a mac book pro and when I turned on iChat it would not let me video chat with more then one person even though I was able to in the past. It only showed an icon to video chat with one person. Please help!!!! ASAP

    Hi,
    Check the iChat Menu > Preferences > Video Section > Bandwidth setting.
    iChat needs to see a Minimum of 128kbps to do 1-1 chats in Video
    For 3 and 4 way chats it needs 384kbps
    Set the Bandwidth to 500kbps if it is set lower.
    Also check the speed you are getting from your Internet supplier.
    9:28 PM      Thursday; February 23, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can more then one ipod be stored/updated and dowloaded on itunes

    can more then one ipod be stored/updated and dowloaded on itunes

    yes per How to use multiple  iPods, iPads, or iPhones with ... - Support - Apple

  • Attaching and sending more then one picture in an email

    Is there a way to attach more then one picture at a time in one email?
    I use gmail as my default email on my phone.

    Since you have to email from the photos application and have to email from a single picture, you can only send one picture at a time.

  • OVI and syncing and having more then one phone

    I recently just upgraded my wife and my phones to Nokia 6350's, after backing up all my contacts and everything in Nokia's PC suite from the old phones and after activating the phones and restoring the back up to the new phones I saw there was an update suggestion to the PC suite which was OVI.
    I thought great maybe more function Etc..
    After downloading and finally figuring out how to put my phone number in in international format, I get it registered logging into my wife's phone first, from inside the app, I added my phone to it, but it didn't as me for the phone number or anything, but allowed me to change from one phone to the other, well when I hit the sync button for my phone it connected to my phone then added all my contacts to the existing contacts of my wife's, what I didn't relies at first it also put all my wife's contacts into my phone book on my phone, this is a major bug that shouldn't be allowed, Why would I want my wife's contacts in my phone???
    Well lucky for me since I had just backed up all my contacts separately,
    I closed out OVI and started PC Suite up, I wiped out my whole contacts and reloaded them from back up,
    What I can't figure out is why would they design their program like this that doesn't seen to allow you to manage multiple phones from the same program,
    Nokia's PC suite does this part great, as it keeps each phone totally separately.
    The other thing I don't care for is that OVI seems to depend on having an internet connection, which there are people out there that would like to manage their phones without having to have this, PC suite can be used without a internet connection.
    Does anyone have any idea on how to separately manage more then one phone in OVI?

    Set up a user account in Windows for your wife on the same computer and when syncing her phone set up and run Ovi Suite from that account.
    It is easy and once one gets used to it it gives great flexibility.
    This is not just a Nokia thing but quite a normal way of managing multiple devices for multiple users in Windows applications (e.g. we use an application that remote controls multiple telecommunications devices for multiple users and it manages them in that same way except it goes further and requires a separate account for each device as well as each user).

  • How do I get the text to flow throughout more then one page.

    Hello,
    I am currently using LiveCycke Designer to create a scholarship for my company. I created fields for the form and I would like to insert a text to describe the scholarship. When I insert the text, it doesn't flow onto the next page. I've tried creating a subform and clicking "flowed" and "allow page breaks within content". I also clicked auto-fit for the height, but it just makes a line. For the text box, I've clicked "Expand to fit on the height". It is also a dynamic XML Form. Is there anything else I should be doing?
    I could always send the file to someone to see if they can figure it out.
    Thank you,
    Natalie

    Thank you so much !
    but the link doesn't seem to work. It says that the URL is not in the correct format for an Acrobat.com document link.
    Natalie
    Date: Wed, 12 May 2010 07:53:12 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do I get the text to flow throughout more then one page.
    Here is the corrected form..Even you you set the Subform type to "Flowed" to the subform where the Text box resides, you did not set the Page1 to Flowed (which is the key)..But when I make the Page1 type to "Flowed", all your fields above the Scholrship text boxes' Subform will go one below another.. To fix this, first I have select all the fields and wrap them into a subform and then set the Page1 to Flowed..
    https://acrobat.com/#d=XQ1yfV8fCk85M7sRLD*-gg
    Thanks
    Srini
    >

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • HOW DO I USE MORE THEN ONE ITUNES WITH MY IPHONE WITHOUT ERASING MY MUSIC?

    I have two different laptops with iTunes on it. I use both of them but my iPhone only works with one iTunes. I plug it into the computer and it says that my iPhone cannot use more then one iTunes. Is there a way I can use both or no?
    YES I AM CLICKING MANUELLY ADD SONGS TO MY iPhone.
    I just bought my iPhone about a week or so ago.
    Please help ASAP.

    I clone my library to a portable drive using SyncToy 2.1, a free tool from MS. I run this both at home & work so that I essentially have three identical copies of my library for backup redundacy, any of which I can use to update my iPods and my iPhone. I use iTunes Folder Watch occasionaly in case I've managed to download, for example, a podcast at one location but overwrite the library with a newer copy updated at the other. It can be done but you need to take considerable care...
    tt2

  • Can I use more then one apple ID on my computer/osx app store

    Hi,
    I use my MBP/iMac/ipad/iphone for both business and home.  Right now everything is setup to my home apple id (and I have made quite a few purchases with that).  With the release of the osx app store and FCPX,  my company wants to buy these for my computers.  But they want to do this on their apple id.  Can I run more then one id on a mac?  How can I make this work as I know they will want me to start getting more apps as they are released.

    You can have apps from multiple Apple IDs on one Mac. The issue will be that to update Mac apps bought with A ID #1 will require signing into A ID #1 in the MAS. And later when apps bought with A ID #2 need an update you will need to sign into A ID #2 in the MAS to update them. If you can keep that straight and can abide that requirement, there should be no issues.
    The same will be true to update iOS apps, but using iTunes.

  • Since iTunes 7 can't import more then one song at a time

    When I use File> Add file to library, I can no longer import more then one song. If I select more then one file, iTunes wont import anything. I have my music download to my main iTunes folder, therefor I dont want to use add a folder, also there often is other songs I dont want to import at that time. I can drag and drop from explorer, but its annoying.
    Not a terrible bug, but another in the long list for iTunes 7.
    custom   Windows XP Pro   P4 2.8, 1 Gig Ram, Radeon x1600pro, Asus mobo

    Thanks Rachyl, I'll try that when I get off of work. What about the album art? How can I make sure I get it every time in the future. Can I rip my CD's using another software to make sure they are tagged right?
    BTW I used to live in NC not too long ago and went to school there....GO HEELS!

  • Is there a way to Search (List search) for more then one field text from a column for Bulk uploading?

    I've been trying to find more information on this and I apologies if this has already been answered. I just don't know the correct way to ask this. We have a SharePoint List at the company that we have people input information into different columns. The
    problem is most of those information are very repetitive. Is there a way for me to search more then one field text in the column and just input that same information in?
    ex:
    Column 1
    Column 2
    Date:
    883851
    MidWest
    User input 
    8831518
    MidWest
    User input
    On the search field in the SharePoint List, I would need to search for 883851, 8831518 etc,  would view those requested numbers, then I would click edit and change dates to those rows. Does that make sense? I'm sorry I'm fairly new at sharepoint.

    I think what you're asking is about having repetitive options in a list, show up easily for new items being created.
    This can be done by setting the columns that contain repetitive information to Choice fields.  In the configuration of the Choice field, check the box for "Allow custom values".  Now as users are entering data into the list, the dropdown of options
    for a given field grows and users can quickly see and select previously entered and thus repetitive values for the given fields.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • How to make more than one partition on Airport Time Capsule?

    how to make more than one partition on Airport Time Capsule?

    Only for the very brave......
    Open up the Time Capsule (voids the warranty)
    Pull the hard drive
    Place the hard drive in a separate enclosure
    Connect the enclosure directly to your Mac
    Use Disk Utility to partition the hard drive
    Reinstall the hard drive back in the Time Capsule
    For the rest of us.....
    The next best thing might be to set up one or more disk images on the Time Capsule, which will allow you reserve a given amount of space for each disk image.
    Open up Macintosh HD > Applications > Utilities > Disk Utility
    Click on the New Image tab
    Navigate to the Time Capsule
    Set up the disk image by naming it and specifying how much space you want to reserve

  • HT1296 How can i get my contacts to show on itunes on my laptop?  Or at least delete more then one at a time on my iphone 4s???

    How can i delete more then one contact at a time on my iphone 4s or bring my contacts up on itunes on my laptop?? please help

    No.
    Iphone will sync with one and only one computer a a time.  Syncing to another will erase the current content from the iphone and replace with content from the new computer.

Maybe you are looking for

  • Invalid 169.* IP Address  (DHCP error)

    Hi, At my company we have a 3com wireless and I can connect but I cannot get a valid ip address. I have already tried that: - Reset networking settings. - ifconfig en0 (down/up) - changing the MTU to 1400 - reboot the iPhone - DHCP and Static IP (val

  • Publishing Service: Mark as uploaded

    I was under the impression the LR4 would have the capability of marking photos withing a publishing service as uploaded.  After uploading to LR4 my flickr publishing service was not working properly.  I deleted the service, and recreated it.  I added

  • IQ504 'display driver igfx responding and has recovered'

    The error message ''display driver igfx responding and has recovered' is poped up after screen turned black out repeatly. I reinstalled the new updated Intel display driver according to HP support FAQ guide for this issue, but it did NOT work. HP sup

  • Netbeans IDE download for SUN IdM 7.1

    Folks Can anyone tell where i could get the Netbeans IDE download for SUN IdM 7.1? Thanks Chellappan Sampath.

  • Negative timestamps in GC verbose log

    Hi, I am experiencing a strange problem with my GC logs - some of the GC timings are negative: 2008-07-31T12:01:38.223+0100: 1289.832: [GC 1289.832: [ParNew: 240320K->21823K(240320K), -0.2231308 secs] 703715K->519899K(1288896K), -0.2229563 secs] [Tim