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 dhcpcd.conf
.
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 192.168.4.1
. Tried 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!
fdisk
is for partitioning drives. You will need to installsamba
and create an SMB-Share on your Pi to which you can get access from Finder.macOS
is BSD Unix, but has no support forext4
and SIP frustrates most attempts to install it.SOLUTION
as an answer, and mark it as theaccepted
answer 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.