Difference between revisions of "Revert Buffalo Linkstation Mini To Stock Firmware"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Updated link to TFTP site)
m (Updated hyperlinks)
 
(13 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{Template:Articles|LS-WSGL/R1|Firmware}}
 
{{Template:Articles|LS-WSGL/R1|Firmware}}
  
{{Brick|These instructions are intended for Linkstation Mini models LS-WSxxxxGL/R1.  Other models may work as well; however, users should download the correct [ftp://24.153.165.234/disk1/share/nas-recovery/ TFTP] and [http://www.buffalotech.com/support/downloads/ Updater] software from Buffalo.  Proceed at your own risk.}}
+
{{Brick|These instructions are intended for Linkstation Mini models LS-WSxxxxGL/R1.  Other models may work as well; however, users should download the correct [ftp://24.153.165.234/mnt/array1/share/nas-recovery/ TFTP] and [http://www.buffalotech.com/support-and-downloads/downloads/ Updater] software from Buffalo.  Proceed at your own risk.}}
  
 
[[Image:LS_WSGL.jpg|thumb|right|Linkstation Mini]]
 
[[Image:LS_WSGL.jpg|thumb|right|Linkstation Mini]]
Line 7: Line 7:
 
__TOC__
 
__TOC__
  
== Prerequisites ==
 
# Buffalo Linkstation Mini
 
#* These instructions were tested successfully with Linkstation Mini model LS-WS1.0TGL/R1
 
#* Other models may work as well; however, users should download the correct [ftp://24.153.165.234/array1/share/nas-recovery/ TFTP] and [http://www.buffalotech.com/support/downloads/ Updater] software from Buffalo.
 
# A computer which can mount SATA hard drives (required to erase drives)
 
# A computer running the Microsoft Windows operating system (required to rebuild device)
 
  
 
== Overview ==
 
== Overview ==
# Erase both hard drives
+
The following process reverts the firmware and hard drives in a [[:Category:LS-WSGL/R1|Buffalo Linkstation Mini]] to their factory default configuration.  Here is how the process works:
# Use TFTP Boot software to boot device
+
# Delete all partitions on both hard drives
 +
# Use TFTP Boot software to boot device in EM Mode
 
# Use LSUpdater software to rebuild entire device
 
# Use LSUpdater software to rebuild entire device
 +
 +
 +
== Requirements ==
 +
# Buffalo LinkStation Mini
 +
#* These instructions were tested successfully with Linkstation Mini model LS-WS1.0TGL/R1
 +
#* Other models may work as well; however, users should download the correct [ftp://24.153.165.234/mnt/array1/share/nas-recovery/ TFTP] and [http://www.buffalotech.com/support-and-downloads/downloads/ Updater] software from Buffalo.
 +
# Ubuntu 10.04 Desktop Edition CD-ROM (download and burn [http://releases.ubuntu.com/lucid/ubuntu-10.04.4-desktop-i386.iso this disc image])
 +
# A computer which can mount SATA hard drives (required to erase hard drives)
 +
# A computer running the Microsoft Windows operating system (required to rebuild device)
 +
  
 
== Procedure ==
 
== Procedure ==
 
<ol>
 
<ol>
 
=== Erase Both Hard Drives ===
 
=== Erase Both Hard Drives ===
<li> Disassemble device and remove both hard drives (per these [[Disassemble_the_LS_MINI|instructions]])
+
 
 +
If the device is already running Debian/GNU/Linux, then <b>disassembly is not required</b>;
 +
Instead, log into the device, run the commands to erase the master boot record (below), and skip to the next section.
 +
 
 +
Otherwise, follow this procedure:
 +
<li> [[Disassemble_the_LS_MINI|Disassemble device]] and remove both hard drives
 
<li> Attach both drives to the SATA ports on your computer
 
<li> Attach both drives to the SATA ports on your computer
<li> Boot your preferred operating system
+
<li> Boot Ubuntu 10.04 Desktop Edition CD-ROM
<li> Delete all partitions from both hard drives (TFTP Boot only works when drive partitions are missing)
+
<li> Select language as desired (English)
 +
<li> Click on "Try Ubuntu 10.04 LTS" (to use Ubuntu without making any changes to your system)
 +
<li> Open a new terminal window (Applications | Accessories | Terminal )
 +
<li> Start a new bash shell with root privileges
 +
<pre>
 +
sudo bash
 +
 
 +
</pre>
 +
</li>
 +
 
 +
{{Warning|'''The following commands will delete all partitions on both drives.  <b>ABSOLUTELY ALL DATA ON THE DRIVES WILL BE LOST</b>.  Proceed at your own risk.'''}}
 +
<li> Erase master boot record (and partition table) on both hard drives (TFTP Boot only works when all drive partitions are missing)
 +
<pre>
 +
swapoff -a
 +
dd if=/dev/zero of=/dev/sda bs=512 count=1
 +
dd if=/dev/zero of=/dev/sdb bs=512 count=1
 +
sync
 +
 
 +
</pre>
 +
</li>
 +
 
 +
<li> Shutdown computer
 +
<pre>
 +
shutdown -h now
 +
 
 +
</pre>
 +
</li>
 +
 
 +
<li> Power off computer and remove drives
 
<li> Reassemble device, but '''do not power it on yet'''
 
<li> Reassemble device, but '''do not power it on yet'''
 +
  
 
=== Install and Configure Software ===
 
=== Install and Configure Software ===
 
<li> Use a computer with the Microsoft Windows operating system (the LSUpdater software requires it)
 
<li> Use a computer with the Microsoft Windows operating system (the LSUpdater software requires it)
<li> Download and extract TFTP boot recovery software ( ftp://24.153.165.234/array1/share/nas-recovery//TFTP%20Boot%20Recovery%20LS-WSGL%201.05.exe )
+
<li> Download and extract TFTP boot recovery software ( [ftp://24.153.165.234/mnt/array1/share/nas-recovery/TFTP%20Boot%20Recovery%20LS-WSGL%201.05.exe ftp://24.153.165.234/mnt/array1/share/nas-recovery/TFTP%20Boot%20Recovery%20LS-WSGL%201.05.exe] )
<li> Download and extract LSUpdater software ( http://www.buffalotech.com/support/getfile/lswsgl-106.zip )
+
<li> Download and extract LSUpdater software ( [http://www.buffalotech.com/support-and-downloads/download/lswsgl-106.zip http://www.buffalotech.com/support-and-downloads/download/lswsgl-106.zip] )
 
<li> Adjust [Flags] section in LSUpdater.ini  
 
<li> Adjust [Flags] section in LSUpdater.ini  
 
<pre>
 
<pre>
 
  [Flags]
 
  [Flags]
 
  VersionCheck = 0
 
  VersionCheck = 0
 +
 
</pre>
 
</pre>
 +
</li>
 +
 
<li> Add section to LSUpdater.ini
 
<li> Add section to LSUpdater.ini
 
<pre>
 
<pre>
 
  [SpecialFlags]
 
  [SpecialFlags]
 
  Debug = 1
 
  Debug = 1
 +
 
</pre>
 
</pre>
 +
</li>
 +
 
<li> Disable firewall software (firewalls can interfere with network traffic)
 
<li> Disable firewall software (firewalls can interfere with network traffic)
 +
</li>
 
<li> Change computer IP address to 192.168.11.1 (subnet 255.255.0.0).  The device expects to find the TFTP server at this address
 
<li> Change computer IP address to 192.168.11.1 (subnet 255.255.0.0).  The device expects to find the TFTP server at this address
 +
</li>
 
<li> Run "TFTP Boot.exe"
 
<li> Run "TFTP Boot.exe"
 +
</li>
 +
  
 
=== Boot Device ===
 
=== Boot Device ===
 
<li> Attach device to network (or directly to computer using standard ethernet cable)
 
<li> Attach device to network (or directly to computer using standard ethernet cable)
 +
</li>
 
<li> Boot device in EM mode using TFTP
 
<li> Boot device in EM mode using TFTP
 +
</li>
 
<ol>
 
<ol>
 
<li> Move device power switch to "off" position
 
<li> Move device power switch to "off" position
 +
</li>
 
<li> Remove power cable from device
 
<li> Remove power cable from device
 +
</li>
 
<li> Attach power cable to device
 
<li> Attach power cable to device
 +
</li>
 
<li> Wait several seconds for lights to turn off
 
<li> Wait several seconds for lights to turn off
<li> Hold function button while moving power switch to "on" position
+
</li>
 +
<li> Press and hold function button while moving power switch to "on" position
 +
</li>
 
<li> Release function button when single blue light starts flashing
 
<li> Release function button when single blue light starts flashing
 +
</li>
 
<li> Press and release function button again
 
<li> Press and release function button again
 +
</li>
 
<li> Press function button when red light starts flashing (repeat until red light stops flashing)
 
<li> Press function button when red light starts flashing (repeat until red light stops flashing)
 +
</li>
 
<li> Wait for TFTP server to send images to device (initrd.buffalo and uImage.buffalo)
 
<li> Wait for TFTP server to send images to device (initrd.buffalo and uImage.buffalo)
 +
</li>
 
</ol>
 
</ol>
  
Line 64: Line 124:
  
 
<li> Wait 30 seconds for device to complete boot process
 
<li> Wait 30 seconds for device to complete boot process
 +
</li>
 
<li> Close TFTP Boot window
 
<li> Close TFTP Boot window
 +
</li>
 +
<li> If your network is DHCP-enabled (i.e. wireless router), then restore computer IP address
 +
</li>
  
  
 
=== Rebuild Device ===
 
=== Rebuild Device ===
{{Warning|'''The following commands will completely erase and rebuild the Linkstation Mini.  ABSOLUTELY ALL DATA ON THE DEVICE WILL BE LOST.  Make sure that you are using the the correct firmware for the intended device (i.e. LS-WSxxxxGL/R1).  If you have selected the wrong firmware and/or device, THEN THIS PROCEDURE WILL BRICK YOUR DEVICE.  Proceed at your own risk.'''}}
+
{{Warning|'''The following procedure will completely erase and rebuild the Linkstation Mini.  <b>ABSOLUTELY ALL DATA ON THE DEVICE WILL BE LOST</b>.  Make sure that you are using the the correct firmware for the intended device (i.e. LS-WSxxxxGL/R1).  If you have selected the wrong firmware and/or device, <b>THEN THIS PROCEDURE WILL BRICK YOUR DEVICE</b>.  Proceed at your own risk.'''}}
  
 
<li> Disable firewall software (otherwise the update will likely fail and might brick the device)
 
<li> Disable firewall software (otherwise the update will likely fail and might brick the device)
 +
</li>
 
<li> Run LSUpdater.exe
 
<li> Run LSUpdater.exe
 +
</li>
 
<li> Configure updater software
 
<li> Configure updater software
 +
</li>
 
<ol>
 
<ol>
<li> Right-click on title bar of the window (on the word "Updater")
+
<li> Right-click on title bar of the window (i.e. on the word "BUFFALO")
 +
</li>
 
<li> Select "Debug(D)..." from the context menu</li>
 
<li> Select "Debug(D)..." from the context menu</li>
 +
</li>
 
<li> Select all checkboxes in both "Update" and "Config" frames (Update BOOT, Update KERNEL, Update initrd, Update rootfs, Do not check version, Rebuild partition table, Delete user-config, Force update)
 
<li> Select all checkboxes in both "Update" and "Config" frames (Update BOOT, Update KERNEL, Update initrd, Update rootfs, Do not check version, Rebuild partition table, Delete user-config, Force update)
<li> Select "Execute the change as following" checkbox in the "Changing of IP Address" frame
+
</li>
<li> Change the IP address to 192.168.11.150 (subnet 255.255.0.0)
+
<li> Make sure "Execute the change as following" checkbox is '''not checked'''
 +
</li>
 
<li> Click on the OK button to save choices
 
<li> Click on the OK button to save choices
<li> Confirm the change of IP address (ignore any DHCP error messages)
+
</li>
 
</ol>
 
</ol>
  
 
<li> Make sure that you have selected the correct device, then click on the "Update" button to rebuild the device
 
<li> Make sure that you have selected the correct device, then click on the "Update" button to rebuild the device
 +
</li>
 
<li> Confirm that you want to format and update the target device
 
<li> Confirm that you want to format and update the target device
<li> Wait for update process to complete
+
</li>
<li> Check the IP Address and write it down if it has changed (via DHCP)
+
<li> Wait for update process to complete (ignore any "couldn't confirm a response" error messages)
 +
</li>
 
<li> Close LSUpdater utility
 
<li> Close LSUpdater utility
 +
</li>
 
<li> Enable firewall software</li>
 
<li> Enable firewall software</li>
 +
</li>
 
<li> Restore the IP address on your computer (undo prior change to 192.168.11.1)</li>
 
<li> Restore the IP address on your computer (undo prior change to 192.168.11.1)</li>
 +
</li>
  
 
'''This will restore the device to factory settings; however, the web interface will be in Japanese language.  The next section explains how to change the language and character set as desired:'''
 
'''This will restore the device to factory settings; however, the web interface will be in Japanese language.  The next section explains how to change the language and character set as desired:'''
 +
  
 
=== Configure Device Language ===
 
=== Configure Device Language ===
  
<li> Open the device web interface in your browser (should be [http://192.168.11.150 http://192.168.11.150]... or use the new IP address assigned by DHCP)
+
<li> Open the device web interface in your browser (should be [http://192.168.11.150 http://192.168.11.150]... or use the new IP address assigned by your network)
 +
</li>
 
<li> Login to device (user = admin, password = password)
 
<li> Login to device (user = admin, password = password)
 +
</li>
 
<li> Click on second menu item (the icon looks like folded paper)
 
<li> Click on second menu item (the icon looks like folded paper)
 +
</li>
 
<li> Change the language and character set (the last two dropdown lists) as desired (English and ISO8859_1)
 
<li> Change the language and character set (the last two dropdown lists) as desired (English and ISO8859_1)
 +
</li>
 
<li> Click on the button at the bottom of the page
 
<li> Click on the button at the bottom of the page
 +
</li>
 
<li> Click on the TOP menu and verify that the language settings took effect
 
<li> Click on the TOP menu and verify that the language settings took effect
 +
</li>
 
</ol>
 
</ol>
 +
  
 
'''Congratulations!  You should now have a Linkstation Mini reverted to factory settings.'''
 
'''Congratulations!  You should now have a Linkstation Mini reverted to factory settings.'''
 +
 +
 +
== See Also ==
 +
* [[Install_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini|Install Debian 6.0 (Squeeze) On Buffalo Linkstation Mini]]
 +
* [[Install_Debian_5.0_(Lenny)_On_Buffalo_Linkstation_Mini|Install Debian 5.0 (Lenny) On Buffalo Linkstation Mini]]
 +
* [[Install_Ubuntu_9.04_(Jaunty_Jackalope)_On_Buffalo_Linkstation_Mini|Install Ubuntu 9.04 (Jaunty Jackalope) On Linkstation Mini]]
 +
* [[LS_Mini:_Install_Gentoo|Install Gentoo On Linkstation Mini]]
  
  
Line 109: Line 199:
 
*[http://forums.buffalotech.com/t5/Storage/FAQ-3-of-4-TFTP-boot-procedure-please-read-this/td-p/11015 Buffalo Forum Article about TFTP Boot Procedure]
 
*[http://forums.buffalotech.com/t5/Storage/FAQ-3-of-4-TFTP-boot-procedure-please-read-this/td-p/11015 Buffalo Forum Article about TFTP Boot Procedure]
 
*[http://forums.buffalotech.com/t5/Storage/FAQ-2-of-4-Force-Firmware-update-procedure-please-read-this/td-p/11011 Buffalo Forum Article about Forcing Firmware Update]
 
*[http://forums.buffalotech.com/t5/Storage/FAQ-2-of-4-Force-Firmware-update-procedure-please-read-this/td-p/11011 Buffalo Forum Article about Forcing Firmware Update]
*[ftp://24.153.165.234/disk1/share/nas-recovery/ TFTP Boot software for various Buffalo Linkstation models]
+
*[ftp://24.153.165.234/array1/share/nas-recovery/ TFTP Boot software for various Buffalo Linkstation models]
 
*[http://www.buffalotech.com/support/downloads/ Buffalo downloads area (for downloading Updater software)]
 
*[http://www.buffalotech.com/support/downloads/ Buffalo downloads area (for downloading Updater software)]
 +
*[http://en.wikipedia.org/wiki/Master_boot_record Wikipedia article about the master boot record (and partition table)]

Latest revision as of 10:02, 11 August 2012


Kurobrick.png
WARNING!

There is a possibility that you could brick your NAS with these instructions. Please make sure that you read the entire page carefully. These instructions are intended for Linkstation Mini models LS-WSxxxxGL/R1. Other models may work as well; however, users should download the correct TFTP and Updater software from Buffalo. Proceed at your own risk.



Linkstation Mini

Contents


Overview

The following process reverts the firmware and hard drives in a Buffalo Linkstation Mini to their factory default configuration. Here is how the process works:

  1. Delete all partitions on both hard drives
  2. Use TFTP Boot software to boot device in EM Mode
  3. Use LSUpdater software to rebuild entire device


Requirements

  1. Buffalo LinkStation Mini
    • These instructions were tested successfully with Linkstation Mini model LS-WS1.0TGL/R1
    • Other models may work as well; however, users should download the correct TFTP and Updater software from Buffalo.
  2. Ubuntu 10.04 Desktop Edition CD-ROM (download and burn this disc image)
  3. A computer which can mount SATA hard drives (required to erase hard drives)
  4. A computer running the Microsoft Windows operating system (required to rebuild device)


Procedure

    Erase Both Hard Drives

    If the device is already running Debian/GNU/Linux, then disassembly is not required; Instead, log into the device, run the commands to erase the master boot record (below), and skip to the next section.

    Otherwise, follow this procedure:

  1. Disassemble device and remove both hard drives
  2. Attach both drives to the SATA ports on your computer
  3. Boot Ubuntu 10.04 Desktop Edition CD-ROM
  4. Select language as desired (English)
  5. Click on "Try Ubuntu 10.04 LTS" (to use Ubuntu without making any changes to your system)
  6. Open a new terminal window (Applications | Accessories | Terminal )
  7. Start a new bash shell with root privileges
    sudo bash
    
    
  8. Nuvola apps important.png 
    WARNING!

    The following commands will delete all partitions on both drives. ABSOLUTELY ALL DATA ON THE DRIVES WILL BE LOST. Proceed at your own risk.


  9. Erase master boot record (and partition table) on both hard drives (TFTP Boot only works when all drive partitions are missing)
    swapoff -a
    dd if=/dev/zero of=/dev/sda bs=512 count=1
    dd if=/dev/zero of=/dev/sdb bs=512 count=1
    sync
    
    
  10. Shutdown computer
    shutdown -h now
    
    
  11. Power off computer and remove drives
  12. Reassemble device, but do not power it on yet

    Install and Configure Software

  13. Use a computer with the Microsoft Windows operating system (the LSUpdater software requires it)
  14. Download and extract TFTP boot recovery software ( ftp://24.153.165.234/mnt/array1/share/nas-recovery/TFTP%20Boot%20Recovery%20LS-WSGL%201.05.exe )
  15. Download and extract LSUpdater software ( http://www.buffalotech.com/support-and-downloads/download/lswsgl-106.zip )
  16. Adjust [Flags] section in LSUpdater.ini
     [Flags]
     VersionCheck = 0
    
    
  17. Add section to LSUpdater.ini
     [SpecialFlags]
     Debug = 1
    
    
  18. Disable firewall software (firewalls can interfere with network traffic)
  19. Change computer IP address to 192.168.11.1 (subnet 255.255.0.0). The device expects to find the TFTP server at this address
  20. Run "TFTP Boot.exe"

  21. Boot Device

  22. Attach device to network (or directly to computer using standard ethernet cable)
  23. Boot device in EM mode using TFTP
    1. Move device power switch to "off" position
    2. Remove power cable from device
    3. Attach power cable to device
    4. Wait several seconds for lights to turn off
    5. Press and hold function button while moving power switch to "on" position
    6. Release function button when single blue light starts flashing
    7. Press and release function button again
    8. Press function button when red light starts flashing (repeat until red light stops flashing)
    9. Wait for TFTP server to send images to device (initrd.buffalo and uImage.buffalo)

    Do not proceed unless the TFTP server indicates successful transfer of initrd.buffalo and uImage.buffalo

  24. Wait 30 seconds for device to complete boot process
  25. Close TFTP Boot window
  26. If your network is DHCP-enabled (i.e. wireless router), then restore computer IP address

  27. Rebuild Device

    Nuvola apps important.png 
    WARNING!

    The following procedure will completely erase and rebuild the Linkstation Mini. ABSOLUTELY ALL DATA ON THE DEVICE WILL BE LOST. Make sure that you are using the the correct firmware for the intended device (i.e. LS-WSxxxxGL/R1). If you have selected the wrong firmware and/or device, THEN THIS PROCEDURE WILL BRICK YOUR DEVICE. Proceed at your own risk.


  28. Disable firewall software (otherwise the update will likely fail and might brick the device)
  29. Run LSUpdater.exe
  30. Configure updater software
    1. Right-click on title bar of the window (i.e. on the word "BUFFALO")
    2. Select "Debug(D)..." from the context menu
    3. Select all checkboxes in both "Update" and "Config" frames (Update BOOT, Update KERNEL, Update initrd, Update rootfs, Do not check version, Rebuild partition table, Delete user-config, Force update)
    4. Make sure "Execute the change as following" checkbox is not checked
    5. Click on the OK button to save choices
  31. Make sure that you have selected the correct device, then click on the "Update" button to rebuild the device
  32. Confirm that you want to format and update the target device
  33. Wait for update process to complete (ignore any "couldn't confirm a response" error messages)
  34. Close LSUpdater utility
  35. Enable firewall software
  36. Restore the IP address on your computer (undo prior change to 192.168.11.1)
  37. This will restore the device to factory settings; however, the web interface will be in Japanese language. The next section explains how to change the language and character set as desired:


    Configure Device Language

  38. Open the device web interface in your browser (should be http://192.168.11.150... or use the new IP address assigned by your network)
  39. Login to device (user = admin, password = password)
  40. Click on second menu item (the icon looks like folded paper)
  41. Change the language and character set (the last two dropdown lists) as desired (English and ISO8859_1)
  42. Click on the button at the bottom of the page
  43. Click on the TOP menu and verify that the language settings took effect


Congratulations! You should now have a Linkstation Mini reverted to factory settings.


See Also


References