Talk:TeraStationPro

=TeraStation Pro Hacking Talk=

Fan control not working with Entropy Firmware 1.01
After upgrading to Entropy's 1.01 firmware the fan control is not working anymore - the fan runs at max speed (noisy) all the time.

Any hints? - Oliver Apr-19 2008

Recoving Deleted Files?
I had someone delete some files on my TeraStation Rpo 1.6Tb and I'm trying to figure out how to recover them. Any help would be appreciated. -Mike 25 May 2006


 * The TeraStation has a trashbox folder where it moves the files to you delete. Other than that you're out of luck. None of the journaling filesystems for Linux support undeleting, in fact most (I checked for ext3, xfs and jfs) are designed to make undeleting files non trivial. For all of them you must collect the bits from the harddisk and reassembly your files manually.
 * --Bg 07:57, 26 May 2006 (CEST)

4x750GB drives
I've applied the patched firmware by Entropy, and it works fine for ssh. The only issue I've got at the moment is the raid configuration on disks. It won't make a partition (per disk) larger than 585 GB (they're 750GB's), resulting in a RAID 5 array of only 1.6 TB (Should be 2.25TB?). Is this a limitation of the OS, or perhaps (I'm guessing) it was because the firmware came from a 1.6 TB Terastation Pro? Does someone know how to change this? TIA...
 * --Chay 23 May 2006


 * If you have installed a hacked formware, or are willing to do so, I'd like to see a full dmesg. This might give us some hints.
 * --Bg 07:57, 26 May 2006 (CEST)


 * Just point to where, and I'll install it. I picked up another 300GB Terastation Pro for tinkering.
 * --Chay 10 June 2006 (JST)


 * --MrHorizontal 23 Jun 2006
 * Simple answer: The Terastation is a 32bit machine: 32bit max storage is 2TB... we'll need 64bit chips and 64bit linux in it to get more than 2TB out of it. Most RAID cards however allow for more actual disk space so long as the whole array size (including any striping ie RAID5) does not exceed 2TB. You should be able to have 2x 1.5TB partitions by making 2 RAID0 arrays...
 * Of course 2 RAID0 arrays isn't very fault tolerant, so perhaps a 1.5TB RAID 01 / 10 array may be possible, but I'm not sure if the Terastation can cascade arrays.

Beta Firmware?
Why is the TSPro-1.01-0.51-withAD.zip firmware referred to as a beta firmware? It's listed as a firmware upgrade on their site with no reference to beta.


 * When I added the link, it was called beta.
 * --Bg 07:57, 26 May 2006 (CEST)

Partition Size Limitations
The 0.6-2.0 TB Terastations use the same firmware. Therefore, it shouldn't be a limitation of the particular firmware (by the way, the firmware I posted was for my 1.0TB Terastation, not the 1.6TB - not that it should matter at all). The Terastations use the Linux 2.4 kernel, and as far as I know, there is a 2TB partition size limit. I'm not sure how that would play out with RAID though. Perhaps that caps the largest Terastation to 2TB (minus the RAID5 overhead).

Web Server
The TsP includes Apache Web server.

The first step in hacking the Tsp is to install the firmware with dropbear and login using Putty.

A link to the firmware is available on the TeraStationPro page. Use the unofficial firmware at http://www.megaupload.com/?d=G6269VIG Copy the image.dat file over the official image.dat file in the official firmware package and update the firmware. An alternate firmware appears on http://homepage.ntlworld.com/itimpi/buffalo.htm#TERA_PRO.

Go to www.apache.org for instructions to configure additional web sites in Apache.

That will get you SSH. Use Putty to access the TsP. From there you can do anything you want. You will need to edit the apache config file at /etc/apache/httpd.conf and create the directory where you want to store your web page files. I'd create the location with the web admin share manager first. it will wind up in /mnt/array1/WHATEVER so you can access it through the regualr ftp server and SMB shares. You will also need to restart the apache server (or just the entire TsP after editing the apache configuration file.

-Dave

What version of Linux is on the TsP? I think what I want might be a bit beyond the scope of the Terastation. Here is what I would like to do... I would like to access the TsP and install a newer version of Linux with a UI. Then I would like add MySql and host my .Net web sites on the box. I would also like to install an email server of some kind. Basically I want to turn my TsP into a Linux PC. Is this possible? Also I have been spoilt over the past 10 years with gui interfaces and have not have much Unix experience, so I need to know where to look to get help working with the Linux kernal.


 * The hardware is essentially the same as a Kurobox HG except the Kuro uses PATA and the TsP uses SATA. I'd start your research at www.kurobox.com . Of particular use might me my All in One Contest entry. Regarding the Kernel, updating it is going to be a bit of work. I would stick with the 2.4.20 kernel that is stock for the web server and mail server as they don't require a 2.6 kernel to work.


 * -Dave

So how do I do it? Can someone write some pointers for people usually used to Windows, how to do something with the box? I have installed the firmware, and can putty into the server. But now what do I do? What CAN I do?


 * Once you login using putty and your admin account all you have to do is type "sudo -s" at the prompt and retype your password. Now you are root and have full access to the entire system. Heed the warning and be careful. I installed wizd the other evening and am considering making it do double duty as an mp3 player, but first I need to compile loader.o and build a 2.6 kernel.


 * -Dave

I do what you suggest. I get this result...

BUFFALO INC. TeraStation series TS-TGL(IENARI) TS-TGL161 login: admin Password: dmin@TS-TGL161:~$ sudo -s sudo: can't stat /etc/sudoers: No such file or directory admin@TS-TGL161:~$

Is there a good book or place to go to learn all of this stuff? What am I doing wrong?


 * The image should come with a sudoers file, if not, it's broken. Maybe I've to check it out.
 * --Bg 14:38, 22 June 2006 (CEST)


 * The image is fine Bg. I installed it the other day and it is working just as described


 * -Dave

Proftpd Configuration
At some point my /etc/proftpd.conf file has been cleared out. The file is there, but is completely blank. Since it is blank, I assume it uses some built-in default values because when I did get it to work, it defaults to /home as the root FTP directory. Could someone please post their /etc/proftpd.conf file.

(Another issue is that Proftpd tries to create a scoreboard file at /var/proftpd/proftpd.scoreboard instead of /var/run/proftpd.scoreboard. /var/proftpd does not exist on the mounted /dev/shm. I have to add a line to a script so that the /var/proftpd directory is created each time the Terastation Pro is rebooted.)


 * -csmith 9:45, 01 July 2006 (CST)

The following is a pristine Terastation Pro /etc/proftpd.conf file from firmware 1.01. - Entropy

ServerName             TeraStation ServerType             standalone DefaultServer          on  ServerIdent             off AuthPAMAuthoritative   on  AuthPAMConfig           ftp Port                   21 Umask                  000 TimesGMT               off UseReverseDNS          off MaxInstances           100 User                   nobody Group                  nogroup RootLogin              off DefaultRoot            /mnt DefaultTransferMode    binary TimeoutIdle            900 TimeoutLogin           120 ScoreboardFile         /var/log/scoreboardfile AllowStoreRestart      on  AllowRetrieveRestart    on  AllowOverwrite          on  SocketOptions rcvBuf    131070 SocketOptions sndBuf   131070   IgnoreHidden on     DenyAll    DenyAll   <Limit WRITE> AllowAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on   <Limit ALL> DenyAll </Limit> </Directory>

Here is mine and i am using Entropy's Firmware - Nav

ServerName             TeraStation ServerType             standalone DefaultServer          on                                                                                                                                                                                                                    ServerIdent             off AuthPAMAuthoritative   on                                                                                                                                                                                                                    AuthPAMConfig           ftp Port                   21 Umask                  000 TimesGMT               off UseReverseDNS          off MaxInstances           100 User                   nobody Group                  nogroup RootLogin              off DefaultRoot            /mnt DefaultTransferMode    binary TimeoutIdle            900 TimeoutLogin           120 ScoreboardFile         /var/log/scoreboardfile AllowStoreRestart      on                                                                                                                                                                                                                    AllowRetrieveRestart    on                                                                                                                                                                                                                    AllowOverwrite          on                                                                                                                                                                                                                    SocketOptions rcvBuf    131070 SocketOptions sndBuf   131070  <Limit All> IgnoreHidden on                                                                                                                                                                                                                          </Limit> <Limit WRITE> DenyAll </Limit> </Directory> <Limit SITE_CHMOD> DenyAll </Limit>  <Limit WRITE> AllowAll </Limit> </Directory>  HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory>  HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory> <Directory /mnt/array2> HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory> <Directory /mnt/usbdisk1> HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory> <Directory /mnt/usbdisk2> HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory> <Directory /mnt/usbdisk3> HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory> <Directory /mnt/usbdisk4> HideNoAccess on                                                                                                                                                                                                                          <Limit ALL> DenyAll </Limit> </Directory>

I was able to modify my configuration (using the above posted) and it worked very well. Thank you. This will be of great assistance to anyone else that experiences proftpd config file issues. - csmith

APC Smart-UPS 1000
we have an APC Smart-UPS 1000 connected to the TeraStation (via COM port) but when you turn on the UPS support in the web manager, the TeraStation bleeps and the error light comes on with the screen say something like 'Polarity Error'.

Anything I'm doing wrong?


 * Silly Question, but are you using the correct APC cable? I have had this issue in the past when using a standard serial cable.  APC use non-standard pin configurations (in my experience anyway) - WizardFusion

You are correct. The standard serial cable does not work. Not mentioned in the user manual.

160gb DriveStation
We have a 160gb Buffalo DriveStaion connected (via USB). This shows as a shared drive but the share seems to be 'Read Only', even though access restrictions is disabled and the share is set to Read/Write.

Any idea?

-What filesystem format is the Drivestation in? If you formatted it as NTFS, it will only get Read access. It needs to be in one of the Terastation's usable formats. FAT32, EXT3 or XFS. --Wastedlife 23:28, 10 September 2006 (CEST)

It was found that only the back-up part of the TeraStation can access a FAT32 formated drive. If you wish the drive to be read/write on the share, then it need to be formated to EXT3 or XFS. Another item that was not mentioned in the user manual.

-Tech Support indicates that security is based on LEAST privileges... that is, if a user belongs to a READONLY  READWRITE group, the user will receive READONLY permission, *NOT* READWRITE.

Entropy Firmware
After downlaoding the "image-1.01.2.zip" file from Entropy I am prompted for a password to unpack the contents. Would appreciate any comments on password/extracting the firmware for the TeraStation Pro.

Although it is a zip file, it's filename extension should be .dat. This file replaces the .dat file in your firmware flashing directory (the software you download from buffalo). --Entropy 21:25, 24 February 2007 (CET)

Long domain names on Active directory
Hello,

We recently puchased a Terastation Pro and attempted to add it to our network. No go because Terastation has a limit of 12 charactars for domain names. Our domain name is very long (devicename.subnet.net.xx.xx.xx.abc) Tech spport suggested entering in as much as the domain as possible but that didn't work. The next thing he suggested was searching for a 3rd-party firmware that would allow extended domain names.

I would rather not have to do that because it voids the warrantee. Is there a fix the tech guy didn't think of? If not is there such a 3rd party firmware out there that will do this?

Thanks

Dave