Previous 1 2 Next 16 Replies Latest reply: Sep 1, 2009 4:46 PM by BoingNZ
ctc1 Level 1 Level 1 (0 points)
Can someone please explain how to mount a sparsebundle? When I click on the file in finder I get an error "operation not supported on socket."

Here is what happened: I had a user account with Firevault enabled. I deleted this account and chose the option to save the account as a disk image. The file was created not as a .dmg but as a sparsebundle. But now I can't access the files within the sparsebundle, because I can't get it to mount.

Thanks.

Macbook Pro, Mac OS X (10.5.5)
  • V.K. Level 9 Level 9 (56,130 points)
    ctc1 wrote:
    Can someone please explain how to mount a sparsebundle?


    by double-clicking on it in finder.

    When I click on the file in finder I get an error "operation not supported on socket."


    that means that either the bundle is corrupt or possibly you don't have correct permissions to it. what are the permissions on the bundle?

    Here is what happened: I had a user account with Firevault enabled. I deleted this account and chose the option to save the account as a disk image. The file was created not as a .dmg but as a sparsebundle. But now I can't access the files within the sparsebundle, because I can't get it to mount.

    Thanks.
  • ctc1 Level 1 Level 1 (0 points)
    I changed the permissions so that my user account had read/write access. Do I need to do something special with the permissions as a result of this user account being created with firevault active?

    As a test, I created another user account without Firevault being activated, then deleted the account. The deleted user account was created as a .dmg and I could mount it with no problem.
  • V.K. Level 9 Level 9 (56,130 points)

    As a test, I created another user account without Firevault being activated, then deleted the account. The deleted user account was created as a .dmg and I could mount it with no problem.
    ctc1 wrote:
    I changed the permissions so that my user account had read/write access.

    that's not enough. a sparse bundle is a folder and you have to apply the permissions recursively.

    enter the following in terminal (copy and paste please)

    sudo chown -R `id -un`:`id -gn`

    DO NOTR press enter yet. press space. drag the sparse bundle to the terminal window. the result will look like this

    sudo chown -R `id -un`:`id -gn` /Users/Deleted\ Users/username.sparsebundle


    here username should be the name of the sparsebundle.
    press enter in terminal. you'll have to enter your admin password (which you won't see). that's normal. then enter the following terminal command

    chmod -R ar,X /Users/Deleted\ Users/username.sparsebundle
    again, the username will be the name of teh sprse bundle. when all is done try mounting the bundle again.

    Do I need to do something special with the permissions as a result of this user account being created with firevault active?

    As a test, I created another user account without Firevault being activated, then deleted the account. The deleted user account was created as a .dmg and I could mount it with no problem.
  • ctc1 Level 1 Level 1 (0 points)
    Thanks for your suggestions. Unfortunately I'm still stuck. The first part worked:

    enter the following in terminal (copy and paste please)

    sudo chown -R `id -un`:`id -gn`

    DO NOTR press enter yet. press space. drag the sparse bundle to the terminal window. the result will look like this

    sudo chown -R `id -un`:`id -gn` /Users/Deleted\ Users/username.sparsebundle

    The second command didn't work. it returned the following: chmod: /Users/Deleted Users/test.sparsebundle: Operation not permitted
    chmod: /Users/Deleted Users/test.sparsebundle/bands: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle/Info.bckup: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle/Info.plist: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle/token: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle: Permission denied


    here username should be the name of the sparsebundle.
    press enter in terminal. you'll have to enter your admin password (which you won't see). that's normal. then enter the following terminal command

    chmod -R ar,X /Users/Deleted\ Users/username.sparsebundle
    again, the username will be the name of teh sprse bundle. when all is done try mounting the bundle again.
  • baltwo Level 9 Level 9 (61,945 points)
    You need to include the sudo part.
  • V.K. Level 9 Level 9 (56,130 points)
    ctc1 wrote:
    Thanks for your suggestions. Unfortunately I'm still stuck. The first part worked:

    enter the following in terminal (copy and paste please)

    sudo chown -R `id -un`:`id -gn`

    DO NOTR press enter yet. press space. drag the sparse bundle to the terminal window. the result will look like this

    sudo chown -R `id -un`:`id -gn` /Users/Deleted\ Users/username.sparsebundle

    The second command didn't work. it returned the following: chmod: /Users/Deleted Users/test.sparsebundle: Operation not permitted
    chmod: /Users/Deleted Users/test.sparsebundle/bands: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle/Info.bckup: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle/Info.plist: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle/token: Permission denied
    chmod: /Users/Deleted Users/test.sparsebundle: Permission denied


    that would indicate that the first command didn't succeed. if it did the second command would have worked too. did the first command give any feedback? is your admin password by any chance blank?


    here username should be the name of the sparsebundle.
    press enter in terminal. you'll have to enter your admin password (which you won't see). that's normal. then enter the following terminal command

    chmod -R ar,X /Users/Deleted\ Users/username.sparsebundle
    again, the username will be the name of teh sprse bundle. when all is done try mounting the bundle again.
  • ctc1 Level 1 Level 1 (0 points)
    Thanks to everyone so far. baltwo helped solve the last problem: after I put "sudo" in front of chmod -R ar,X /Users/Deleted\ Users/username.sparsebundle the operation completed.

    Now the file has turned into an image. I double click on it, and asks me for my password. I enter my firevault password, but now I get this error:
    "no mountable file systems"

    Thoughts? I know there are files in there.
  • V.K. Level 9 Level 9 (56,130 points)
    as i said in my previous post it would seem that the first terminal command didn't work. run this

    ls -ladeO /Users/Deleted\ Users/username.sparsebundle

    what do you get?
  • ctc1 Level 1 Level 1 (0 points)
    thanks for sticking with me. the first command looked like it worked - it didn't return any error messages, but I don't know anything about using terminal.

    V.K. wrote:
    as i said in my previous post it would seem that the first terminal command didn't work. run this

    ls -ladeO /Users/Deleted\ Users/username.sparsebundle

    what do you get?

    this returns the following:
    drwxr-xr-x@ 6 502 staff - 204 Jul 15 20:04 /Users/Deleted Users/test1.sparsebundle
    0: user:Chris allow list,addfile,addsubdirectory,readattr,writeattr,readextattr,writeextattr,readsecurity


    the
  • V.K. Level 9 Level 9 (56,130 points)
    those permissions are wrong. please rerun the first terminal command I gave you. also, is Chris your current username?
  • ctc1 Level 1 Level 1 (0 points)
    I re-ran the command, but still not working. And yes, my username is Chris.

    Here is what it looks like in terminal:
    sudo chown -R `id -un`:`id -gn`/Users/Deleted\ Users/test1.sparsebundle
    Password:
    usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
    chown [-fhv] [-R [-H | -L | -P]] :group file ...

    Here is the info after re-running the last command you gave as well:
    drwxr-xr-x@ 6 502 staff - 204 Jul 15 20:04 /Users/Deleted Users/test1.sparsebundle
    0: user:Chris allow list,addfile,addsubdirectory,readattr,writeattr,readextattr,writeextattr,readsecurity
  • V.K. Level 9 Level 9 (56,130 points)
    there is a space missing in the command. it should be

    sudo chown -R `id -un`:`id -gn` /Users/Deleted\ Users/test1.sparsebundle
  • ctc1 Level 1 Level 1 (0 points)
    You're awesome! That did the trick - thanks so much for all your help. The image is now mounted.
  • V.K. Level 9 Level 9 (56,130 points)
    you are welcome!
Previous 1 2 Next