How can I delete files on a read-only file system?

8,409

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.

Share:
8,409

Related videos on Youtube

DisplayName
Author by

DisplayName

Updated on September 18, 2022

Comments

  • DisplayName
    DisplayName almost 2 years

    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.

    • taliezin
      taliezin about 9 years
      Check if this can help you.
    • Octopus
      Octopus about 9 years
      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.
  • Romulus Urakagi Ts'ai
    Romulus Urakagi Ts'ai about 9 years
    Looks like it's not so simple as to mount *.dmg read/write. They need to be unpacked and reconstructed, just like tar archives.