So I just noticed that the previous method only support NFS v2. ESXi require NFS v3 at minimum. So here’s the guide for NFS v3 on Buffalo Linkstation.

Step 1:
Gain SSH and optware (check my previous post)

Step 2:
Check for unfs package

#ipkg update
#ipkg list | grep unfs
unfs3 - 0.9.22-1 - Version 3 NFS server (not recommended, use nfs-utils instead)

Step 3:

Install unfs
#ipkg install unfs3
#ipkg install portmap (optional)

Step 4:
Configure

#nano /opt/etc/exports
/mnt/array1/share (rw,no_root_squash)

(ctrl-x to quit and save)

Restart services

#/opt/etc/init.d/S55portmap restart
#/opt/etc/init.d/S56unfsd restart

You can try mount this NFS from ESXi or ubuntu server

#apt-get install rpcbind nfs-common
#mkdir -p /mnt/mynfsshare
#mount IP-of-your-NFS-Server:/mnt/array1/share /mnt/mynfsshare/
#df -kh

When configuring NFS shares to use as network sources for Kodi’s music/video libraries, use the following format: nfs://1.2.3.4/path/to/folder (where “1.2.3.4” should be replaced with the IP of your NFS server, and “/path/to/folder” should be replaced with the path to the folder you want to share; a double slash between the server and the path is wrong, you should not use nfs://1.2.3.4//path/to/folder)

Reference(s):
http://web.archive.org/web/20151207200629/http://forum.buffalo.nas-central.org/viewtopic.php?t=6531&start=15
https://serverfault.com/questions/554215/nfs-mount-with-nfs-3
https://help.ubuntu.com/community/SettingUpNFSHowTo#Installation

SMB sucks when compared to NFS. Here’s how to enable NFS in our Linkstation.

Step 1
The first step is to gain ssh root access to this Linkstation. Refer here.

Step 2
Install NFS
# ipkg update
# ipkg install nfs-server

Step 3
To configure your exports you need to edit the configuration file /opt/etc/exports. My example is this:

/mnt/array1/backups 10.0.0.10(rw,sync)
/mnt/array1/films 10.0.0.10(rw,sync)
/mnt/array1/tv 10.0.0.10(rw,sync)

or just allow the whole subnets
/mnt/array1/backups 10.0.0.0/24(rw,sync)

Once that file has been updated you’ll need to restart NFS:
# /opt/etc/init.d/S56nfsd stop
# /opt/etc/init.d/S56nfsd start

If you receive this error when restarting NFS daemon:
Cannot register service: RPC: Unable to receive; errno = Connection refused

Try checking portmapper
#rpcinfo -p
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

Easy, just restart the portmapper daemon
#/opt/etc/init.d/S55portmap stop
#/opt/etc/init.d/S55portmap start

Then repeat above step to restart NFS.

Reference(s:
https://github.com/skx/Buffalo-220-NAS
https://maazanjum.com/2014/02/17/starting-nfs-quotas-cannot-register-service-rpc-unable-to-receive-errno-connection-refused/

There are plenty of tutorial on how to install Xpenology in virtual environment. I tried few method a year ago and given up. Recently I found newer how-to and success after hitting few bumps. You can refer to this post if you want to try on your own and learn something new along the path. I have decided to improvise it and prepare a ready made OVA file, to ease you importing this VM (or just being lazy to follow the step by step guide :)).

First of all, please download the OVA files from here. AFter that, unzip it and start importing the OVA from your ESXi or VMWare Workstation. This OVA file was exported from ESXi 6.7, and running DSM 6.2.1 – latest version as of this post).

Drag all the 3 files to the import window

Choose Thick for best performance (pre-allocate disk space)

Increase Disk 2 if needed

Click finish to complete import and power on the VM

Wait for 1 minute and locate yoru DSM VM. The VM will obtain ip address from DHCP (you can check from your DHCP server) or just type find.synology.com in your web browser – it will scan your network and find the DSM

When DSM is located, click Connect

Enter your DSM info here

Click “Skip this step”

Go to Storage Manager to create your first disk pool

Drag the available disk from the left to the right

Next is to create volume pool

This is optional but recommended step. Download openvm-tool and install it using Package Center. This is to enable ESXi to have visibility on this VM such as IP Address and allow you to gracefully shutdown the VM from vSphere.

VM info is displayed correctly after open-vm-tool is installed.

Incoming search terms:

  • xpenology 6 2 1 passwofrd
  • XPEnology ova
  • dsm 6 2 esxi
  • xpenology esxi 6 7
  • xpenology on esxi
  • xpenology ova 6 2
  • dsm on esxi
  • install dsm 6 2 on server
  • install vmware tools on xpenology
  • ova xpenology
  • xpenlogy esxi
  • xpenology 6 2
  • xpenology 6 2 1
  • xpenology 6 2 esxi scsi
  • xpenology on esxi 6 7
Posted in NAS.

Email Notification

You may set up email alerts for the following occurrences:.
– HD Status Report
– Fan errors
– Disk errors
– Backup Complete

SMTP Server
Enter the IP address and port number of your SMTP mail server. If no port number is entered, the default port 25 will be used.

POP3 Server
Many types of SMTP mail servers and authentication may be used with the LinkStation. Consult your IT department or ISP for any necessary login information to use your SMTP server.

Subject
Specify a subject line for the email notifications, such as “LinkStation Status Report”.

Recipient Mail Address
Notification emails can be sent to up to 5 email addresses.

linkstationemailsetup

linkstationemailsetupC

linkstationemailsetupD

linkstationemailsetupE

Update: 12 Nov 2015
For those having failed sending test email message, please check that you’re entering the correct password. Secondly, during my investigation I found this log in the NAS:

Nov 12 22:39:49 NAS sSMTP[9663]: Unable to set portno="465"
Nov 12 22:39:49 NAS sSMTP[9663]: Unable to set AuthType="SSL"
Nov 12 22:39:49 NAS sSMTP[9663]: Creating SSL connection to host
Nov 12 22:39:49 NAS sSMTP[9663]: SSL connection using AES128-SHA
Nov 12 22:39:50 NAS sSMTP[9663]: Authorization failed (534 5.7.14 https://support.google.com/mail/answer/78754 fp2sm15179963pbb.34 - gsmtp)

Follow this link and set “Access for less secure apps” to “Turn on”

offsecure

Incoming search terms:

  • setup buffalo linkstation email notification
  • LinkStation Status Report smtp
  • linkstation e-mail
  • buffalo email
  • buffalo linkstation email benachrichtigung
  • terastation email notification
  • University Buffalo mail server settings
  • buffalo nas email notification server address
  • how to send email notifications from terastation to gmail
  • what is senders address buffalo terastation
  • buffalo disk error status
  • buffalo email aol eintragen
  • buffalo linkstation email notification error
  • buffalo nas email notification
  • buffalo NAS email notification error
Posted in NAS.

This is not a complete step-by-step data recovery guide. Here I just listed all software needed during my successful recovery.

1. To fix GPT record, use TestDisk.
2. To read and reconstruct RAID, use UFS Explorer Professional Recovery.

Notes:
1. Linkstation filesystem is XFS
2. Linkstation not using legacy MBR, instead it’s using GPT for partition table record

Some guide:
1. http://www.ufsexplorer.com/inf_linkstation.php
2. http://www.ufsexplorer.com/inf_terastation.php

Incoming search terms:

  • buffalo linkstation hard drive read
  • buffalo optware
Posted in NAS.

I stumbled upon a website where the author is generous enough to program a GUI for the acp commander. I haven’t tried yet since my NAS already rooted. I, without his permission “mirror’ his page for my future reference.

Original link: http://www.gry.ch/Java/styled/

ACP Commander GUI is a Graphical User Interface using acp_commander developed by Georg from NAS-Central. ACP Commander GUI is based on the code of acp_commander with some modifications for better integration into the GUI.

Thanks to Georg for his nice work!

ACP Commander GUI can be used to remotely control your arm9-based LS Pro/LS Live/Tera Pro v2/Tera Live devices. I only tested it with an LS Live, but the others should work to.

Requirements:
This is a Java application. Please download Java for your System here.
Mac OS X Mountain Lion users: Download Java directly from Apple if not already installed.

Screenshot:
page16-acp_commander_gui
Features:

  • Automatically detects LinkStations™ available in your network, just select the desired one from the pulldown box.
  • Execute Linux commands directly on the LinkStation™ and get the output in the log window.
  • Set the door password of the LinkStation™.
  • Enable SSH (sshd). It will also add a startup entry so that SSH is also available after each reboot.
  • Tested on Firmware versions 1.560 and 1.570.

Simply enter the admin password in the “Admin password” field and you are done. That is the one you do also use to login to the Web Interface of the LinkStation™. After that, simply click on one of the buttons to execute the desired action.

For more LinkStation™ information visit Buffalo Technology.

Note: The data that can be returned from the LinkStation™ is limited by the protocol. That means if you manually execute a command (like “ls”) on the device it could be possible that you don’t get the full result back. Just keep that in mind.

Warning: This is experimental software that might damage your LinkStation™.

Version History:

  • 1.5.6 (08.04.2012)
    Initial release.

Download 1.5.6 (DMG file for Mac OS X 10.6+)
Download 1.5.6 (JAR file for all platforms)
Download 1.5.6 (ZIP for Microsoft Windows)
Download 1.5.6 (EXE for Microsoft Windows)

Incoming search terms:

  • acp commander gui
  • acp_commander
  • acp commander
  • acp_commander_gui
  • acp commander exe
  • acp commander linkstation
  • acp commander 1 5 6
  • acp commander download
  • acp_commander_gui_156
  • acp commander terastation
  • ls-v1 0 acp commander
  • enable ssh on buffalo linkstation
  • apc commander
  • enable telnet linkstation
  • acp commander time out
Posted in NAS.

I have an external HDD that being partitioned with ext3 and ntfs. Ext3 is for ubuntu boot from usb, while ntfs is mainly to store my data.

Symptom:
I can’t see my ntfs partition when i plugged in my external HDD into Buffalo NAS. However, ext3 is visible and mounted in /mnt/usbdisk1 also from samba.

Solution:
Manual mount. Latest Linkstation firmware support ntfs by default, it just don’t mount all filesystem from the same usb port.

Identify partitions with ntfs

fdisk -l

or

fdisk -l | grep NTFS

Create mount point

mkdir /mnt/ntfs

Mount ntfs with read write access

mount -t ntfs-3g /dev/sdb3 /mnt/ntfs/

Unmount ntfs

umount /mnt/ntfs/

Incoming search terms:

  • configurelogin jar
  • buffalo console nas mount ntfs usb hard disk
  • buffalo nas create ntfs partition
  • linkstation manual parition
  • linkstation ntfs

Goal 2: Installing optware

mkdir /mnt/disk1/tmp 
cd /mnt/disk1/tmp
wget http://goo.gl/G2Q3S
chmod +x ls-mvkw-bootstrap_1.2-7_arm.xsh
sh ./ls-mvkw-bootstrap_1.2-7_arm.xsh
mv /etc/init.d/optware /etc/init.d/rc.optware
ipkg update

Updating package – ipkg update

Upgrading package – ipkg upgrade
Installing package – ipkg install <package name>

Notes:
Sometime when you reboot the NAS, optware will be gone. Refer to this thread for further detail.
To solve this, edit /etc/init.d/rc.optware file using vi or nano. Add this line of command

#! /bin/sh
mount --bind /mnt/disk1/.optware /opt

 

Posted in NAS.

With stock firmware, there’s no ssh/telnet capability in the box. We are going to “open” it.

Goal 1: Open the Stock Firmware

Get ACP Commander from here. This is the most useful tools ever created by the community to gain root access. You will need a Java JRE to be installed in your machine.

Verify that current admin password is work.

java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw Youradminpassword -c "ls /"

Let’s the fun begin. First we’ll issue a new SSH password for root user

java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw Youradminpassword -c "(echo newrootpass;echo newrootpass)¦passwd"

Then we’ll allow root to login using plaintext

java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw Youradminpassword -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"

After that, we’ll need to allow root to SSH

java -jar acp_commander.jar -t NAS_IP -ip NAS_IP  -pw adminpasswordhere -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"


Restart SSH service

java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw Youradminpassword -c "/etc/init.d/sshd.sh restart"


Now you will be able to SSH to your NAS box.

Notes:

  1. NAS_IP is your Linkstation IP address
  2. Youradminpassword is your Linkstation Web UI password
  3. Newrootpass is your new root account password (for ssh)
  4. Still works with the latest firmware (1.63)
  5. Or you can try the easy way 😛

Another way of doing this (to prevent error during copying above command) is to execute this bash script from your Linkstation.
1. Copy this file, http://dl.advanxer.com/stuff/NAS/open-ls.sh to your computer.
2. From your computer, browse to your NAS shared folder.
3. Copy and paste open-ls.sh file to /share folder.
4. Execute this command from your computer (replace $DISK with disk1 or array1):

java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw Youradminpassword -c "sh -x /mnt/$DISK/share/open-ls.txt"

SSH to your NAS and type below commands:

1. Installing package dependencies

ipkg install python py25-crypto py25-curl libcurl py25-openssl py25-django tesseract-ocr unzip sqlite wget-ssl py25-pil unrar ossp-js

 

 

2. Make working folder for pyload

[email protected]:/# mkdir /mnt/disk1/pyload/

3. Download latest version of pyLoad:

[email protected]:/# wget http://bitbucket.org/spoob/pyload/get/default.zip

4. Unzip it
[email protected]:/#unzip default.zip

5. Install it
[email protected]:/#./pyLoadCore.py –s

6. Run it
[email protected]:/mnt/disk1/pyload# ./pyLoadCore.py -s

Choose your Language / Wähle deine Sprache ([en], de, fr, it, es, ru, pl, cs, pt_BR): [ENTER]
## System Check ##

Python Version: OK
pycurl: OK
sqlite3: OK
pycrypto: OK
py-OpenSSL: OK
py-imaging: OK
tesseract: OK
PyQt4: missing
jinja2: OK
beaker: OK
JS engine: OK

System check finished, hit enter to see your status report.

## Status ##
Features available: container decrypting, ssl connection, automatic captcha decryption, Webinterface, extended Click’N’Load
Continue with setup? ([y]/n): [ENTER]
Do you want to change the config path? Change config path? (y/n):y /root/.pyload
Do you want to configure login data and basic settings? This is recommend for first run. Make basic setup? ([y]/n): [ENTER]
## Basic Setup ##
The following logindata is valid for CLI, GUI and webinterface.
Username [User]: username
Password:
Password (again):

Language ([en], de, fr, it, es, ru, pl, cs, pt_BR):
Downloadfolder [Downloads]: /mnt/disk1/share/download
Max parallel downloads [3]:
Use Reconnect? (y/[n]):
Do you want to configure ssl? Configure ssl? (y/[n]):
Do you want to configure webinterface? Configure webinterface? ([y]/n):
## Webinterface Setup ##
Activate webinterface? ([y]/n):
Listen address, if you use 127.0.0.1 or localhost, the webinterface will only accessible locally.
Address [0.0.0.0]: 0.0.0.0
Port [8000]: 8000

To start pyLoad as service (daemon)
[email protected]:/mnt/disk1/pyload# ./pyLoadCore.py –daemon

To kill pyLoad service
[email protected]: ps | grep pyLoad
[email protected]: kill <pyLoad Process ID>

Web Interface: TCP 8000
RPC (remote client): TCP 7227

Update 21/2/2013
Pre-compiled package for IPKG is available now!

ipkg install wget tesseract-ocr tesseract-ocr-lang-eng ossp-js unrar
wget http://get.pyload.org/static/pyload-v0.4.9-noarch.ipk
ipkg install pyload-v0.4.9-noarch.ipk
pyLoadCore -s
Posted in NAS.