I have an old and stuck local time machine snapshot or directory (probably from Mac OS 10.14/Mojave/2018) that seems impossible to delete (now on Mac OS 10.15/Catalina/2019).
The directory is empty (0 kB) and located here:
/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons Mac/2019-09-19-223308
But it does not show up if I run:
% tmutil listlocalsnapshots /
Snapshots for volume group containing disk /:
com.apple.TimeMachine.2020-08-03-161551.local
com.apple.TimeMachine.2020-08-03-162946.local
If I try to delete the directory, I get a error message that the directory is a read only file system:
% rm -rf /com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons\ Mac/2019-09-19-223308
rm: /com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons Mac/2019-09-19-223308/Macintosh HD: Read-only file system
rm: /com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons Mac/2019-09-19-223308: Read-only file system
Same happens if I try to delete the old local snapshot root directory.
% rm -rf /com.apple.TimeMachine.localsnapshots
rm: /com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons Mac/2019-09-19-223308/Macintosh HD: Read-only file system
rm: /com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons Mac/2019-09-19-223308: Read-only file system
rm: /com.apple.TimeMachine.localsnapshots/Backups.backupdb/Jons Mac: Read-only file system
rm: /com.apple.TimeMachine.localsnapshots/Backups.backupdb: Read-only file system
rm: /com.apple.TimeMachine.localsnapshots: Read-only file system
This also happens if I disable SIP.
Does someone have an idea how I get can rid of this directory?