Author Topic: LS220D Fan / Debian question  (Read 1269 times)

GMAN73

  • Calf
  • *
  • Posts: 22
LS220D Fan / Debian question
« on: July 10, 2019, 05:23:42 am »
Im getting a bit sick of the fan noise on my LS220D its way too loud, I feel like getting rid of it and buying another NAS, then I read about installing Debian which has the software to control the fans.  I have a look at the guide over at Github from 1000001101000.

I removed my current 3TB and 2TB drives and took a spare 1TB and hooked it up to Ubuntu, I partitioned it to 1GB formated it to EXT3, mounted it and copied over the files initrd.buffalo and uImage.buffalo.  I slotted the 1TB into my LS220D, it booted up with the white light flashing then the other light went to Red (is this EM mode). 

I then followed the guide from this website https://herzig-net.de/?page=unbrick_ls-wxl  by running LSupdater on a Windows 10 machine, but once it does all the updates Im still on the normal firmware 1.70 and not debian.  So what Im I doing wrong?

The LS220D is at the default, now if I put in my original (3TB and 2TB drives) will they read okay or will they get wiped and I will have to copy over everything from backups.

Thanks
G

« Last Edit: July 10, 2019, 05:28:10 am by GMAN73 »

1000001101000

  • Debian Wizard
  • El Toro
  • ****
  • Posts: 352
  • There's no problem so bad you cannot make it worse
Re: LS220D Fan / Debian question
« Reply #1 on: July 10, 2019, 09:13:29 am »
Good to hear from you!

I'm not sure where your Debian install went wrong but I'm sure we can figure out a way to get it working. From your description is sounds like something didn't work correctly either with your partitioning or with the install files. It appears that when the device failed to boot the installer image it then booted from the on-board NAND into EM mode (either that or you loaded buffalo's *.buffalo files instead of the ones from GitHub).

Now that the firmware updater has re-partitioned/reformatted the drives you could try again. You can be certain those partitions work with the boot loader which should narrow down where your first attempt went wrong. If you still have trouble I can probably help troubleshoot though I'll need detail about what commands you are using at each step.

To answer your other questions:

The Debian install process doesn't make any changes to the device itself, everything is stored on the hard drive(s). You should be able to put your old drives back in and boot back into the stock firmware without any issues.

As you mentioned, you can control the fan speed from Debian and can use the pwmconfig utility to set the temperatures at which the fan changes speed. Be careful when using this ability, drives can heat up pretty quickly in these smaller devices which could be an issue if you set the fan too low.

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #2 on: July 10, 2019, 02:16:42 pm »
Hi 1000001101000,

Not sure what is going on, I may attempt to copy the files over to the boot partion using the commands in the github guide.  Would prefer using Windows to do this as I have no experience of Ubuntu.

I obtained the two files from the Buster location at github.  If I dont have much luck then I will probably sell the NAS on Gumtree and buy something else.

Thanks for the response.
G

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #3 on: July 10, 2019, 03:48:02 pm »
Well Iíve managed to get to this bit :

6. Navigate to the /boot directory.
    cd /boot
Terminal is sitting at [admin@LS220DEABF boot]

Then I have realised how do I copy the files that are stored in my directory ď/home/gerry/gmanĒ to the boot folder of the LS220D.  Iím a total novice when it comes to Ubuntu Linux commands.


 Thanks
G


1000001101000

  • Debian Wizard
  • El Toro
  • ****
  • Posts: 352
  • There's no problem so bad you cannot make it worse
Re: LS220D Fan / Debian question
« Reply #4 on: July 10, 2019, 04:11:35 pm »
I usually use sftp at that point. The commands will be similar to:

[admin@LS220DEABF boot]: sftp <your user>@<your PC's IP>
> cd ď/home/gerry/gmanĒ
> get *.buffalo

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #5 on: July 10, 2019, 05:08:39 pm »
Think Iím gonna call it a day with this.

After I go to cd / boot

 I enter

sftp Gerry@192.168.0.11 (my computer IP from NIC)
Comes up about ECDSA key finger print
Are you sure you want to connect - I select  Yes
Cones up Gerry@192.168.0.11 password
I enter 1973 thatís the password I use to logon
Cones up permissions denied.

Shame as I really wanted to try this firmware

G


1000001101000

  • Debian Wizard
  • El Toro
  • ****
  • Posts: 352
  • There's no problem so bad you cannot make it worse
Re: LS220D Fan / Debian question
« Reply #6 on: July 10, 2019, 06:59:28 pm »
I just ran through it on my ls220de without using sftp, instead I used wget and the python simple http server. here are the commands I used:


$ java -jar acp_commander_cli.jar -t 192.168.1.131 -ip 192.168.1.131 -pw password -c "/bin/busybox telnetd&"
$ java -jar acp_commander_cli.jar -t 192.168.1.131 -ip 192.168.1.131 -pw password -c "chmod -R 777 /boot"
$ cd ..
$ cd Buster/installer_images/
$ python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
[1] 31817
$ telnet 192.168.1.131
Trying 192.168.1.131...
Connected to ls220de.
Escape character is '^]'.

BUFFALO INC. LinkStation series
LS220DED26 login: admin
Password:
[admin@LS220DED26 ~]$ cd /boot
[admin@LS220DED26 boot]$ mv uImage.buffalo uImage.buffalo.bak
[admin@LS220DED26 boot]$ mv initrd.buffalo initrd.buffalo.bak
[admin@LS220DED26 boot]$ wget http://192.168.1.146:8000/initrd.buffalo
--2019-07-11 08:51:02--  http://192.168.1.146:8000/initrd.buffalo
Connecting to 192.168.1.146:8000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31138868 (30M) [application/octet-stream]
Saving to: `initrd.buffalo'

100%[=============================================================================================================>] 31,138,868  20.4M/s   in 1.5s   

2019-07-11 08:51:03 (20.4 MB/s) - `initrd.buffalo' saved [31138868/31138868]

[admin@LS220DED26 boot]$ wget http://192.168.1.146:8000/uImage.buffalo.ls220d
--2019-07-11 08:51:37--  http://192.168.1.146:8000/uImage.buffalo.ls220d
Connecting to 192.168.1.146:8000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4251893 (4.1M) [application/octet-stream]
Saving to: `uImage.buffalo.ls220d'

100%[=============================================================================================================>] 4,251,893   --.-K/s   in 0.1s   

2019-07-11 08:51:37 (28.0 MB/s) - `uImage.buffalo.ls220d' saved [4251893/4251893]

[admin@LS220DED26 boot]$ mv uImage.buffalo.ls220d uImage.buffalo       
[admin@LS220DED26 boot]$ sync
[admin@LS220DED26 boot]$ exit
logout
Connection closed by foreign host.
$ java -jar acp_commander_cli.jar -t 192.168.1.131 -ip 192.168.1.131 -pw password -c "reboot"
$ ssh installer@192.168.1.131
The authenticity of host '192.168.1.131 (192.168.1.131)' can't be established.
RSA key fingerprint is SHA256:f58ol5GJgIp+D8cPGkgqW8ZVpoq0cgnKOyHpfbMOE+M.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.131' (RSA) to the list of known hosts.
installer@192.168.1.131's password:

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #7 on: July 10, 2019, 07:04:22 pm »
thanks for the post, I'll give it another try tomorrow.  Ive reset the SSH and Ive now getting a warning about hosts someone could be doing something nasty, offending ECDSA key in home/.ssh/known-hosts:1 host key verification failed connection reset by peer

I'll try tomorrow thanks for the posts.

G
« Last Edit: July 10, 2019, 07:17:36 pm by GMAN73 »

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian q
« Reply #8 on: July 12, 2019, 02:43:47 am »
Think that I might buy another NAS I donít know whatís going on I can connect to the LS220D do the prompt cd /boot but when I do sftp gerry@192.168.0.11 I get the message connection closed by 192.168.0.11 Couldnít read packet: Connection reset by peer

So looks like thatís stopping me from copying files to the boot folder

1000001101000

  • Debian Wizard
  • El Toro
  • ****
  • Posts: 352
  • There's no problem so bad you cannot make it worse
Re: LS220D Fan / Debian question
« Reply #9 on: July 12, 2019, 06:34:05 am »
SSH/SFTP/HTTPS donít work well within the stock firmware because the tools are old and donít support the current cyphers/protocols. That is why I provided that example that only uses telnet/HTTP.

Try using the commands from my post, that should get you up and running.

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #10 on: July 12, 2019, 08:10:47 am »
Thanks for that info I will give that a go.

Cheers

G

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #11 on: July 12, 2019, 06:09:22 pm »
Hi 1000001101000,

Well i followed your instructions with my settings :  Please see queries in Red

$ java -jar acp_commander_cli.jar -f
$ java -jar acp_commander_cli.jar -t 192.168.0.34 -ip 192.168.0.34 -pw <password> -c "/bin/busybox telnetd&"
$ java -jar acp_commander_cli.jar -t 192.168.0.34 -ip 192.168.0.34 -pw <password> -c "chmod -R 777 /boot"
$ cd ..
$ cd home/gerry/ --- (Now does this make a difference to what folder I point too, do the two files need to be present in this folder also)           
python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &cd /boot
[1] 31817
$telnet 192.168.0.34
Trying 192.168.0.34...
Connected to ls220de.
Escape character is '^]'.
BUFFALO INC. LinkStation series
LS220DED26 login: admin
Password:
[admin@LS220DED26 ~]$ cd /boot
[admin@LS220DED26 boot]$ mv uImage.buffalo uImage.buffalo.bak
[admin@LS220DED26 boot]$ mv initrd.buffalo initrd.buffalo.bak

wget http://192.168.0.34:9000/axs/u:4c8a94ce61d54943fbb8750110520fd9/initrd.buffalo  (I stored this file on my NAS as I got OpenSSL errors with github)

[admin@LS220DED26 boot]$ wget http://192.168.0.34:9000/axs/u:4c8a94ce61d54943fbb8750110520fd9/initrd.buffalo
--  wget http://192.168.0.34:9000/axs/u:4c8a94ce61d54943fbb8750110520fd9/initrd.buffalo

Saving to: `initrd.buffalo'

100%[=============================================================================================================>] 31,138,868  20.4M/s   in 1.5s   

(20.4 MB/s) - `initrd.buffalo' saved [31138868/31138868]

admin@LS220DED26 boot]$ wget http://192.168.0.34:9000/axs/u:01d062271680162687203aecfb0779da/uImage.buffalo.ls220d (I stored this file on my NAS as I got OpenSSL errors with github)

wget http://192.168.0.34:9000/axs/u:01d062271680162687203aecfb0779da/uImage.buffalo.ls220d

Saving to: `uImage.buffalo.ls220d'

100%[=============================================================================================================>] 4,251,893   --.-K/s   in 0.1s   

(28.0 MB/s) - `uImage.buffalo.ls220d' saved [4251893/4251893]

[admin@LS220DED26 boot]$ mv uImage.buffalo.ls220d uImage.buffalo       
[admin@LS220DED26 boot]$ sync
[admin@LS220DED26 boot]$ exit
logout
Connection closed by foreign host.

$ java -jar acp_commander_cli.jar -t 192.168.0.34 -ip 192.168.0.34 -pw <password> -c "reboot"

$ ssh installer@192.168.0.34 (This was the only part that failed I got ""ssh installer@192.168.0.34
ssh: connect to host 192.168.0.34 port 22: Connection refused""
Now is this the command that installs the Debian as I rebooted the LS220D and when I went to the IP on my browser the same config page is there, I dont see anything about Debian same goes for the Advanced Settings section.












« Last Edit: July 12, 2019, 07:47:16 pm by GMAN73 »

1000001101000

  • Debian Wizard
  • El Toro
  • ****
  • Posts: 352
  • There's no problem so bad you cannot make it worse
Re: LS220D Fan / Debian question
« Reply #12 on: July 13, 2019, 12:37:08 am »
howdy,

question 1: The exact folder doesn't matter at all, it merely needs to be the directory with the *.buffalo files.

question 2: I should have been more specific about the last part, though I show the commands one right after the other between issuing the reboot command and attempting an ssh connection you need to wait 5 minutes or so for the device to shutdown and then boot into the installer image and start the ssh connection. that error could indicate that you merely didn't wait long enough.

it looks like you're really close to getting it working.

GMAN73

  • Calf
  • *
  • Posts: 22
Re: LS220D Fan / Debian question
« Reply #13 on: July 13, 2019, 04:35:26 am »
Hi 1000001101000,

Done all the commands

gerry@dell:~$ java -jar acp_commander_cli.jar -t 192.168.0.34 -ip 192.168.0.34 -pw <password> -c "reboot"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!

Using random connID value = 8********A
Using target:   192.168.0.34/192.168.0.34
Starting authentication procedure...
Sending Discover packet...   
Found:   LS220DEABF (/192.168.0.34)    LS220DE(GOICHIJO) (ID=004814)    mac: **:**:**:**:**:**   Firmware=  1.700   Key=*********
Trying to authenticate EnOneCmd...   ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>reboot
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not been set. Use the WebGUI to make appropriate settings.

At this point the LS220D reboots so I have done it right, I will wait for 10mins and then I do the following below with the same terminal open that I used for all the other commands

gerry@dell:~$ ssh installer@192.168.0.34
ssh: connect to host 192.168.0.34 port 22: Connection refused


So the Port 22 Connection refused bit is stopping me from installing, this is the only stumbling block.  Will the initrd.buffalo and initrd.buffalo still remain on the boot folder even if I switch it off or will I have to redo the whole scripts.


Just wish I could get this port 22 connection sorted I get the impression that its my ISP Virgin Media thats blocking it with their crap Superhub 3, though when I run ShieldsUp at grc.com and it gives me a green box (stealth) for SSH 22 when I probe it the port shows as closed

So looks like my ISP is the culprit for the last part :(
« Last Edit: July 13, 2019, 04:58:33 am by GMAN73 »

1000001101000

  • Debian Wizard
  • El Toro
  • ****
  • Posts: 352
  • There's no problem so bad you cannot make it worse
Re: LS220D Fan / Debian question
« Reply #14 on: July 13, 2019, 01:32:32 pm »
1. Yes, the files will stay in place between reboots.
2. All the connections involved in this process are on your local network, your ISP won't be involved at all.

if it still doesn't come up if you try too boot it I'd guess the *.buffalo files could be bad (perhaps improperly downloaded from github or otherwise corrupted). Could you run md5sum *.buffalo* in the folder where those files are and post the result?