[SOLVED] Shutting down Raspberry Pi which runs OpenHAB 2

See post 9 above. [SOLVED] Shutting down Raspberry Pi which runs OpenHAB 2

Mount the SD card on some other Linux system and repair the sudoer’s file or add openhabian back to the sudoer group.

Only make changes to the sudoer’s files using visudo.

Thanks, i do not have mac or linux computer

Could i make it from an android phone?

is there a way to mount it on windows?

Then it might be easiest to just start over from scratch and restore a backup.

You probably can’t do anything from an Android phone. You might be able to install a Linux VM on your Windows Machine using VirtualBox or the like. You could create a Live CD or USB drive and boot your Windows machine into Linux as another option.

Finally, ParagonSoft makes an EXT2 file system reader that will let Windows read the SD card, but you really need access to visudo to edit the sudoers file so I don’t recommend that approach.

Thanks a lot you are saving me a lot of time
An idea maybe, Can I plug my SD in the usb to my aiy voice kit raspberry?

Yes but only if you have a USB adapter for the SD card. You can’t remove the existing SD card that the AIY uses to boot and put the broken on in.

sure,

it’s working . i can edit it.

but i have a lost the default sudoers file of the openhabian image

You will need to research what a sudoer’s file is supposed to look like. Then copy the suoder’s file from your AIY. That will probably be enough. If not, you need to add an entry for user openhabian.

i have followed your advice. i restored a back up

thank you