Results 1 to 8 of 8

Thread: Make sparsebundle read-only

  1. #1

    Default Make sparsebundle read-only

    Every few years I move all my files into a disk image and start from scratch. I need the image to be (mounted) read-only for safety and searchable.

    So far I used sparseimage, made Spotlight index them and then locked the file.

    This time I tried sparsebundle as it was "recommended for 10.6" and can put images on file systems that don't support tens of gigabytes in a single file. However I can't find a way to make them read-only, no matter what permissions I assign to the bundle or the bands folder inside.

  2. #2

    Default

    Quote Originally Posted by towb View Post
    This time I tried sparsebundle as it was "recommended for 10.6" and can put images on file systems that don't support tens of gigabytes in a single file. However I can't find a way to make them read-only, no matter what permissions I assign to the bundle or the bands folder inside.
    I suggest that you use a disk image format that’s inherently read-only, rather than trying to change the file permissions. For example, you could convert your .sparsebundle to a .dmg that uses bzip2 compression. This will save disk space, protect your files with a checksum, and also ensure that they’re not modified. If the maximum file size is a concern, you could create a segmented .dmg.

  3. #3

    Default

    Quote Originally Posted by Michael Tsai View Post
    For example, you could convert your .sparsebundle to a .dmg that uses bzip2 compression.
    Unfortunately that step breaks Spotlight. I can open the image before and after conversion side-by-side and only get (fast) filename matches for the .dmg but content matches for the sparsebundle.

  4. #4

    Default

    Quote Originally Posted by towb View Post
    Unfortunately that step breaks Spotlight. I can open the image before and after conversion side-by-side and only get (fast) filename matches for the .dmg but content matches for the sparsebundle.
    Well, this is strange. I’ve verified that even if the read-only disk image contains the Spotlight index files, Spotlight still won’t search it. Does anyone know what’s going on here?

    I guess you could set all the folders on your mounted sparsebundle to read-only.

  5. #5

    Default

    I guess whatever process handles the index just dies if it can't open the file for writing.

    Workaround: hdiutil mount compressed.dmg -shadow

  6. #6

    Default

    Quote Originally Posted by towb View Post
    I guess whatever process handles the index just dies if it can't open the file for writing.
    Aha. In that case the shadow feature is a good workaround. This might make a good addition to DropDMG.

  7. #7

    Default

    Quote Originally Posted by Michael Tsai View Post
    This might make a good addition to DropDMG.
    It'd be nice to double click a DMG and have it be mounted with -shadow automatically if there's a .shadow file next to it.

  8. #8

Similar Threads

  1. Can DropDMG make a .iso?
    By kolepard in forum DropDMG
    Replies: 4
    Last Post: 06-29-2010, 02:24 PM
  2. How to Make a Blog Ideas Database With EagleFiler
    By Michael Tsai in forum EagleFiler
    Replies: 0
    Last Post: 01-12-2010, 10:35 AM
  3. Dropbox .sparsebundle sync broken...?
    By iain_s in forum EagleFiler
    Replies: 15
    Last Post: 01-08-2009, 12:10 PM
  4. Make new text file?
    By AmberV in forum EagleFiler
    Replies: 4
    Last Post: 10-14-2008, 04:33 PM
  5. HowTo: make a specific rule
    By antoniong in forum SpamSieve
    Replies: 2
    Last Post: 07-16-2008, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •