Using "sudo rm -rf" on "read-only file system"

Discussion in 'macOS' started by Mattbull, Apr 23, 2010.

  1. Mattbull macrumors member

    Joined:
    Dec 15, 2009
    #1
    Ok, so I am trying to delete some files with the command "sudo rm -rf". I get the return message "read-only file system." I am log in as adim and I don't have the option of changing it to a write file in the "get info" tab. How is it possible to delete these files?
     
  2. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #2
    What is the 'device' you're trying to remove from? Is it a hard drive or a disk image?
     
  3. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #3
    I am trying to remove from my local HD on my computer
     
  4. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #4
    So I'm assuming you can't just drag it to the trash while logged in as admin?

    What are trying to delete?
     
  5. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #5
    good question. When I try to I get the error message "sorry, the operation could not be complete because an unexpected error occurred. (Error code -61)."
     
  6. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #6
    I didn't see where you asked what I am trying to delete. It is a "apimac timer" program that i downloaded off the apple website. It was working perfectly and me, being an idiot, tried to update the program. That's when it stopped working. I am hoping by removing it completely then reinstalling it fresh it will work again.
     
  7. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #7
    You haven't told me where this file is located, because that error means you don't have permissions to write.

    If you don't know, just post (without your OS X user name) what the list is when you command-click on the filename in the folder window of the file you're trying to delete.
     
  8. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #8
    when i command-click under general tab it says "where: /volumes/timer" and "where: /volumes/timer 1/apimac timer"

     
  9. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #9
    It sounds like you're trying to delete from a mounted read-only disk image. Do you have any images mounted?
     
  10. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #10
    Well, yeah that's it.

    You've been running API Timer from the disk image you download off the net. It's not actually installed on your local drive, so all you need to do is find that disk image (something.dmg) and delete it.

    I'm going to also take a stab and say you've been opening this application from the dock? If so just drag it off the dock, otherwise if you've been using a shortcut/alias, just stick that in the bin as well.
     
  11. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #11
    I just deleted all the .dmg files associated with that program and removed the icon from my dock. Yet I am still receiving that error message when I try to drag it to my trash can and the "sudo rm -rf" in terminal is still saying it is "read-only system"

     
  12. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #12
    Oh, what do you mean "all .dmg files associated with that program"? There really should only be 1 dmg file you should be deleting.

    To finish off the deleting, find the eject for that image, it should either be on your desktop or in a finder window on the left with an eject button next to it.
     
  13. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #13
    I for some reason had to eject it. After I did that, the program did not appear anymore when I did the search for it. I just tried reinstalling the program again. After I downloaded it, I copied it to my application folder. Now when I open it from my application folder it just bounces in my dock and it doesn't open.
     
  14. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #14
    I had mutiple ones like "timer (1).dmg", " timer (2).dmg" just because I downloaded it multiple times

     
  15. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #15
    Do any other applications open?

    Not sure why it wouldn't open, as long as you have the latest version it should work, it works on mine.

    Do you know what version of OS X you're running? (Apple in menu bar -> About this mac)?

    When you copied it, you just dragged it in right? But I wouldn't worry about it, maybe a restart would fix it, but if you're not going to use it, just forget about it.
     
  16. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #16
    I am running mac os x 10.5.8. When I downloaded it, i opened the dmg file and then copied the folder to my apllication folder

     
  17. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #17
    The reason i like the apimac timer program is it allow me run a file every so often at set intervals. Ie say I want to run the system sound "purr" every 10 seconds and repeat it, I can do so. There are a lot of programs out there that will allow you to run a file but they don't alow you to loop it over and over.
     
  18. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #18
    Have you tried restarting your computer and reopening? Have the latest version?

    Oh, and open up Console in Utilities and see if there are any messages from when you tried to open the program.
     
  19. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #19
    let me restart and see if it does anything brb
     
  20. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #20
    Tried shutdown/restart with everything deleted then redownloaded and reinstalled everything. Icon is still bouncing at the bottom of my dock and I cant open it. I opened console and saw this "4/24/10 2:54:18 AM Apimac Timer[363] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. "

     
  21. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #21
    Hmm, that version may not work at all. You will probably have find the version that was working for you before and use. Not sure what else you can do...

    Actually, I'm uploading a copy of mine, which is 6.3 and it works on my computer.

    Link: http://www.megaupload.com/?d=RB6EV07L
     
  22. Mattbull thread starter macrumors member

    Joined:
    Dec 15, 2009
    #22
    Your copy did the trick! Thanks for taking the time out of your day to help me out. God bless you
     
  23. sammich macrumors 601

    sammich

    Joined:
    Sep 26, 2006
    Location:
    Sarcasmville.
    #23
    Glad it worked out (finally :)) And you're welcome.

    God Bless you too.
     
  24. thepen macrumors newbie

    thepen

    Joined:
    Oct 22, 2014
    #24
    same issue on a full external drive

    Any suggestions under these circumstances? Presently unable to delete using trash, and Terminal says:
    rm: /Volumes/...: Read-only file system

    Terminal command:
    chown (user):staff /Volumes/...

    also gives "Read-only file system"

    The drive is full to capacity (accidentally). I can copy from but not write to it, including permission changes via finder. Any guidance is greatly appreciated!
     
  25. Leov39 macrumors newbie

    Joined:
    Feb 12, 2015
    #25
    Same issue on a full drive

    "thepen", did you ever get a reply to your post?
    I have the same problem, but didn't see a reply.
    Thank you!
     

Share This Page