Help me delete some files in mac's unix

Discussion in 'macOS' started by cool11, Mar 4, 2014.

  1. cool11 macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
    #1
    My mbp seems to be in serious trouble.
    It does not boot, and I am trying to find what is going on.
    Meanwhile, in case I give it to an apple service, I need to delete some of my own files.\
    The one and only way to have some access to my files, is by entering th unix mode, pressing command-s during startup.
    I do not know unix.
    I google it and try to do it, but I fail.

    So, I go to the directory I want, typing 'cd'.
    Then I type
    rm filename

    The system display:
    override rw-r--r-- 502/admin for filename?

    I press
    y

    And then the system display:
    rm: filename: read-only file system

    The file cannot be deleted.
    It is a file that I created. It is my file, not a 'system' file.
    I get freak when I am thinking I should deal with 'permissions' or 'ownership', but please tell me an easy way to be able to delete personal files that I created.
     
  2. cool11 thread starter macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
  3. BrianBaughn macrumors 601

    BrianBaughn

    Joined:
    Feb 13, 2011
    Location:
    Baltimore, Maryland
    #3
    First, a few questions:

    What model Mac?

    What operating system?

    If it's Snow Leopard or prior, do you have the installer disk?
     
  4. cool11 thread starter macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
  5. aristobrat macrumors G4

    Joined:
    Oct 14, 2005
    #5
    If your file system is mounted read-only, then no changes can be made while it's read-only.

    Maybe someone can give you a suggestion for how to unmount it and then remount it as read-write. I don't know the OS X disk structure that well.
     
  6. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #6
    I assume here you have a backup and just want to erase what is on the drive now?

    If so, hold command-r keys both at once when booting to get to the recovery screen. Then start Disk Utility are erase Macintosh HD. That will erase your data and the OS. If you want to reinstall the OS after this just quit Disk Utility then click Reinstall OS X.
     
  7. cool11 thread starter macrumors 65816

    cool11

    Joined:
    Sep 3, 2006
    #7
    Due to a severe problem I can't get in recovery mode.
    This unix environment, is the only way to do something.
    I am one step away from service and I just want to delete some files before I deliver it there.
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    Okay... fair warning. This will nuke your entire users folder and all your data. Type the below command in at the command prompt from that command-s single user mode you booted into. Substitute your account's actual username at the end there. Or you can just leave the username off and it will erase all user accounts.

    You will be prompted for your admin password.

    Code:
    sudo rm -rf /Users/username
     
  9. BrianBaughn macrumors 601

    BrianBaughn

    Joined:
    Feb 13, 2011
    Location:
    Baltimore, Maryland
    #9
    Hey Weaselboy...can he run:

    Code:
    fsck_hfs
    from single user mode with the end result his disk being mounted as read/write? I ran into a similar issue recently but was able to make the disk writable that way except I was booted from the recovery partition and using Terminal.
     
  10. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #10
    It is worth a try, but I think OP's issue is more related to permissions.
     

Share This Page