Actual Version: v 1.1
- v1.1 - Added "simple Unbrick Tool" option for the White Light Mybook Single Drive (thanks TeinturMan).
- v1.0 - Initial guide
I had the following 2 errors when I have tried to log-in in the web admin interface (webgui) in the white light mybook:
XML error: no wixnas object found!
XML error: no wixnas object found! Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0.
It turned out that the root of the problem was that i have run out of space in the NAS and the webgui config.xml corrupted (size became 0 byte) and the worst was that it seemed that the my shares folders were 0 byte as well. I though i lost all my data.
—> Post: http://mybookworld.wikidot.com/forum/t-171648/xml-error:no-wixnas-object-found#post-556972
I have tried many things to recover the share folders and access to the webgui again. Thanks frater and TeinturMan for helping out. I am writing this guide based on my experience to help out others that have the same problem.
Table of Content:
- I) Different reset types/levels and their impact
- II) Possible scenario table to indentify what reset types you can use in your current situation
- III) Extra info: admin password reset, Useful commands in telnet
I) Different reset types/levels and their impact
Generally, the higher the reset level is, the more impact and more modification you have on the current NAS configuration, settings. It is recommended to fix your problem by going from reset level 1 to level 8, after each other, and go one step ahead if the current level could not fix your problem. (I went up till level 6. :) )
I/1) Reboot: This is the easiest one. Simply reboot the NAS. This is the same as you would go to Start/Restart Windows. Two ways to execute it:
a) in console type:
b) in webgui: Shoutdown/Reboot icon then Reboot
I/2 General webgui reset: Advanced mode/Restore Configuration/”General Restore” button
Selecting General Restore will restore all features to previously saved settings (data volume and shares settings excepted). All current system configurations will be lost (shares are untouched) and the device automatically reboots after the restore process. Do not mixed it up with the "Restore Default Configuration " option in the page!
I/3 Soft reset (reset button on the back): Same as "I/2: general webgui reset" just it is executed by holding down the reset button at the back of the NAS at least for 10 sec when it is running. If the soft reset was successful the NAS reboots.
I/4 Hard reset (soft reset while powering up): Shutdown the NAS. Unplug the ethernet and the power cable. Plug in the power cable. While the NAS is powering up hold the reset button at the back for at least 40 sec. Plug the ethernet cable back. Start the NAS.
I/5 Manual webgui firmware upgrade: go to my other guide to Point 1 "Update firmware”
I/6: Forced manual firmware upgrade via console:
This is what i missed in the forum the most: to upgrade the firmware from console if weggui can not be accessed and want to keep my shares content as well.
wget -O unpack_fw http://wd.mirmana.com/unpack_fw.sh
This will download firmware from WD's site.
To start the upgrade process you enter the command:
nohup /var/upgrade/upgrade1.sh &
I/7 Default webgui reset (Restore Default Configuration): Advanced mode/Restore Configuration/” Restore Default Configuration” Button
Restoring the device to the Factory Default will destroy all data on the device, including all configuration setup, all shares, and all user data and media files. After the restore is complete, the device configuration will be identical to its state at purchase (“virgin”). To use the device, the initial setup will have to be performed again. The LAN settings (including port settings) are not changed. After the reset, the administrator login/password will be changed to “admin/admin.”
I/8: Recovery outside of the box (External recovery): If worst come to the worst and neither of the previous points solved your problem you have to perform external recovery. You will need to take the hdd out of your mybook, connect it to a PC/laptop,
1) run a ubuntu live cd and recovery/fix the errors in linux. Thread: http://mybookworld.wikidot.com/forum/t-171834/my-book-world-edition-white-unbrick-guide
2) use "Unbrick Tool" for the White Light Mybook Single Drive under XP to rewrite the 3 system partitions of the Mybook with new ones (using the windows dd version) and keep the Data partition (4th) untouched.
Detailed description: http://highlevelbits.free.fr/index.php?option=com_content&view=article&id=107
II) Possible scenario table to identify what reset types you can use in your current situation
III) Extra info:
III/1 admin password reset: http://mybookworld.wikidot.com/forum/t-175057/can-not-log-in-into-webadmin-gui-w-admin-admin-after-hard-reset
III/2 Useful commands in telnet:
cat /var/log/messages – check system log
cat /etc/group – list groups
cat /etc/version – list current firmware version
ncdu – disk usage
/opt/bin/ipkg update - Update list of available packages
/opt/bin/ipkg upgrade - Upgrade all installed packages to latest version
/opt/bin/ipkg/install <pkg> - Download and install <pkg> (and dependencies)
ls –lah - List information about the FILEs (the current directory by default), -lah=use long listing format. show all files, sizes in human readable format
pwd – list current path
reboot - reboot
top – list running process
df -h – list mounted filsystems to check their size/used%
sfdisk -l - list partitions of each device
ps -efu root – list all processes, full output format, by effective user ID (supports names)
rm -rf [dir] – delete folder
passwd – change admin password
dmesg – prints the message buffer of the kernel
If you know another way then the above-mentioned options or if something is not correct please free to post it .