RPI running HassOS not connecting

Hello,

Recently my router seemed to crash, possible bad build of dd-wrt running on the router, or something to do with AdGuard stopping in Home Assistant possibly, (did not have internet connection no matter what dns i put in the router).
The SD card seems to be write protected, was hoping as a start i could remove the static IP and get the raspberry 4b up with Home Assistant OS up and running again. The RPI does not show up with a IP address in the router.
The SD card does not seem defect, as the boot section show up on my windows machine, and i got the raspberry up and running with usb boot.
The snapshot i have backed up is a bit too old, so was hoping i could restore the sd card somehow.
How do i go about to restore DHCP for hassos without being able to connect to a monitor (lacking a micro HDMI adapter) if i can bypass the write protection?
Is there a way to copy all the content of the sd card to a USB device?

Windows cannot show the multiple Linux partitions on your SD card, that’s why you only see boot.

I guess it is less “write protected” and probably more “Windows can’t write to the partition”.
Have you tried opening a file as Administrator?

It’s been a while since I’ve needed to hack through an SD card on Windows.

I figure once you can see the other partition you will be able to modify whatever network config file HASSIO modifies for static IP.

2 Likes

you could set up a (temporary) dns server on your windows machine?

1 Like

Windows seems to be part of the problem!
Connected the card to a ubuntu VM, and now i can see the drives
image
Guess its the data partition i need? Doing a copy of the partition to a image, hoping a format of that partition will help, followed by a restore, as ubuntu says that one partition is read only and unable to mount.