Mounting an Apple disk image (Intel Mac) under other Unixes/Linux

Hello,
I have started my MacBook in HDD Mode and connected it via Firewire-Cable to my "Main-Server" (Slackware Linux 11.0).
From there i created a "Disk-Image" from my MacBooks HDD using "dd"
I can mount the disk image within OS X without any problems, but i can´t mount it on the Linuxbox.
I have used this cmd under Linux : "mount -o loop -t hpfs image.dmg /mnt/tmp" But i am getting an error saying that it doesn´t seem to be a Apple File System Image.
I have made sure that support for Apple FS is "compiled-in" in the Linux-Kernel. If i do a file image.dmg i get this:
x86 boot sector; partition 1: ID=0xee, starthead 254, startsector 1, 117210232 sectors, extended partition table (last)\011
Does anyone know how i can mount this image under Linux?
Thanks,
tyrtux.

I can't offer any solution yet, but here's a bit of information that might prove useful in understanding the problem.
"mount" on Linux mounts file systems, not disk images. A disk image is just that -- a bit-for-bit image of the sectors on what would be a physical disk. A file system is a portion of a disk structured in a specific way -- a section set aside for managing free space, a "root" directory, etc.
A partition is a logical subdivision of a disk. Usually, each file system on a disk completely fills one partition; but partitions may overlap, and one partition may contain any number of file systems.
A disk -- and therefore a disk image -- contains, within its first physical sector, a partition map. The map includes the start sector, size, and type of each partition. The type usually hints at what the file system -- if any -- of the associated partition is.
When you connect a physical drive to a Linux system -- be it IDE, SCSI, USB, or CD-ROM -- Linux scans the partition table. You can then use mount to get access to individual file systems on the device. When you use "mount -o loop", you are asking mount to connect a loopback device to a file that represents not a disk -- but a file system. This is why your attempt is failing; the disk image doesn't look like a file system, it looks like a disk -- it has a partition table of its own.
You might be able to map the file to a drive for VmWare, and access it from the virtual machine. Otherwise, I'd hunt around for software that deals with complete disk images, not just file systems.
Powerbook G4 1GHz   Mac OS X (10.3.9)  

Similar Messages

  • Auto-Mounting Network Shares/Disk Images

    Hi,
    I'd like to share how I solved my problem with auto-mounting a network disk image/folder share to be used as a custom library/location for Aperture 3.xx. I can now either reference the master photos from the network or have it copy to this disk image volume on the network, although it might be better to have it copy to the disk image volume, so one can move it around as a file later. I researched hard over these forums and internet resources and discovered what I thought was the best way to accomplish this. Initially, I found right away that Aperture doesn't allow you to create a library over your network drive or a home server such as mine, unless it is partitioned/formatted to Mac OS. This wasn't acceptable for me as I also run Windows 7 PCs that need to utilize the network folder shares, as well.
    I don't understand why I don't have this problem using iPhoto 2011, and do with Aperture 3.0, which is a far more expensive application. Anyhow, I read a little about NFS, but didn't know how to implement this or if it required the Mac Server and/or a non-built in application, it probably isn't compatible with windows. So, I found that by creating a .DMG disk image file, as a partitioned/formatted Mac OS file in Disk Utility, and saving it to the network folder of my choosing, did the trick.
    Steps I used to accomplish this:
    -Go to Disk Utility and create "New Image"
    -Select format w/ MacOSX Extended(journaled) and choose "single partition/GUID" type (or whatever you want)
    -Enter a custom size of your disk image (ex in 1GB or 1TB). Click "Create"
    * I created this locally 1st and then I copied it over the network, to the network folder/subfolder on my HP Mediasmart Home Server EX495. I found that creating it over the network took too long and would crash Disk Utility.
    -After it's copied to your desired location over the network folder, open Automator.
    -choose "Application" workflow, double-click to add "Get Specified servers". Enter location of your server (ex smb://hpserver/)
    -Then add "Connect to Servers",
    -Then add "Get specified Finder Items". Click Add, and locate your disk image file over the network. (this will automatically add the location path. For ex. smb:/hpserver/photos/aperture_library.dmg)
    -Then add "Mount Disk Image".
    -Then test workflow by clicking on "Run" button on top right of window. If your
    Finder->Preferences->General settings on your Mac is set to show "Connected Servers" on your desktop, your disk image will appear on you desktop.
    -Finally, save this Application workflow as an application by clicking File menu->Save As. Save this to your documents folder area.
    -To have your Mac auto-mount your disk image automatically when you login:
    ->go to System Preferences->Accounts->your "Admin account name"->Login Items
    ->click "+" sign and navigate to the Documents folder, to where the Automator application you saved
    ->click Add. Once done, it will appear on the Login Items area. You can choose to hide it, if you want by clicking the checkbox.
    -Now Restart your Mac, and now your disk image should auto-mount.
    Hope this helps, as it helped me solve the issue. Too bad one must have to program this and it is not native on MacOSX.

    Too many steps. Do this:
    1. Go to Disk Utility and create a disk image with the following properties:
    Format: Mac OS Extended (Journaled)
    Partitions: Hard Disk
    Image Format: Sparse bundle disk image
    2. Copy the image you just created to the share on the network where it should reside.
    3. Open System Preferences, and click on the Accounts icon
    4. Select *your account* and click on the Login Items tab
    5. Drag the icon for the disk image from the network share into the Login Items list
    If a login item is something on a network share, it will reconnect to the share it's located on automatically first.
    If a login item is a disk image, the disk image will be opened and mounted.
    It's important that the image is a journaled one because if it isn't, being disconnected from it while writing would be potentially disastrous.
    It's important that the image is a sparsebundle for two reasons: sparsebundles only take up as much space as they need (e.g., a 1Tb sparsebundle with 100M of data takes up about 100M of space), and they also break the disk down into smaller files. If the underlying filesystem on your network share is FAT32, then no file can go over 4Gb. If you use a sparsebundle, of course, there's no practical limit to how large the disk image can get. Also, it can speed up certain types of backup procedures.
    I suggest using partition type "Hard Disk" instead of "1 partition GUID" because, as a disk image, there's no sense in having a partition table or making it bootable (because you can't boot from the image).

  • Time Machine and mounted sparse bundle disk image - file by file backup?

    I think I had this system working in Leopard, but upon upgrade to Snow Leopard it seems to have broken. Does anyone have any idea how I can get Time Machine to back up the contents of a mounted sparse bundle disk image in real time - file by file within the disk image? For example, I have a 2GB sparse bundle disk image that i keep all of my bank statements/files/records in. It auto-mounts on boot and stays mounted. I use the disk image to keep it password-protected, so if I unmount it it is fairly safe. In Leopard, I would exclude the .sparseimage file from backup, but it would still backup the mounted image itself on a file-by-file basis, so I could enter Time Machine and explore the image folder by folder, file by file (say I deleted an old bank statement by mistake, I could go into time machine and recover as if it were a normal file/folder).
    In Snow Leopard, after a clean install, and creating a new sparse bundle disk image and excluding the .sparsebundle file, I can't seem to get this to work even though the image is mounted. Is there any way to trick Time Machine into backing up the mounted image as it would any other folder? I know I can back up the .sparsebundle file incrementally but in order to recover a lost document I'd have to remount the old bundle and that seems rather roundabout.
    Thanks,

    I think you're trying to bypass the finder to mount the disk. Try this (I'll bold the key steps):
    - *Turn off Time Machine* in the System Preferences.
    - Option A: If you directly use a hard disk (not wireless) that has the sparsebundle you want to open, *connect the disk* but don't double click on the sparsebundle.
    - Option B: If you are using wireless, this means use shift-command-k (or shift-apple-k), and if it says "Connect As..." in the upper right instead of disconnect, then use that button to *connect to that wireless drive*.
    - Confirm the sparsebundle shows in that folder before proceeding...
    - *Open Terminal* (Applications>Utilities>Terminal.app)
    - Type: *hdiutil attach -noverify* (<-- notice a *space " "* must be included after typing this here but *DON'T hit return* yet.)
    - *Drag the sparsebundle to the cursor in terminal*, and it should fill in something like /Volumes/HardDrive/COMPUTERNAME.sparsebundle for you. Now you can hit return, and the disk will mount.
    - After you are done browsing sparsebundle's mounted image, *eject the mounted disk* like you would any other disk (not the sparsebundle image itself, just the disk icon that appeared if you successfully mounted it).
    - Turn *Time Machine back on* in the System Preferences.
    Hope this helps.

  • Can anyone help please with my Time Machine, I have been getting the following message The backup disk image "/Volumes/Mac Backup/Stephen Smith's iMac.sparsebundle" is already in use.

    Can anyone help please with my Time Machine, I have been getting the following message The backup disk image “/Volumes/Mac Backup/Stephen Smith’s iMac.sparsebundle” is already in use.

    See > http://pondini.org/TM/C12.html

  • How can I tell if I have the right restore disks for Intel Mac Mini

    I have an "early 2006" (confirmed by S/N YM609***) Intel Mac Mini 1.66mhz Core Duo. I bought it used and the hard drive had been wiped. Both the HD and the DVD drive seem to work fine; hard drive passes SMART tests. I was able to boot using "Drive Genius" and can access the pre-install items like Disk Utility (and know that I need to use GUID formatting to create a bootable disk). Not knowing I could order restore disks from Apple I bought a set on eBay, p/n AHT VERSION 3A102 DISC VERSION 1.1 2Z691-5828-A, copyright 2006 on disks and included documentation (OS 10.4.6), but the install always fails 10-15 minutes along. I got the same results when trying to install via internal optical drive to a FW or USB external HD (told it to use GUID for the external HD), or external FW optical drive both to internal HD and to external USB hard drive. A friend tried to install full retail versions of 10.5 and even 10.6 for diagnostic purposes, using the built in HD and DVD drives, but those installs did not complete either; they did not try external drives. Is that the wrong restore version for this model, or even if the right "generation", does a set of restore disks only work with the specific Mac mini they were issued for like for example XP restore disks would? I've been told I can provide my s/n to Apple and for about $30 they will send me the "right" restore disks... anyone know anything about this? Could there be a hardware/firmware explanation for why the install fails like that? PS ran the extended version of the Apple Hardware Test with that restore disk set and it reported "no problems."
    <Edited by Host>

    Thanks. Actually I got the Mini from a computer recycling company I work with so I knew it might have problems and that I was taking an "as-is" risk. If the original disks were turned in with it, they'd been lost (that outfit took in huge piles of stuff every day; it was often luck of the draw for me to find something before it would be buried, damaged, etc., and not everyone who worked there had any idea of the possible value of things they received) for me to find things. The disks I got on eBay apparently were separated from the mini they'd been packaged for. An Apple Store rep said I could order restore direct from Apple just by providing my serial number; just wish I'd known that before I went to eBay. Since posting this I've seen another seller specifically claiming that the same-part-numbered-as-mine disc set they are selling will work with my specific type of Mac mini. I have an appointment tomorrow morning at the Genius Bar at an Apple store near me in case they have more suggestions. Will share what I know as things develop.

  • Time Machine (OSX) doesn't back up files in Mount Point or Disk Image File

    Hi all,
    I have two disk images which are scripted to be mounted on login. These two disk images are always mounted to the same location. These two disk images are encrypted TrueCrypt volumes.
    Time Machine (TM) will only back up the disk images the first time they are mounted, but not after that. As I modify documents within the volumes throughout the day, the modified timestamps are adjusted properly. However, TM does not back them up. TM never backs up the mount points which are two folders within my home directory.
    Any ideas as to why neither the mount point or the image files are backed up? Do the image files have to be closed (unmounted) after being modified for TM to back them up?
    Now if TM won't back up the image files because they are locked/open, then why does it back them up the first time even though they are mounted? Also, from what I've read, TM should back up any HFS+ drive which is mounted. Both these drives are HFS+, so it should back up the mount points? I can verify this by doing a 'mount' in the terminal, the following is echo'd back:
    /dev/disk0s2 on / (hfs, local, journaled) (Main System Drive)
    /dev/disk1 on /Users/username/Folder1 (hfs, local, nodev, nosuid, journaled, noowners, mounted by username) (First TrueCrypt volume)
    /dev/disk2 on /Users/username/Folder2 (hfs, local, nodev, nosuid, journaled, noowners, mounted by username)(Second TrueCrypt volume)
    Any ideas will help!
    Thanks,
    Chris
    Message was edited by: sleagle328

    Here is the resolution:
    Apparently time machine checks the parent folder's timestamp before moving into that folder to look for modified files.
    So as I was modifying files, the timestamps on the volumes were changing but not the containing directory. Because of this, TimeMachine saw the parent directory had not changed, so did not look for the changed volumes inside.
    So to resolve this, I wrote a simple touch script which touches the parent directory to match the modified volumes timestamp (if there is a modified volume).
    Thanks,
    Chris
    Message was edited by: sleagle328

  • Possible to play disk image on Mac ?

    Hi there,
    I have made disk images from a few DVDs and BR that I got from FCP projects that I want to save.
    IS there anyway to check the quality of the disk image file on the Macintosh or do I need to burn DVD/BR again to check ?
    Thanks in advance
    Ivan

    I also was able to make a disk image of a blu ray in disk utitlity using an external blu-ray drive.  I however cant seem to burn that image back onto a blank blu ray.  Any guidance would be very appreciated.
    >I select the dmg. file in disk utitlity… >then his the burn icon…
    >it then says “waiting for disc to be inserted…
    >I then insert a blank blu ray disk in my blu ray burner >and hit the burn button …    >The burn button remains greyed out and the disk ejects itself after about 20 seconds.
    I have tried two different media brands
    Memorex BD-R 4X 25GB Single Layer
    Maxel BD-R 1-4X 25GB Single Layer

  • Only show disk images in Mac OSX

    Hello,
    im having an issue where clutter seems to end up on the desktop of my computer (such as random documents and audio files), I know that there is a terminal command to completely disable files on the desktop, but is there any way you can chose what you want to appear on the desktop (such as iPods and Disk Images only....)
    Thanks in advance.

    What apps like to put stuff there?
    If you are talking about when you save a file and it defaults there for some stupid reason, change it to the Documents folder. The app should then default to that last used location. If it doesn't, complain to the developer.
    If you have apps that are just randomly dropping items on the Desktop, send a nasty gram to the developer.

  • .dmg's won't mount or create disk image

    I'm using a 17" powerbook. I've had no issues in the past year of ownership with downloads (from Apple site or other). Recently, when I attempt to download a .dmg, the image won't appear on the desktop, however it did download. The download file show's it did download but failed to mount. The desktop shows the failed download as shaded out.
    I am not using any download accelerator or similar product. This problem appears to have started with my most recent system software update from Apple.
    Help and suggestions are appreciated.
    PS - this only seems to apply to .dmg's

    Do you still have some older dmg files that you can check? Will one that worked in the past still work? When you do GetInfo under the section for "Open with" is the application specified as DiskImageMounter? If not, is that application in the drop down list and can you select it? Finally, do you have the application here:
    "/System/Library/CoreServices/DiskImageMounter.app"
    If the application for mounting dmg files is there and you can choose it to open the dmg files, or it is already listed as the choice, you might try using Disk Utility to repair permissions. If the older dmg files work correctly, but the new one doesn't, then something is wrong with the new downloads.
    Francine
    Francine
    Schwieder

  • Firewire or USB backup hard disk for Intel Mac?

    We are very happy with our Apple computers. Regularity I make backups on my and my family´s important files using at firewire hard disk. Now our neighbors bought an iMac with Intel processor. What backup hard disk should they buy?
    1.8 GHz PowerPC G5   Mac OS X (10.3.9)  

    Many external hard drives and hard drive enclosures (if you want to put together your own external drive) are now using Combination chip sets that support both USB and FW ports. So I suggest looking for a Combo External Hard Drive and then your neighbor can hook it up either way.
    Patrick

  • Can't mount as a disk on another Mac (not mine)

    I'd like to use my shuffle as a disk and transfer files from my machine to another Mac. This other Mac is an iMac G5 and had iTunes 6.0.2 with OS X.4.4. Everytime I plug in my shuffle, iTunes starts up tells me
    The iPod "ShuffleName" is linked to another iTunes music library. Do you want to change the link to this iTunes music library and replace all existing songs on this iPod with those from this library?
    I, of course, answer 'No' because I don't want to lose my songs or download any songs from this iMac. I just want to access the documents on the data portion of my shuffle. As soon as I click 'No' the shuffle is unmounted from the computer and I have no access to it.
    How can I use the shuffle for data on a computer without linking it to an iTunes library?!?
      Mac OS X (10.4.4)  

    but what if I want to get tunes from another mac on
    my shuffle without removing all the tunes from my mac
    (on the shuffle)?
    Reading through one of MacAddict's issues I remember
    seeing them say it can be done, but they didn't say
    how. I assumed it would be simply plug and play, but
    like the original poster said, it wants me to switch
    links to the new iTunes.
    12 Powerbook G4   Mac OS X
    (10.4.1)  
    i have the same problem... did you ever figure out how to fix it? i could use the help, thanks

  • 10.4.9 and mounting disk images.

    I just recently installed 10.4.9 and now I can't mount any disk images. I get an error saying broken pipe. Any ideas? Thanks in advance.

    I just recently installed 10.4.9 and now I can't
    mount any disk images. I get an error saying broken
    pipe. Any ideas? Thanks in advance.
    Here's what MacFixit says :
    Disk images not mounting [Updated] Several users report an inability mount disk images after applying the Mac OS X 10.4.9 update.
    If you are having a problem where disk images won't mount, try booting in Safe Mode (by holding down the Shift key while starting up), then re-attempting mounting of the disk image.
    This solution is particularly useful for the following scenario: You want to try re-application of the Mac OS X combo updater (a common workaround for issues that occur after an incremental Mac OS X update), but are unable to mount the combo updater disk image.
    Prior to booting in safe mode, however, you can delete the following files:
    * /System/Library/Extensions.kextcache
    * /System/Library/com.apple.kernelcaches
    and re-attempting the mount. These, and other cache files, are automatically deleted when you boot in safe mode, but you can potentially save some time by trying deletion of these files (then logging out and back in) first.
    Another option is to use an alternative tool that can mount disk images, like Mount.app, FlashMount, or Toast Titanium.
    MacFixIt reader Joy Denton is one user who had success with our posted workaround:
    "Just wanted to let you know that I had the issue of Disk Images not mounting. This occurred after installing Mac OS X 10.4.9 from Software Update. Fortunately, I read your post regarding a possible fix by using the Combo Update and used Toast to mount the disk image. Ran the Combo Update and ran AppleJack once again. I am now able to mount disk images. This was an annoying problem to be sure."
    But imho the best advice that can be given about software updates is to always have a clone of your system on another partition or external HD so you can boot on it if anything goes wrong. From an external system you can repair your internal disk, install the Combo update if the incremental one failed, etc.

  • What can I do when I see "The backup disk image cannot be mounted"

    I ran the time machine. Then, "preparing backup" showed up for a long time. After that, a window pop out: "Time machine error, The disk image cannot be mounted" What is disk image? What can I do (I can't back up anything)
    P.S. I use time capsule for backup. there were no problem on connection

    I suggest reposting in the TimeCapsule forum here:
    http://discussions.apple.com/forum.jspa?forumID=1253
    This may not be a TimeMachine problem at all but something else.

  • "Time machine error, The disk image cannot be mounted" What can I do??

    I ran the time machine. Then, "preparing backup" showed up for a long time. After that, a window pop out: "Time machine error, The disk image cannot be mounted" What is disk image? What can I do (I can't back up anything)
    P.S. I use time capsule for backup. there were no problem on connection

    I'm having the same issue. I do not have TC as my base station. It says right in the book that if you choose, you do not have to have it run as your router, just as a part of your existing wireless network. All software is up to date and I have already shortened the name of both my TC and TC disc to 6 characters and no spaces! I've already spoken with someone today about this. He really didn't know. Have tried backing up both wirelessly and directly connecting with an Ethernet cord. I had to finally call because when I attempted to register the product to get online support, apple.com didn't recognize the serial number!!! The gentleman on the phone got it registered for me. I bought the TC from an official apple store and for whatever reason when he put in the serial number his computer said that this TC was so "old" I guess that there was technically "no support." That basically means that even though my parents just purchased this for me a week before Christmas, that it was made a year ago and the warranty is not good?? I need to do more research on that. Right now I am very unhappy about this. I am a firm apple user and have been for years, but this is frustrating.
    I had read somewhere else (not sure I've been searching apple for what seems like forever now) to make sure that the TC was showing up in "devices" of the Finder. Mine doesn't show up there, but rather in the "Network" window. Is this an issue? If it is, can anyone tell me how to fix that. I have Time Machine backing up to my TC, so I do not see why it would be.
    UPDATE: I just opened up my TC on the "Shared" section of the Finder window and deleted the old "sparsebundle" (I had no clue that anything had backed up way back at 3:30pm on Dec 29) and now I get a slightly new message: Time Machine Error: The backup disc image could not be created." So now the word "mounted" is replaced with "created." This error showed up a lot sooner than the original one. Ok, no clue. I am going to try to Change the Disc again, and try again. I will post another update.
    Message was edited by: kryzma

  • Is it safe to back up a disk image file when it's mounted?

    Hi -
    I use some small, encrypted ".sparsebundle" disk image files to keep my diary, banking info, etc., on. When I'm at the computer, I keep them mounted all the time.
    Is it safe to let Time Machine automatically back up the .sparsebundle disk image files, even while they are mounted? Or would there be a possibility the backups would be corrupted, if the operating system hadn't written out cached data or something to the disk image file?
    In other words, if I save any open documents on the mounted disk image, does the disk image file on disk always contain the fully-saved document and a consistent file system? Or could there still be some data cached in RAM, that would not be saved at the time the .sparsebundle file was copied? Is it always necessary to unmount a disk image before duplicating its .sparsebundle file?
    Do I need to turn off Time Machine's automatic backup, and just do manual "backup now" after unmounting the disk images? That's a major pain in the behind... I really want to just let Time Machine do it's hourly backups as usual, but of course there's no point if the backups are corrupt.
    Of course my own guess is "to be safe", I should unmount them before backing up. But again it's a big pain if it's not actually necessary. Does anyone know for sure?
    Thanks...

    My understanding is that Unix, generally, doesn't write everything out to disk immediately. There is caching in RAM to speed up disk access, including modified superblocks, modified inodes, and delayed reads and writes. Now, if you ask to read an individual file, the kernel makes sure all the cached data is written before it returns the read data. But if you try to do, for example, a block copy of the whole filesystem, the kernel doesn't know that, and there's no guarantee or expectation that the filesystem will be in a coherent state.
    That's the purpose, for example, of the "sync" command - to write all this cached data to disk before unmounting, shutting down, etc., and, that's why the OS gets so upset if you just unplug a firewire drive. Because even if you've saved and closed any open documents, they haven't necessarily been fully written out to disk yet.
    So what I don't understand, is how people are ever able to back up mounted disk image files without them getting corrupted. I mean, you'd think they would get corrupted all the time. It would be the equivalent of just unplugging your firewire drive before you made a backup of it, or of doing a block copy of a read/write mounted filesystem. There ought to be a very good chance of the filesystem being scrambled. So, why does it not happen?
    Is there something different about the Apple filesystem, or Apple disk images? Or, maybe we're only talking about delay times in the cache of fractions of a second, so as long as you haven't written anything within a few seconds of the copy, and don't write anything during it, you're ok?
    Even if Apple reps won't answer my question, the kernel and most likely all the low-level disk i/o and filesystem stuff is open source. Surely there's someone out there who would be knowledgeable enough to give a definitive answer? I was hoping to find someone like that here... I do appreciate your taking the time to answer my post, but maybe I need to go elsewhere, on some developers' mailing lists or something? Does anyone know of such a place I could start looking?
    Thanks...

Maybe you are looking for