Quick Terminal question

Discussion in 'macOS' started by pawn3d, Sep 25, 2008.

  1. pawn3d macrumors regular

    Apr 5, 2008
    I've got a read only disk connected and I can't seem to two things:

    1 delete a file from that disk. The operation cannot be completed because you do not have sufficient privileges for "cat.jpg".
    2 add a file to a folder on that disk. The item "url.htm" could not be moved because "myfiles" cannot be modified.

    Grr! This is my machine! How do overpower it?
  2. TH-Gunner macrumors regular

    Mar 28, 2008
    If the disk is read-only, can't you Get Info on it, then change the permissions so that you can modify it? Choose "Apply to Contents" so that the permissions of everything inside change too.

    If they're system files that need Admin rights to change, use sudo.

    For example, if you wanted to delete a folder:

    sudo rm -r /Volumes/<HDD name>/<folder>
    You will be prompted for your password.

    Similarly, you can use cp to copy files from your internal HDD to your external.

    If you use the Terminal a lot, check this program out:


    It's basically a button that you can put at the top of your Finder tool bar so that you can click it, and it'll automatically cd to whatever directory you're in. If you use Linux, you know just how handy that can be.
  3. pawn3d thread starter macrumors regular

    Apr 5, 2008
    i did that command and it says Read-only file system
    Get Info says You can only read
  4. swiftaw macrumors 603


    Jan 31, 2005
    Omaha, NE, USA
    It is a widows formatted disk? If so, it can only be read by OSX not written to.
  5. pawn3d thread starter macrumors regular

    Apr 5, 2008
    Yes, it is a windows disk. Thank you. Is there an App that can overwrite it?

    I'm fighting for the fate of the world.
  6. TH-Gunner macrumors regular

    Mar 28, 2008
    I was going to cover that, too, but I forgot to do it. If it's NTFS, OSX can't write to it; it can only read.

    One option is to connect the disk to another computer and access it through the network.
  7. MacsRgr8 macrumors 604


    Sep 8, 2002
    The Netherlands

Share This Page