Is there a way to mount the root partition of the Raspbian SD card on a mac? I need to edit the
dhcpcd.conf file. I had my pi running as a router and IP camera (so I wouldn't need someone else's wifi to use the camera) and the IP was
192.168.4.1. I only use the
wlan0 built in. I have no external antennas, meaning that in router mode, it's just a wifi camera. I used the following commands to disable the router to install some additional packages, but I forgot to edit
sudo systemctl disable dnsmasq sudo systemctl disable hostapd sudo systemctl reboot
After running the final command the wifi network disappeared. Then I realized that the router that it was about to connect to would block my pi because it wanted the IP
sudo ping raspberrypizero.local (yes, that's my hostname). Said host couldn't be resolved. So it's wifiless. Don't have any way to use it other than headless and I really, really want to refrain from wiping the SD.... Since Mac OSX is linux-based, do you think I could use the
fdisk command to mount the root (not boot) partition so I can edit
dhcpcd.conf? Thanks in advance!
fdiskis for partitioning drives. You will need to install
sambaand create an SMB-Share on your Pi to which you can get access from Finder.
macOSis BSD Unix, but has no support for
ext4and SIP frustrates most attempts to install it.
SOLUTIONas an answer, and mark it as the
acceptedanswer as soon as the system allows you to do that. It may help others, but it won't be seen if left in your answer.