dissable MIONET bricks Mybook
Forum » Forum / My Book World Edition (blue rings) » dissable MIONET bricks Mybook
Started by: RaphieRaphie
On: 1194528390|%e %b %Y, %H:%M %Z|agohover
Number of posts: 10
rss icon RSS: New posts
dissable MIONET bricks Mybook
RaphieRaphie 1194528390|%e %b %Y, %H:%M %Z|agohover

Yesterday i tred to manually dissable the Mionet service and it bricked my MyBook World (luckily my dealer was willing to exchange it)

This is what i did:

1. Created a user account via the webinterface
2. Used the Martin Hinner SSH Hack http://192.168.x.xxx/auth/firmware_upgrade.pl?fwserver=martin.hinner.info/mybook/firmware.php
3. logged in via Putty with the credentials created in 1.

after being logged in i typed the following:
su -
cd /etc/init.d
mv mionet.sh mionet.sh.bak
reboot

the system rebooted and the light stayed of and no ip connectivity whatsoever. the reset button didn't work either.
What went wrong?

I would really like to dissable this service, but if something simple as a few commands can brick this box the risk is high.
did someone test if dissabling it via the WD webinterface also dissables the service and unloads it from memory until reboot?

last edited on 1194539497|%e %b %Y, %H:%M %Z|agohover by Raphie + show more
unfold dissable MIONET bricks Mybook by RaphieRaphie, 1194528390|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
20thCB20thCB 1194602627|%e %b %Y, %H:%M %Z|agohover

I did the same instructions as you. I too lost network connectivity. However I powered off the MyBook then turned it on again and it was fine.

unfold Re: dissable MIONET bricks Mybook by 20thCB20thCB, 1194602627|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
RaphieRaphie 1194609145|%e %b %Y, %H:%M %Z|agohover

for me that didn't work, the led stayed of and no way to contact de mybook.
It did not take it's ip adress from the router, nothing…..

So i am very hesitant to try this again (don't think the shop will be thát nice to exchange twice in 1 week)
can anybody confirm is disabling the service from the WD webinterface is also unloading this from memory until reboot?

unfold Re: dissable MIONET bricks Mybook by RaphieRaphie, 1194609145|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
tcblacktcblack 1194644732|%e %b %Y, %H:%M %Z|agohover

I can't definitively answer that question as I've not had mionet functioning since the day after I got the mybook. you can disable it in the web interface and then login to ssh and run top look to see if mionet is running. better yet run top first and watch what happens as you disable mionet through the web interface.

However, you can painlessly try running without mionet by completing steps 1-3 and

su
cd /etc/init.d
./mionet.sh stop

this will simply stop mionet without changing anything. At this point a reboot will bring it all back just as it was. I suppose if you're really afraid you can create another script named with a very high "S" number like S99killmionet something like

#!/bin/sh
/etc/init.d/mionet.sh stop

this would or rather should enable mionet to load during boot and then once everything else is loaded (the S# scripts execute in numerical order) it would unload mionet. Waste of compute cycles if you ask me but I can't imagine why turning off mionet is bricking your book.

background

when the mybook boots it reads /etc/inittab to load what it needs in order.
about 1/2 down it is told to run /etc/init.d/rcS which loads and runs in numerical order all of the S# scripts in /etc/init.d
S30network loads the network and calls network_control.sh
network_control.sh calls post_network_start.sh which in turn loads mionet.sh which itself calls the mionet daemon located in /usr/mionet/.

In theory that means that all of this is done before moving on to the next S# which in the default installation doesn't exist. If you create S99killmionet with the proper shutdown command (mionet.sh stop)it should be the last thing to run during system initialization.

During a shutdown /etc/init.d/rcK executes the kill scripts (K#*) in numerical order as well. K60network calls post_network_start.sh stop which shuts down the mionet daemon. issuing a shutdown command on an already stopped process doesn't do any harm, and likely just issues a 'program isn't running' command.

Mionet itself is not a required Linux program, and the only thing that I'm aware of which requires it is mionet itself. If it's off it just doesn't work. If the script to load it is removed or disabled it shouldn't work and the mybook should just move on to the next line.

I wish I knew why your first one bricked.

unfold Re: dissable MIONET bricks Mybook by tcblacktcblack, 1194644732|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
chemistry101chemistry101 1219949250|%e %b %Y, %H:%M %Z|agohover

I bricked my mybook, but I refuse to return it, I think someone can help me get it running again.

unfold Re: dissable MIONET bricks Mybook by chemistry101chemistry101, 1219949250|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
WorldBookWorldBook 1195087698|%e %b %Y, %H:%M %Z|agohover

DO NOT rename the mionet.sh script- that's one ugly way to stop mionet, and a failry good
way to 'brick' your book.

tcblacks's analysis is correct, but the solution is not the best.
No need to start a kill script after mionet has started, just prevent the mionet.sh script from being called in the
first place during boot up.
Just comment out the mionet line in post_network_start.sh as follows:

start() {
      if [ ! -e "$POST_NETWORK_STARTED_FILE" ]
      then
        $SCRIPTS_PATH/crond.sh start
#       $SCRIPTS_PATH/mionet.sh start
        touch $POST_NETWORK_STARTED_FILE
      fi
}
unfold Re: dissable MIONET bricks Mybook by WorldBookWorldBook, 1195087698|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
DJF5DJF5 1208853624|%e %b %Y, %H:%M %Z|agohover

Uhm, after doing this and rebooting, my MyBook is bricked now too. I think i have to hang it to my pc to fix it again :(
Can anyone else confirm this working or non-working?

unfold Re: dissable MIONET bricks Mybook by DJF5DJF5, 1208853624|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
LorentLorent 1209316342|%e %b %Y, %H:%M %Z|agohover

The method previously mentioned above by "WorldBook" is the correct way to go about things, basically by moving the file, the system will still be calling the file and it will be bound to cause problems, often bricking. By removing (commenting out) the mionet-startup call from the startup file, we effectivley get rid of mionet and the Book is none the wiser that it ever existed :) -its still installed though if you wish to use it at a later date-

And yes the method does work, i have used it on mine with no problems :)

unfold Re: dissable MIONET bricks Mybook by LorentLorent, 1209316342|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
RaphieRaphie 1195119590|%e %b %Y, %H:%M %Z|agohover

So, how can i log in with Ultraedit (sftp) with admin rights? via Putty i can do SU, but with Ultraedit i can't perform command line commands
But this is the only way that i can edit files on my PC (don't know how to put a texteditor on the Mybook via SSH)

unfold Re: dissable MIONET bricks Mybook by RaphieRaphie, 1195119590|%e %b %Y, %H:%M %Z|agohover
Re: dissable MIONET bricks Mybook
WorldBookWorldBook 1195135955|%e %b %Y, %H:%M %Z|agohover

just use vi - it's already installed on the machine.

unfold Re: dissable MIONET bricks Mybook by WorldBookWorldBook, 1195135955|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License