# \[SOLVED\] Shutting down Raspberry Pi which runs OpenHAB 2

**URL:** <https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811>\
**Category:** Bindings\
**Tags:** exec, shutdown, openhab2\
**Created:** [August 5, 2017, 6:58pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811 "2017-08-05T18:58:18Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 23, 2019, 2:59pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/21 "2019-09-23T14:59:03Z")

</div>

See post 9 above. [[SOLVED] Shutting down Raspberry Pi which runs OpenHAB 2 - #9 by Udo\_Hartmann](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/9)

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.

---

<div class="post-metadata">

**Author:** ![nakh\_Home](https://community.openhab.org/user_avatar/community.openhab.org/nakh_home/32/19923_2.png) [@nakh\_Home](https://community.openhab.org/u/nakh_Home)\
**Post date:** [September 23, 2019, 3:07pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/22 "2019-09-23T15:07:05Z")

</div>

> [@rlkoshak](#):
>
> Mount the SD card on some other Linux system and repair the sudoer’s file or add openhabian back to the sudoer group.

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?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 23, 2019, 3:11pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/23 "2019-09-23T15:11:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nakh\_Home](https://community.openhab.org/user_avatar/community.openhab.org/nakh_home/32/19923_2.png) [@nakh\_Home](https://community.openhab.org/u/nakh_Home)\
**Post date:** [September 23, 2019, 4:03pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/24 "2019-09-23T16:03:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 23, 2019, 6:00pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/25 "2019-09-23T18:00:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nakh\_Home](https://community.openhab.org/user_avatar/community.openhab.org/nakh_home/32/19923_2.png) [@nakh\_Home](https://community.openhab.org/u/nakh_Home)\
**Post date:** [September 23, 2019, 6:02pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/26 "2019-09-23T18:02:47Z")

</div>

sure,

it’s working . i can edit it.

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

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 23, 2019, 6:05pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/27 "2019-09-23T18:05:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![nakh\_Home](https://community.openhab.org/user_avatar/community.openhab.org/nakh_home/32/19923_2.png) [@nakh\_Home](https://community.openhab.org/u/nakh_Home)\
**Post date:** [September 23, 2019, 9:04pm UTC](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811/28 "2019-09-23T21:04:21Z")

</div>

i have followed your advice. i restored a back up

thank you

[Previous page](https://community.openhab.org/t/solved-shutting-down-raspberry-pi-which-runs-openhab-2/32811.md?page=1)
