DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-01-09 23:01:53

gaekwad
Member
Registered: 2007-12-15
Posts: 13

Safe way to shutdown chroot'd Debian

Hi there. I've finally gotten afp working on my DNS-323 after much frustration and hair-pulling. I am officially happy smile

Now I need to work on startup and shutdown procedures - I don't want to have the boxes up and running when I'm not working with them as my power bill is something I can save money on (a good thing). Startup appears to be sorted - Debian successfully launches and afpd starts when I power up, so that's half the battle. Logic says that a chroot'd Debian should be shutdown properly to avoid file system errors etc. When I try to do a 'shutdown -h now', I get an error:

shutdown: /dev/initctl: No such file or directory
init: /dev/initctl: No such file or directory

and, sure enough, I don't have a /dev/initctl. Can I get one from somewhere?

Thanks!

Offline

 

#2 2008-01-09 23:08:05

gaekwad
Member
Registered: 2007-12-15
Posts: 13

Re: Safe way to shutdown chroot'd Debian

Have tried 'rm -rf' on the file to ensure it's gone, then a 'dpkg-reconfigure initscripts', which completed without errors, but it's still not there.

Offline

 

#3 2009-02-09 07:44:20

cfobel
New member
Registered: 2009-02-09
Posts: 2

Re: Safe way to shutdown chroot'd Debian

You can use the busybox 'reboot' command!

Install busybox:

sudo apt-get install busybox-static

Then you can reboot with:

sudo busybox reboot

Hope this helps!

Offline

 

#4 2009-02-10 18:31:29

toolbox
Member
Registered: 2008-12-18
Posts: 83

Re: Safe way to shutdown chroot'd Debian

What about shutting it down/power it off?
I tried "busybox poweroff -f" but the unit is not off.

Offline

 

#5 2009-12-31 20:57:11

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: Safe way to shutdown chroot'd Debian

The problem is that the /dev/initctl entry is removed by the /etc/init.d/mountall.sh

No idea why. Anyone?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB