Skip to content

Instantly share code, notes, and snippets.

@renanyoy
Created December 15, 2025 17:25
Show Gist options
  • Select an option

  • Save renanyoy/f59d9c32aab89e57a7fefdf715ad757e to your computer and use it in GitHub Desktop.

Select an option

Save renanyoy/f59d9c32aab89e57a7fefdf715ad757e to your computer and use it in GitHub Desktop.
Mount Mac system read/write

Mount mac system disk read/write

Reboot in recovery mode

  • shutdown the mac
  • start the mac holding the power on button indefinitly

Mounting

diskutils list internal
# identify the diskxsx device name of the "Macintosh HD" partition
unmount /Volumes/macintosh HD
mkdir /tmp/fs
mount -t apfs /dev/diskxsx /tmp/fs
# do what you want to do
cd /
umount /tmp/fs
rmdir /tmp/fs

Example

Get ride of annoying disk ejected notifications

cd /tmp/fs/System/Library/LoginPlugins
rm -rf FSDiconnect.loginPlugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment