Deleting files in Root of Catalina

Killerbob

macrumors 65816
Original poster
Jan 25, 2008
1,000
76
I (stupidly) created a folder in the root of my boot drive. I put some big files in there, thinking it would be OK, like it was under Mojave.

Then I realised that I can't change these files, and copied the folder somewhere else. But, now I can't delete the files or the folder???

How do I do that?
 

DeltaMac

macrumors G3
Jul 30, 2003
9,526
2,298
Delaware
I'm pretty sure that was just a "fast-typing" error. :cool:
You would boot back up into whatever system you are normally using.
Just to clarify that post, you disable SIP, after booting to the recovery system, with the "csrutil disable" command. Restart to your normal system, and you should be able to remove that folder from the root of your drive. Restart to the recovery system, and run "csrutil enable" to enable SIP again.
That's the process to change the status of SIP on any Mac. You must do that through the recovery system terminal.
 

Killerbob

macrumors 65816
Original poster
Jan 25, 2008
1,000
76
I disabled SIP, booted back into Catalina, and I still cannot delete the folder. I can’t delete the files in the folder either...

Any other suggestions?
 

DeltaMac

macrumors G3
Jul 30, 2003
9,526
2,298
Delaware
Boot to a different boot drive.
Navigate to your drive from that system. That should allow deleting a folder/files from another volume.

Just curious - your Catalina drive has two volumes, one is read-only, with the system files, with your hard drive name (like Macintosh HD). The other volume is same name plus Data (so, the example would be Macintosh HD - Data). That volume has all your files and apps. Which volume did you choose to copy all those big files?
 

spheris

macrumors member
Aug 8, 2018
76
33
The American Empire
Copy the data to a spare drive, do a clean install and don't do it again is the best route. Whatever you've done to get it in there, you might be able to reverse the steps but it might very well be futile to. The system volume is off limits and that's not a secret. It's just going to get more masochistic as time goes on trying to tamper with it.
 

Killerbob

macrumors 65816
Original poster
Jan 25, 2008
1,000
76
I only have the one boot drive on my Mac Pro, with Catalina installed now.

On my Mac Pro the SSD is named "Master". I can tell from the sizes, that "Master" has the system folders, and "Master - Data" has everything else.

The folder I want gone is on "Master"...
 

TimothyR734

macrumors 68000
Apr 10, 2018
1,733
1,477
Logsden Oregon
I only have the one boot drive on my Mac Pro, with Catalina installed now.

On my Mac Pro the SSD is named "Master". I can tell from the sizes, that "Master" has the system folders, and "Master - Data" has everything else.

The folder I want gone is on "Master"...
Maybe try the script in the terminal that should give you permission and also try this in the terminal sudo mount -uw / ; killall Finder
 

Attachments

Killerbob

macrumors 65816
Original poster
Jan 25, 2008
1,000
76
Sorted...

I ended up piecemealing a solution together from all the feedback and suggestions:

1) Booting into Recovery, disabling SIP
2) Mount the Master drive, using -uw
3) Change to the mounted partition
4) Deleting the unwanted directories using rmdir -r
5) Enabling SIP
6) Reboot and be happy...

Thanks!
 

spheris

macrumors member
Aug 8, 2018
76
33
The American Empire
Glad you got the files fixed. Stick to the data volume. In the somewhere near future, that kind of thing could very well brick you if you have a t2 system.
 

Killerbob

macrumors 65816
Original poster
Jan 25, 2008
1,000
76
And I don't even know how the system allowed me to create the folder and populate it in the first place. And I wasn't thinking - I was prepared for some of the Catalina ways of doing things, but when the system allowed me to create the folders, I though it was going to be OK, that is until I tried to start LightRoom...
 

spheris

macrumors member
Aug 8, 2018
76
33
The American Empire
It's going to be a little bit of an adjustment for a bit. Definitely going to be a learning curve for the people used to messing in the root system. The upside is that it's going to stop a lot of unwanted things from messing around with it too and that's always a bonus.
 
  • Like
Reactions: celaurie

Killerbob

macrumors 65816
Original poster
Jan 25, 2008
1,000
76
I am fine with it, but my OCD is going nuts...

The biggest issue I have is the slowness of the iOS integration into the Finder. Syncing iPhones and iPads is so slow... Also, right now, when shutting down Windows 10 (in Bootcamp) the system is obviously preventing the write to the bootinfo files, and hence the system will not shut down entirely, and it will continue to boot up in the Windows partition, until I go into Boot Manager and select macOS...
 
  • Like
Reactions: celaurie

haralds

macrumors 65816
Jan 3, 2014
1,035
271
Silicon Valley, CA
And by Mojave, you mean Catalina?
No, Mojave. You will have trouble with the Read-Only volume on Catalina even with SIP disabled.
[doublepost=1563131086][/doublepost]
Sorted...

I ended up piecemealing a solution together from all the feedback and suggestions:

1) Booting into Recovery, disabling SIP
2) Mount the Master drive, using -uw
3) Change to the mounted partition
4) Deleting the unwanted directories using rmdir -r
5) Enabling SIP
6) Reboot and be happy...

Thanks!
That's the hardcore way I would actually use.