I have an encrypted .dmg file with some useless files that I need to delete to make space. How can I delete them without having to convert them into a read write system and then back? (Would take 4~5 hours).

Like I said, it's read only so sudo rm -rf tells me that It can't delete it due to it being a read only file system.

  • 2
    Check if this can help you. – taliezin May 5 '15 at 14:12
  • 2
    Deleting files from the middle of a large encrypted file will in itself be a time consuming task, even if it were a writeable system. It will have to be deconstructed and reconstructed in any case. – Octopus May 5 '15 at 14:58
  • To use a shadow file with the attached compressed image, make the changes and re-create a compressed, encrypted image from it as suggested in Max Felker's answer (superuser.com/a/806321/316104) in @taliezin's link seems to be an attractive solution to me. – Peter - Reinstate Monica May 5 '15 at 16:22

A read-only file system can only be read (therefore it is named read-only).

To delete files on this file-system you have to remount it read-write.

  • Looks like it's not so simple as to mount *.dmg read/write. They need to be unpacked and reconstructed, just like tar archives. – user86969 May 5 '15 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.