Why does dmg always open in icon view?

I can create a folder of files and other folders, and with "Show View Options" select 'column view' and also set the "Always open in column view" with "Get-Info". Then, if I make a 'dmg' of that folder and put that 'folder.dmg' anywhere, and open it with 'hdiutil attach folder.dmg', it places a disk-image on my Desktop, and opens it in a window of icons. I'd like to have it opened in column-view, but can't do that from a disk-image on the Desktop. Is there some way to get 'hdiutil' to open in column-view?

Posted on Mar 23, 2018 3:37 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 24, 2018 6:38 PM

The chosen view settings by the maker of the dmg determine the default view every time the disk image is mounted, as any deviation of the default must be stored on that volume.


To create a dmg that will open in list view, first create a read-write dmg as usual, e.g. from a folder. Mount the Disk Image and open it. It will show Icon View. Do a ⌘-J to display the View Options for the disk image. Check the 'Always open in icon view' box (Yes, that’s right). Now switch to List View or Column View or Cover Flow. Uncheck the 'Always open in …' box. It should now change to 'Always open in *your preferred* view'. Check the box again. Unmount. It will save your preferred setting. Mount again to check if the setting stuck. Unmount. Use Disk Utility to convert the read-write dmg into a read-only or compressed dmg (menu Images > Convert > ).


It is a bit of work to leap around the obstacles, but it is functioning.

Similar questions

14 replies
Question marked as Top-ranking reply

Mar 24, 2018 6:38 PM in response to dickguertin

The chosen view settings by the maker of the dmg determine the default view every time the disk image is mounted, as any deviation of the default must be stored on that volume.


To create a dmg that will open in list view, first create a read-write dmg as usual, e.g. from a folder. Mount the Disk Image and open it. It will show Icon View. Do a ⌘-J to display the View Options for the disk image. Check the 'Always open in icon view' box (Yes, that’s right). Now switch to List View or Column View or Cover Flow. Uncheck the 'Always open in …' box. It should now change to 'Always open in *your preferred* view'. Check the box again. Unmount. It will save your preferred setting. Mount again to check if the setting stuck. Unmount. Use Disk Utility to convert the read-write dmg into a read-only or compressed dmg (menu Images > Convert > ).


It is a bit of work to leap around the obstacles, but it is functioning.

Mar 24, 2018 10:10 AM in response to Eric Root

Eric, the short answer is NO. First, the dmg is NOT on my Desktop, so I can't "select" it. hdiutil accesses it from a bash-script, and opens it, causing a disk-image to appear on my Desktop. Second, when there is a dmg on my Desktop, and I "select" it, command-J gives me the Desktop as the panel, with no choices for setting how it opens.


When I created the dmg from a folder, the folder was set to "Open in column-view mode", but when I open the dmg, the resulting disk-images has icon-view. I have to manually change that to column-view from the View menu.

Mar 24, 2018 10:22 AM in response to Eric Root

Eric, I don't believe it's possible to get column-view from a disk-image. When you mount an external drive, one of more disk-images appear on your Desktop. Double-click any of them and you get a window with an icon-view. The same happens with the disk-image resulting from double-clicking a 'dmg'. That disk-image ALWAYS opens in icon-view, regardless of the View-settings associated with whatever was the source for the 'dmg'.

Mar 24, 2018 10:03 PM in response to dickguertin

Well, I was wrong. The only reason I continued to get column-view from the Volume was because I didn't Eject it. I was able to double-click the 'dmg', and the Volume remained unchanged, but once it was ejected, double-clicking the 'dmg' brought back the icon-view.


Something else bothered me... There are two kinds of 'Get Info'. One is in Dick Utility, and for the 'dmg', it said, "writable: NO", while 'cmd-I' said the owner had read-write authority. Similarly, for the Volume, Disk Utility said "Owner enabled: NO", but cmd-I said the owner has read-write authority.


No matter what I did in Disk Utility, I couldn't get Images -> Convert to convert the 'dmg' to read-only. or read-write. The result (which replaced the 'dmg') ended up exactly the same with "writable: NO"for the 'dmg' and owner read-write for the Volume (when reopened) with icon-view again. Maybe my problem is unsolvable in Yosemite.

Mar 24, 2018 11:38 PM in response to dickguertin

OK, I found what works for me. I want column-view, so I did these things:


1. Added my Downloads folder to a Finder-window in the Favorites column.

2. Placed my 'dmg' files in my Downloads folder.

3. Open a Finder-window (cmd-N) and click Downloads in Favorites.

4. double-click the 'dmg' I want to open.

5.. Close the icon-window that appears when the Volume opens.

6. In the Finder-window, I slide down to 'Devices', and there's my

'Volume' listed. I click that, and see a column-view of that Volume.


I can now deal with that column-view directly from the Finder-window.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why does dmg always open in icon view?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.