I have a 9 year old MacBook Pro that has died. I want to recycle it, but I want to wipe any sensitive and personal data before it leaves my hands. I am only able to boot into safe (single user) mode using Cmd-S. I get the terminal prompt, but for some reason the file system is read-only. I need to change the file system to read-write so I can delete the Users files. I have exhausted my limited knowledge of commands, chown, chmod, etc. but the constant message I get is that files cannot be deleted because the file system is read-only. Is there a way to get the file system to a state where I can deleted files or even better wipe the drive completely? Thanks,
The commands you want to use to change the startup drive to write where at one time print out in the boot up messages.
Deleting a file will only delete the directory information. There are tools around to recover data.
This command will create the file zero with all zeroes in it. It will run until the disk is full. Thus, writing over the data.
# to check out what disk you have available df # another look at the disks diskutil list # check where the output is going. # use pwd print working directory pwd dd if=/dev/zero of=zero bs=1024k # dissecting this dd command # if=/dev/zero is the input data of all zeros. # of=zero is the name of the output file. # bs=1024k block size of 1meg ( 1024 * 1024 )
example run. control + c to stop
mac $ dd if=/dev/zero of=zero bs=1024k ^C1075+0 records in 1074+0 records out 1126170624 bytes transferred in 3.054673 secs (368671422 bytes/sec) mac RC=1 😱 $ ls -l zero -rw-r--r-- 1 mac staff 1.0G Aug 1 15:13 zero mac $