Buffalo Forums

Products => Storage => : Eastmarch September 06, 2019, 12:25:28 PM

: Reinstalling to an out-of warranty NAS with blank drives
: Eastmarch September 06, 2019, 12:25:28 PM
Our super awesome user 1000001101000 put together some pages which help DIYers with TFTP reinstalls. Buffalo can't speak to the accuracy or safety of any of this stuff, and we can't support it, so don't take this as advice or an endorsement as the content. Mostly this is for people with an out-of-warranty chassis that they have the desire to reinstall and get back running. Which is super cool.

A few points: Some units have the ability to reinstall firmware built into the box. These are :

TS3000
TS5010, 3010
LS220DE (Not 220 or 210)
LS421D (Not 420 or 410)
LS441DE
LS-WVL/E

In addition, TS5000 has a documented, simple method to reinstall, as does TS-xVL as these are Intel processors capable of USB boot. Any Windows Storage Server unit is provided with reinstall media in the box.

All other NAS units use an ARM processor and the firmware is factory installed on the provided drives, and has no simple way of being reinstalled; as you will see in his links.

His Post:

This consists of first extracting the required firmware files:
https://buffalonas.miraheze.org/wiki/Extract_Boot_Files_from_Stock_Firmware

Then booting into EM mode either by TFTP booting with your favorite TFTP utility or by loading the files onto an EXT3 partition on a disk:
https://buffalonas.miraheze.org/wiki/Restoring_Stock_Firmware_without_TFTP
or
https://buffalonas.miraheze.org/wiki/Restoring_Stock_Firmware_via_TFTP

finally performing the install using the firmware updater in Debug mode with the "rebuild partition table" and "force update" options selected:
https://buffalonas.miraheze.org/wiki/Enable_Debug_mode

I've heard back from folks who done this successfully with just about every ARM based linkstation/terastation model over the past year.

Any oLet me know if you have any questions.

**Intel based devices use a similar process only get into EM mode via a usb recovery disk:
https://buffalonas.miraheze.org/wiki/Create_Recovery_Disk_for_Intel-based_Terastation
: Re: TFTP Repair links
: fizux September 11, 2019, 10:59:07 PM
I am grateful for all of the hard work and support provided on this issue, but one problem I have had is that many of the resources (TFTP Repair links, Debian images, etc.) miss the LS-QL series linkstation (e.g. LS-Q4.0TL/R5), which from experience appear not to be compatible with the LS-QVL series.

Any suggestions of an alternate series to try as a replacement, or would it be possible to publish resources for this series?  For example, Debian supported models include:
kuroboxpro, ls-chl, ls-wsgl, ls-wtgl, lspro_ls-gl, ls-chlv2, ls-qvl, ls-vl, ls-wsxl, ls-wvl, ls-wxl, ls-xhl
but not ls-ql.

: Re: TFTP Repair links
: oxygen8 September 12, 2019, 05:39:38 AM
in 2016 it was possible to use debian on LS-QL
https://miniconf.debian.or.jp/assets/files/Debian%20Installer%20for%20Buffalo%20Linkstation%20NAS.pdf
: Re: TFTP Repair links
: 1000001101000 September 12, 2019, 09:53:52 AM
I never noticed that about the LS-QL before. Despite being listed on that slide deck I don't see that a device tree ever ended up in the kernel nor was part of the original project as far as I can see.

Looking at the specs for the various devices I would suspect that the installer for the lspro_ls-gl or ls-chl might work with the LS-QL. There could be differences that prevent leds/buttons/usb ports from working but it's worth a try.

Oddly enough I'm currently working on adding Debian support for additional devices not covered by previous projects (I'll put up a separate post about that at some point). I should be able to add the LS-QL to that project.

Let me know if you have any success with the ls-gl/ls-chl files.

: Re: TFTP Repair links
: 1000001101000 September 12, 2019, 07:57:56 PM
I thought I had an LS-QL but it turned out to be a QVL.

Iím afraid I wonít be able to do any hands-on testing. If youíre able to get it running using the files for another device I can help modify the device tree for the LS-QL if youíre interested.
: Re: TFTP Repair links
: fizux September 13, 2019, 09:38:05 AM
I did try using the LS-QVL firmware, but that did not work and I had to go back to LS-QL.  The slide deck has LS-QL listed as 2nd Gen, and LS-QVL as 3rd Gen.

Thanks, if you have the ability to add a LS-QL branch, I would certainly provide feedback from testing.
: Re: TFTP Repair links
: Eastmarch September 17, 2019, 11:00:48 AM
LS-QL was the same generation as LS-CH. I'd def try it. 
: Re: Reinstalling to an out-of warranty NAS with blank drives
: oxygen8 September 19, 2019, 12:21:35 AM
LS-CHL with blue webif (HANZEI) uses the Orion chipset, like the LS-QL
The LS-CHL with red webif (YURYAKU) uses the Kirkwood like the LS-QVL

Debian on the old LS-CHLV1:
https://www.onderka.com/computer-und-netzwerk/buffalo-linkstation-live-ls-chl-v1-v2-und-v3/

Maybe it is possible to modify this for the LS-QL
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 September 19, 2019, 10:35:21 AM
We took the conversation offline and have been looking into making this work. The installer for the ls-chl didn't work out of the box, I'm still trying to figure out why.

stay tuned.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: jerryr December 19, 2019, 05:14:01 PM
Greetings All.  Interesting thread. TIA.

Question.......

Background First:

I have a TS5800D2408. I had all 8 bays populated. I only had R5 configured. (I know R6 would have been optimal, but what it was bought for the extra capacity was needed.) A couple of months ago, I lost a drive. This was ok. I bought another and replaced it. The array recovered and went on about it's business.  However, I then lost another drive. I replaced it, however, this time while it was rebuilding I lost a second drive.  This of course is bad as a R5 group can not sustain two drive failures at the same time. No biggie. Most of the important stuff was backed up.

However, I have since removed the two bad drives and have decided to just go with 6. I used the Bootable USB Recovery Image located here: https://www.buffalotech.com/support/downloads/terastation-5000n-series

I was able to boot to the USB drive, have it go through the recovery process and then flip the switch back to boot from the HD.  The system starts but the LED screen stays a purplish pink color. The power button continually flashes and only the Welcome to Terastation is displayed. The display button does not toggle the display. The system does get an IP Address as I can see it given out to the device in my router. When I go to the IP Address the page will load but I only see the outline of some of the shapes. If I use the NAS Navigator, the device does not show up.

Question:

In order to perform this option using the Bootable USB Recovery Image, do I need to make sure that the drives I am using have zero partitions on them and are blank in order for the recovery to work correctly?

If the Bootable USB Recovery will not work to replace everything then what are my options?

Thanks,

Jerry
: Re: Reinstalling to an out-of warranty NAS with blank drives
: jerryr December 19, 2019, 06:59:56 PM
Ok.. that was the ticket... Needed to have no partitions on the drives and then use the USB Recovery Image.

Thanks for this thread!
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 19, 2019, 07:36:22 PM
Sweet. Blank drives is important, usually so is having enough drives
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 24, 2019, 10:22:31 PM
HI guys, new to this NAS thing, i happen to get my hands on a used Buffalo TeraStation-TS-XE8-0TL-R5-4-Bay from a guy who stated it was in excellent working condition.  I brought it from him and when i connected it up to my network  the thing powered up and went thru some type of process , seems to be running correctly, i see on the amber screen " No Init File at HDD0, at the end the light turned red from amber and a message stating emergency mode and no array info. I tried updating the firmware from the updater and i get a beeping sound from the NAS and a message DISK1 signature fail. I;m running on Mac OS 10.14.6 Mojave,  Been trying for a few days now to no-avail, could someone shed some light as to what i can do to get this thing up and running?

 My computer IP is  (f)192.168.1.102, the IP showing on the NAS is (f)192.168.1.10
(https://i18.servimg.com/u/f18/19/79/78/80/screen25.png)

(https://i18.servimg.com/u/f18/19/79/78/80/screen24.png)
Frank
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 25, 2019, 05:35:04 AM
sounds like itís booting off the onboard NAND into EM mode which should make things relatively simple.

You should be able to get running by first ensuring the drives are blank and then running the firmware installer in debug mode with the formatting options enabled:
https://buffalonas.miraheze.org/wiki/Enable_Debug_mode

: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 25, 2019, 11:37:30 AM
sounds like itís booting off the onboard NAND into EM mode which should make things relatively simple.

You should be able to get running by first ensuring the drives are blank and then running the firmware installer in debug mode with the formatting options enabled:
https://buffalonas.miraheze.org/wiki/Enable_Debug_mode

 How would i go about ensuring the drives are blank? do i remove them and erase them?  I tried doing the debug thing and kept getting an error message on the Nas as stated above.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 25, 2019, 12:40:34 PM
usually I connect them to another system and wipe them or use gdisk to remove the partition table.

if that is inconvenient you can connect to the EM Mode device using acp_commander and wipe the drives directly using dd. If the drives have an MBR type partition table it should be sufficient to just wipe the first few kilobytes of the drive, if it's using GPT you'd need to also wipe out the backup partition table .

 if you want to try it directly on the device you can get a copy of acp_commander here:
https://github.com/1000001101000/acp-commander
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 25, 2019, 03:30:30 PM
I can connect them to my MAC and wipe them, what format would i use to erase them?  MSDOS (fat) or  EXFat?
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 25, 2019, 04:56:23 PM
Neither. They need to be blank as in no partition table/filesystem.

I found this which sounds like how to do it on a mac:

https://www.idownloadblog.com/2015/06/20/how-to-delete-partition-mac/

: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 25, 2019, 05:25:22 PM
Neither. They need to be blank as in no partition table/filesystem.

I found this which sounds like how to do it on a mac:

https://www.idownloadblog.com/2015/06/20/how-to-delete-partition-mac/

 On a Mac when you erase a volume it ask you how you want to format  it,  as those instructions show, they selected Mac OS X Extended (Journaled) as you can see in the attached image , those are my selections. It won't erase unless i select one of them.
(https://i18.servimg.com/u/f18/19/79/78/80/screen26.png)

 BTW thanks for the help.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 25, 2019, 06:06:55 PM
Sadly, I donít know my way around a mac very well. You can always use dd to do it from the command prompt.

It should be similar to the linux version though I think the disks are named differently on osx
:
dd if=/dev/zero of=/dev/sdx bs=512 count=1
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 25, 2019, 06:20:22 PM
Sadly, I donít know my way around a mac very well. You can always use dd to do it from the command prompt.

It should be similar to the linux version though I think the disks are named differently on osx
:
dd if=/dev/zero of=/dev/sdx bs=512 count=1

 Yeah sorry, that code looks Chinese to me.. LOL  , I'm afraid if i erase the drives and won't be able to get it going. I don't have the original setup  software,  so i'm afraid of killing it completely if i erase the drives.

 If i erase the 4 drives with my mac,  how would i be able to reinstall the software, do i just need to reinstall the firmware software?
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 25, 2019, 08:55:36 PM
Good news got into the NAS, finally, i did manage to get some screen shots, hopefully i can get this straighten out. 

I got the following errors :

 disk1_broken_error

 disk4_broken_error

degrade_mode_info

 I need to erase what's on here and start fresh. can someone guide me>  i also got a notice on the NAS window stating h2-4
1-3  raid 5 broken?
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 25, 2019, 09:00:59 PM
sounds like progress. I'm not familiar with the error codes and don't know if that means the drives are literally malfunctioning or not. 
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 25, 2019, 09:22:57 PM
sounds like progress. I'm not familiar with the error codes and don't know if that means the drives are literally malfunctioning or not.

 It's alittle progress, how do i go about creating a new raid and deleting what;s there already, since somethings not right with the current setup.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 December 25, 2019, 09:56:35 PM
I think the disks menu somewhere in the webui
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 26, 2019, 11:15:23 AM
I think the disks menu somewhere in the webui

Great success! Got it working re-formatted the drives from the webUi and the light is now blue on the window, have to re-do the Raid once itís all done with the format and everything else.  Once again thanks for the help.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: BlackScorpion December 28, 2019, 10:31:22 PM
Well i got the TS working i have a problems with drive 4, giving me an error, i'm thinking of just replacing all 4 drives and start new, does anyone know if my Terrastation TS-XEL7D8, (TS-XEL/R5 series) could handle larger size NAS drives? it currently has 4 2TB drives.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: Kane88 March 10, 2020, 10:55:08 AM
Well i got the TS working i have a problems with drive 4, giving me an error, i'm thinking of just replacing all 4 drives and start new, does anyone know if my Terrastation TS-XEL7D8, (TS-XEL/R5 series) could handle larger size NAS drives? it currently has 4 2TB drives.
Have you replaced the drives in it yet?   There is a TS-XE12.0TL, so looks like 3's were the most buffalo shipped out for that model.  Maybe it goes higher?  Unknown.  I can confirm 4tb drives do work in that model.  I've tried it.  I have an array formatted to 16TB currently in this model, and it works fine.

To wipe the drives on a MAC, this is what you need.  What you were doing to wipe- won't work.  You need a drive zeroing utility or drive wipe utility.

http://www.killdisk.com/killdisk-mac.htm

Or I'd look to see if Western Digital has wddiag for mac, that will wipe anything.  And should be free also.
And DBAN- darik's boot and nuke works- that's freeware stuff too, but you'd have to make a bootable usb flash drive for that one. 
: Re: TFTP Repair links
: Kane88 March 10, 2020, 11:03:27 AM
I am grateful for all of the hard work and support provided on this issue, but one problem I have had is that many of the resources (TFTP Repair links, Debian images, etc.) miss the LS-QL series linkstation (e.g. LS-Q4.0TL/R5), which from experience appear not to be compatible with the LS-QVL series.
I was just curious if this issue for a TFTP boot image has been resolved for this model.

Is this the correct download page for this device?  A search for LS-Q4.0TL/R5 goes to here:
https://www.buffalotech.com/support/downloads/linkstation-quad

If so, then the TFTP files just have to be extracted from the firmware download on that page...
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 March 10, 2020, 12:32:21 PM
The process works just fine for the LS-QL.

The only issue is that if you load directly to a disk this model (and all Orion/MV78100 based devices) need the inode size of the boot partition set to 128.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 01, 2020, 12:18:57 AM
I have a LS-QVL/R5, and the device started to hang on large uploads.  Support asked me to refresh the firmware, but the device has error E06 after the reboot.  I have gone through all of the steps listed, and am able to blank the disks, add the boot files on an ext3 partition and have the device boot in EM mode.  Any time that I attempt to add the firmware back on (goes through the partition table build, firmware load, and reboot), the device comes back up to the E06.  Can anyone give me any ideas about next steps, if any?  Thanks!
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 May 01, 2020, 08:33:22 AM
Getting all the way through a firmware install without error but still ending up with 6 red blinks is certainly odd. Have you done anything to validate the health of the hard drives?
: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 02, 2020, 09:48:16 PM
Good call on the drives.  Checked all four and disk #1 had SMART failures.  I swapped drives 1 and 4 to get the bad drive out of the initial slot.  Unfortunately, it failed after the initial partition, firmware load, and reboot again with an E06.  Will I need to replace that drive?  I was hoping not to until I verified that the NAS was working (would replace otherwise).  Thanks!
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 May 02, 2020, 10:26:44 PM
I don't have a great explanation for why that keeps happening, I would guess it has something to do with the bad drive but I would expect a failing drive to be more of a problem during the firmware install than at boot time in most scenarios.

On thing you can try is pulling that drive out and trying to boot, if it's getting hung up on that drive for some reason that might help.

If that still doesn't work I'd try an install without the bad drive. If you don't have a replacement handy you'll most likely need to trick the device into thinking it's normal to have less than 4 drives at install time ( you can always add more later). I have a note about how to do this in the guide:
java -jar acp_commander.jar -t <device ip address> -c "echo MAX_DISK_NUM=2 >> /etc/nas_feature"

You run that before running lsupdater using acp_commander which can be found here:
https://github.com/1000001101000/acp-commander

: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 04, 2020, 11:23:03 AM
OK, ran through all of that and the same E06 issue is occurring.  Is there a way to image the drives to the specific setup required?  Once the RAID partitions are dropped onto the drives, I cannot get access to them directly for obvious reasons.  It seems that there is something that is either disconnected in this process or has failed in the NAS control board.  Any other ideas on what could be done?  Thanks!
: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 04, 2020, 12:04:28 PM
BTW, I did get Disk1 mounted and can review it.  Is there anything specific that I should be looking for or ensuring is there?  Also, would using an older rev of the firmware matter?  Currently using the 1.74 version (latest).
: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 04, 2020, 04:36:33 PM
OK, started looking at the drives in the RAID and realized something interesting...  The 1.74 firmware is dropping the uImage files into the first partition as "uImage-88f5182.buffalo" and "uImage-lsp.5.x.buffalo".  When I am re-building the drives from scratch, I set up drive 1 with these files, but had to rename the "uImage-lsp.5.x.buffalo" to "uImage.buffalo" for it to work.  After the latest firmware load and E06 errors, I pulled the first two drives and checked the first partition.  The uImage-lsp filename is not updated, as well as the RAID was still showing four drives instead of two.  I renamed the file on both drives and put them back into the NAS.  Booted it up, the drives resynced and I started getting an E16 instead.  Added the two other drives, rebooted, they all synced , and now the NAS is back up and operational.  That seems like a very wonky thing for the firmware names to cause that issue, especially given that it is the firmware from Buffalo that is causing it. 

Thanks for all of your help and hopefully this helps someone else!
B
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 May 04, 2020, 05:30:11 PM
That makes sense with the errors you've seen though I still don't understand how it got that way. Usually E06 indicates that it is able to access the boot volume has an issue with the boot files themselves (happens a lot when testing alternative OS), E16 usually means it can't find the boot partition.

Not installing/renaming the boot file explains the error, it just seems extremely odd that that would happen without lots of other errors happening at the same time. Ultimately I'd still blame it on the bad drive but exactly how that adds up is still confusing to me.

If you do get a replacement I'd be interested how installing with 4 known good drives turns out for you.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 04, 2020, 07:04:48 PM
Drive is on the way, be here on Friday.  We'll see what happens then.  Thanks!

Other weird thing is that it is trying to recover old shares...  It think that there may be some funk on the device that is causing some issues as well.  I am completely reiniting the device and disks to see what happens.  If that drive were really the problem, I should be getting a deprecated disk which I am not.  I let you know what happens.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: borgan@yahoo.com May 07, 2020, 05:47:58 PM
Last post on this...  New drive arrived and did not change anything.  This is after I initialized/reset the device to factory (which did fix the E16 error issue) and wiped the drives.  The only fix for the E06 is the file rename.  Currently rebuilding the array (RAID 10) and will repopulate the device afterward.  Thanks for your help!
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 May 07, 2020, 08:28:42 PM
Iím glad you were able to work past it. The issue sounds sort of familiar but lots of folks have been restoring these devices without running into it.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: mloh June 17, 2020, 03:27:33 AM
Hi, am new with this forum. Pardon me if this has been asked before. I have a linkstation ls-qvl and recently there is a power failure. as not able to access in, i have switch off and switch on again the linkstation but now the power is on as i can see the light at the back but not in front panel and the ethernet is connected cos is blinking but there are no light indication whatsoever on the function. Any idea if the motherboard is fried or just not able to connect to the drives?

Your respond and help is much appreciated.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 June 17, 2020, 08:43:46 AM
There are a few possible explanations for this. I would start by unplugging the power adapter and plugging it back in and verify whether the led next to where the power adapter connects to the device turns on in addition to the network led. Then try turning it on with the button on the front, if it still doesn't work you can try starting it without drives and see if that makes a difference.

A power failure could put the device in an odd state that can be corrected by unplugging it which has a good chance of resolving your issue. If something is wrong with the power supply or mainboard it could also cause what you are seeing. If the power supply isn't providing the normal amount of power the device might start without drives (which take most of the power).
: Re: Reinstalling to an out-of warranty NAS with blank drives
: mloh June 18, 2020, 03:38:29 AM
Hi,

Thanks for your reply. I have tried what you have suggested to remove all hard drives and plug in the adapter. The green light is on after plugin the adapter. When press the power button in front, the fan starts turning and the ethernet port lights up (even though the cable is not plug in tho) There are still no lights indication on the front side. Does this means that the mainboard has issue?

Thanks again.

There are a few possible explanations for this. I would start by unplugging the power adapter and plugging it back in and verify whether the led next to where the power adapter connects to the device turns on in addition to the network led. Then try turning it on with the button on the front, if it still doesn't work you can try starting it without drives and see if that makes a difference.

A power failure could put the device in an odd state that can be corrected by unplugging it which has a good chance of resolving your issue. If something is wrong with the power supply or mainboard it could also cause what you are seeing. If the power supply isn't providing the normal amount of power the device might start without drives (which take most of the power).
: Re: Reinstalling to an out-of warranty NAS with blank drives
: 1000001101000 June 18, 2020, 12:11:15 PM
Some sort of mainboard or power supply issue by the sound of it. It's hard to separate the two without additional testing. I've seen basically the same behavior from 12v supplies that were broken and only providing ~5v but have also seen similar from broken boards as well. Either way i can't think of a non-hardware issue at this point. I would say try a different power supply but that assumes you have another 19v supply handy which is somewhat unlikely.

If only the leds failed for some reason it might look like it was doing nothing when actually mostly working, but I doubt there's a scenario that would cause all front leds to fail without taking out more vital things as well.
: Re: Reinstalling to an out-of warranty NAS with blank drives
: gbymb June 20, 2020, 08:36:35 AM
I found the plug on the back to be a bit flacky. I suggest you unplug from the nas and the power from the wall, and hit the connector and plug with some cleaner lube. I've seen them spark when the connector was moved. And it's probably stuck in a funny state because of it. I'd be tempted to do a reset...hold down fuction, hit power, let go of power, continue holding the function down for 6 secs. I'll take a good 5 or so mins to boot back, and flash lights and restart, a few times, but it may fix it. Of course your settings will be gone but your data will be fine. ( someone pls back me up on this :) and goodluck