Quick Terminal question

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

  1. pawn3d macrumors regular

    Joined:
    Apr 5, 2008
    #1
    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

    Joined:
    Mar 28, 2008
    #2
    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:

    Code:
    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:

    http://mac.softpedia.com/get/Utilities/OpenTerminal.shtml

    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

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

    swiftaw

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

    Joined:
    Apr 5, 2008
    #5
    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.
    [​IMG]
     
  6. TH-Gunner macrumors regular

    Joined:
    Mar 28, 2008
    #6
    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

    MacsRgr8

    Joined:
    Sep 8, 2002
    Location:
    The Netherlands

Share This Page