
Here a short note about place where Buffalo LinkStation stores its configurations (and how to work out issue with backup). I’m having issues related to backup and impossibility to change some information using LinkStation WebAdmin console: for an unknown reason the backup configuration is unmodifiable.
#1 Buffalo linkstation backup issue
#2 Hack command miconapl
Note : Buffalo LinkStation has to be hacked in order to allow ssh access…
(i.e. firmware such as OpenLink http://buffalo.nas-central.org/wiki/OpenLink allows to access to LinkStation… and more)
#1 Buffalo linkstation backup issue
After you logged on LinkStation you can find all configurations under : /etc/melco
Note that melco (name of directory) means … “ Melco Holdings Inc. is a family business founded by Makoto Maki in 1975 and is located in Japan. The company’s most recognizable brand is Buffalo Inc. ”
Btw in my case the the faulty file was : /etc/melco/backup1
status=run type=now start_time=4:00 week=Sun overwrite=off crypt=off compress=off mirror=off logfile=on force=off folder=/mnt/disk1/Gnomo<>GNOMO@/mnt/usbdisk1
In order to reset this wrong backup information file execute :
cd /etc/melco
>backup1
#2 TODO : when I have time…
here in /etc/melco there is a file “lcdled” which seems to contains information about lcd(?) and led…
cat lcdled hostip= hddused= diskmode= time= auto= lcdluminance= ledluminance=1 useledsleep=off lednightluminance= wakeuptime= sleeptime=
there are some related commands which seem to work on led … and generally on serial bus : one of these is /usr/local/bin/directcopy
Found it and try to discovery others commands using :
ls -1 /usr/local/bin/ | xargs strings -f | grep led
Btw using shell command “strings” on command /usr/local/bin/directcopy I found out some other information about another command such as miconapl and…
root@gnomo> strings /usr/local/bin/directcopy /lib/ld-linux.so.3 _Jv_RegisterClasses __gmon_start__ libc.so.6 fgets .... miconapl -a int_get_switch_status >/tmp/input_switch /tmp/input_switch ... * DirectCopy, Power SW is Single ! echo -n >/tmp/directcopy_single miconapl -a bz_on button * DirectCopy, Power SW is Double ! echo -n >/tmp/directcopy_double /tmp/output_power /tmp/output_info miconapl -a led_set_cpu_mcon off miconapl -a led_set_cpu_mcon power info miconapl -a led_set_cpu_mcon power miconapl -a led_set_cpu_mcon info miconapl -a led_set_on_off off miconapl -a led_set_on_off power info miconapl -a led_set_on_off power miconapl -a led_set_on_off info ...miconapl seems to drive leds … further investigation it is required … maybe
**** UPDATE 2013-02-10 *****
hack command miconapl
miconapl seems to have ability to handle led, speaker, temperature sensor … writing (reading) on serial port.
The source code of a compatible command is placed here : http://www.mztn.org/kpromemo/kpromicon.html
From this source code it is possible to extract some useful information … below some example :
#1 play a melody using the internal speaker of NAS :
miconapl -a bz_melody 240 e3 e3 f3 g3 g3 f3 e3 c3 d3 e3 e3 f3 f3 e3 e3 f3 g3 g3 f3 e3 d3 c3 c3 d3 e3 d3 c3 c6 (could be useful as "alarm" in case of error on script backup)
#2 read speed of fan
miconapl -a fan_get_speed #[miconapl.fan_get_speed] fan_rpm=1830
#3 read temperature sensore
miconapl -a temp_get #[miconapl.temp_get] temp=46
other information about led driving can be found here :
http://www.yamasita.jp/linkstation/2008/03/080309miconaplled_control.html
all the time i used to read smaller posts which also clear their motive,
and that is also happening with this post which I am reading at
this time.