在LS上跑Mldonkey

2009-12-31 Ray Linux

LS1的PowerPC架构处理器果然强悍,虽然只有200MHZ,但是4M的ADSL可以满速下载,CPU的load average还不到1。

先看一下MIPS值:cat /proc/cpuinfo
cpu             : 82xx
revision        : 16.20 (pvr 8081 1014)
bogomips        : 129.84
vendor          : Motorola SPS
machine         : Sandpoint
processor       : PVID: 0×80811014, vendor: Motorola
虽然mips只有129.84,但是4M的网可以满速下载,完胜belkin7231-4。

7231-4的mips值:cat /proc/cpuinfo
system type             : Broadcom BCM947XX
processor               : 0
cpu model               : BCM3302 V0.7
BogoMIPS                : 262.96
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : no
hardware watchpoint     : no
VCED exceptions         : not available
VCEI exceptions         : not available
unaligned_instructions  : 7751705
dcache hits             : 4053332026
dcache misses           : 4286053751
icache hits             : 37749007
icache misses           : 1111540757
instructions            : 0
belkin7231-4的CPU超频至266MHZ,mips值为262.96,4M的ADSL下belkin7231-4下载速率在150KB/S左右,此时CPU负载为2.8左右。

贴下LS1的下载截图:

点击查看原图

阅读全文>>

标签: 在LS上跑Mldonkey

评论(0) 浏览(2180)

在LS1上运行Debian

2009-12-29 Ray Linux

入手LS pro,LS1暂时退役。

退役了不能让它闲着,总得发挥点余热才好,有LS pro做文件服务器,就可以放心大胆折腾LS1了,不用担心LS1挂了造成文件丢失的问题。

先刷了openlink,发现已经开了telnet和SSH,打算装个mldonkey上去,ipkg install 了一下,发现无法安装,一怒之下把package索引下载下来仔细查找,原来里面根本就没有mldonkey这个软件,算了,还是装debian吧,apt-get比ipkg的软件包丰富的多。

去buffalo.nas-central.org下载debian的安装包,地址为 http://downloads.buffalo.nas-central.org/LS1_PPC/Packages/powerpc-hdhlan-debian-1.tgz

将下载的压缩包丢到LS1的/mnt/debian里面去,然后tar -zxvf powerpc-hdhlan-debian-1.tgz

然后 chroot /mnt/debian /bin/bash

再   mount -t proc proc /proc

OK,现在可以apt-get了!

apt-get update  升级一下软件包

然后安装mldoneky:apt-get install mldonkey-server

搞定。

点击查看原图

阅读全文>>

标签: 在LS1上运行Debian

评论(0) 浏览(1950)

LS-GL F/W 1.15固件支持NTFS文件系统

2009-12-27 Ray Linux

装好了系统,得把文件资料倒腾到NAS里面去,采用最原始的方法,移动硬盘插到终端机上,通过终端机往NAS里复制文件。

看了一下,平均速度在6MB/S,120多G的文件复制到猴年马月才是个头啊!

已经hack了root权限,暂时还没有装SSH,弄了个U盘插到NAS的USB接口上,先telnet进去看个究竟。

发现已经识别了U盘,格式为FAT16 。

点击查看原图

然后把U盘里的文件复制到NAS里面去,OK!

点击查看原图

接下来把移动硬盘换到NAS上去,Oh yeah,它已经自动mount上去了!

点击查看原图

接下来的事情就简单多了,直接复制移动硬盘的文件到NAS就可以了,美中不足的是还没有装SSH和screen,只好在终端机里开telnet复制文件过去。 (一开始忘了加参数了,提示omitting)

点击查看原图

搞定,再开个终端登陆看看,这下CPU可是充分利用起来啦!

点击查看原图

阅读全文>>

标签: LS-GL F/W 1.15固件支持NTFS文件系统

评论(0) 浏览(3278)

入手linkstation pro

2009-12-27 Ray DIY and Geek

看见淘宝上有卖linkstation pro,价钱还不错,一激动就入手了,到手一看成色还不错,八五新以上。拆开发现硬盘接口是SATA的,LS1里面的的硬盘是IDE接口,如果加了硬盘转换卡就装不进机箱里面去了。

幸好还有个退役的西数硬盘,型号是WD1600AAJS-75M0A,半年前换的硬盘,莫名其妙就挂掉了,扫描一下坏道一堆,先修复一下凑合用着吧。

点击查看原图

换用MHDD修复了几遍,挂在台式机上用HDtune扫了一下,全绿。不幸的是硬盘的健康状况显示为“衰退”,无所谓凑合用了,真挂了再说。

装好系统,crack了root权限telnet进去看下,MIPS才266,郁闷。 

点击查看原图

回头有时间了再装SSH,mldonkey,torrent等其他的东东。

点击查看原图 点击查看原图 点击查看原图

阅读全文>>

标签: 入手linkstation pro

评论(0) 浏览(3281)

硬盘的S.M.A.R.T属性表

2009-12-27 Ray Tips

入手一个buffalo’的linkstation pro V1,硬盘接口的SATA的,手里有个有坏道的SATA硬盘,尝试拿来装在NAS上面用。

先用MHDD扫描一下,发现在37%左右的时候N多坏道,选用SCAN模式,扫描修复了几遍,没有红块了,装在台式机上用HDtune一看,“重新映射扇区计数”一行变红了,硬盘的健康状况显示为“衰退”。

不解硬盘SMART参数的含义,搜索了一下,转载过来做个记录吧。

S.M.A.R.T属性表
S.M.A.R.T.包含很多个属性,每个属性值只有两种含义,超过阀值(threshold)和没有超过阀值。一旦有属性值超过了阀值,表明“硬盘快不行了”。每个硬盘的S.M.A.R.T.信息中,都注明了这些属性的阀值,不同厂家的阀值是不同的。不同的属性值对于阀值的对比关系也有两种情况,应大于阀值和应小于阀值。不同的属性也有不同的价值,下面用醒目颜色表明的是那些比较重要的属性。

01(01) 读取错误率 Read Error Rate (应小于阀值)
硬件读取错误率,在从磁盘表面读取数据发生错误时记录。任何大于0的数据表明在磁盘表面或者读写柱头(read/write heads)发生过问题。

05(05) 重新映射扇区计数 Reallocated Sectors Count (应小于阀值)
重新映射扇区的计数值。硬盘发现一个读、写或校验错误时,会将这个扇区重新映射(Reallocated)并将数据转移到一个特殊的保留的空闲区域,这些区域就称为重新映射扇区。 也就是说,现代的硬盘是无法通过表明检测来发现“坏块”(Bad Blocks)的,所有的坏块都被隐藏到了重新映射的扇区里面了,当然这样读写速度会变慢。

09(09) 通电时间计数 Power-On Hours Count,POH (越小越好,通常无阀值)
通电状态下的小时计数。这个值表示了硬盘通电状态下总计的小时计数,不过不同厂家这个值的单位有所不同,也有以分钟、秒钟为单位的。

10(0A) 马达重试计数 Spin Retry Count (应小于阀值)
马达尝试启动的重试计数。这个属性存储了马达为了达到标准转速而进行的启动尝试的总计数,即第一次启动并不能成功达到标准转速。这个属性值的增加是一个标志,说明硬盘的机械系统出现了问题。

12(0C) 通电周期计数 Power Cycle Count (越小越好,通常无阀值)
这个属性表明了整个硬盘通电/去电周期的次数,即开关次数。

194(C2) Temperature (越小越好,通常无阀值)
当前内部温度。

196(C4) 重新映射事件计数 Reallocetion Event Count (应小于阀值)
重新映射操作的计数值。这个属性值表明了将重新映射扇区的数据转移到空闲区域的尝试总次数。成功的转移和不成功的转移都会被计数。

197(C5) 当前待映射扇区计数 Current Pending Sector Count (应小于阀值)
“不稳定的”扇区数量,即等待被映射的扇区数量。 如果不稳定的扇区随后被读写成功,这个值会降低,扇区也不会重新映射。扇区读取错误不会造成重新映射,扇区只会在写入失败时发生重新映射。这个值有时候会有问题,因为带缓存写入不会重新映射扇区,只有直接读写才会真正写入磁盘。

198(C6) 无法校正扇区计数 Uncorrectable Sector Count (应小于阀值)
读写扇区时发生的无法校正的错误总计数。这个值上升表明硬盘表明有缺损或者机械系统有问题。

199(C7) 直接内存访问校验错误计数 UltraDMA CRC Error Count (应小于阀值)
通过接口循环冗余校验(Interface Cyclic Redundancy Check,ICRC)发现的通过接口电缆进行数据传输的错误。

200(C8) 写入错误率 Write Error Rate (应小于阀值)
写入一个扇区时发生错误的总数。

阅读全文>>

标签: 硬盘的S.M.A.R.T属性表

评论(0) 浏览(4282)

转:Hacks: Installing Windows Home Server on the Thecus N5200

2009-12-23 Ray Reship

偶然看见有人把Thecus的NAS crack了,跑起了Win home server.

After my last home server project ended with tears , I decided that my next system was going to be somewhat smaller, portable, use significantly less power and have no more than four or five drives.

点击查看原图

However, money has been somewhat tight for me of late, and I’ve had to make do with no home server to store all my crap, or have the benefit of daily C: backups for all my Windows machines. I had all my media stored locally on my main PC, and backed it up weekly to my trusty Thecus N5200 . I read somewhere that it’s possible to hack these things to run a slightly more powerful Linux, when it suddenly struck me – low power, 5 drives, small and portable. Okay, the 600MHz CPU kinda sucks, but damn . It’s almost all I need.

So I did it, and according to my somewhat extensive Google-fu, I think I’m the first person to actually succeed.

 

So without further ado, I present to you my Thecus N5200 Windows Home Server (in progress):

点击查看原图

How the hell did I do it? Well, I did a bit of research into the hardware first. The mainboard and network cards are fairly stock standard Intel stuff, so that’s not a worry – the biggest concern was the custom SATA controller – which is apparently a Marvell MV88SX6081 8-port SATA II PCI-X Controller. Thankfully, this chip is used on the Supermicro AOC-SAT2-MV8 . I’ve included where to get this driver from the list of other hardware components needed.

So, to hack the N5200, you’ll need:

  • A DB15 HD PCB (or surface) right angle mount. It looks like this:

点击查看原图

With a bit of fiddling – you attach this to the spare spot next to the serial port. Don’t worry about popping the hole out on the backplate, or soldering it in – it won’t quite fit with the case on. You won’t need it after you finish installing it, so just keep it there with electrical tape, or try balance it in a way so it’ll hold steady.

A USB external DVD drive of some kind. After discovering that I couldn’t get my N5200 to boot from my two USB thumb drives, I had to resort to gutting an old USB IDE drive enclosure, and hooking a DVD-ROM drive up to it.

A USB thumb drive with the drivers listed below.

USB keyboard and mouse. Keep in mind that there are only 3 USB ports on the N5200, so you’ll either need a hub of some kind, or go mouseless during the initial part of the install (brush up on your keyboard shortcuts!).

A 512MB DDR DIMM to replace the crappy 256MB DIMM. If you own the N5200 Pro, Thecus were kind enough to do this for you already.

The knowledge that this is voiding the hell out of any warranty you’ve got left

Drivers you’ll need:

Drivers missing:

  • Video (some kind of Intel onboard thing, supposed to be an 852GM, but won’t install).

     

  • NetChip USB Controller 2282. I assume this is the USB-host port on the back. Can’t find drivers for this.
  • I have no idea how to get the LED display to do anything, or respond to button presses. It forever says “Self testing…”

So here’s what you do. First, you need to pull the N5200 apart. There are three screws on the back, which allow you to slide the cover, and remove the backplate. When removing the backplate, watch out for the fan that’s attached to it, and be sure to disconnect it from the SATA backplate.

On the mainboard, you remove the big “Thecus N5200_RJ45″ board that resides above the serial port, by taking out the two screws, and carefully pulling it towards you. You then place the DB15 HD connector onto the board, positioning all those little FUCKING BASTARD pins into the correct holes. I found positioning the back row first, and then using a small flathead screwdriver to help adjust the front row to slide in helped. Be sure not to accidently bend any of the little FUCKING BASTARD pins out of shape. Tape it down with some electrical tape, or try position the VGA cable so it’s not pulling on the DB15 connector too much.

Remove the little 64MB (or 256MB in the case of the Pro) flash drive. Keep it somewhere safe, just in case. If all goes well, we won’t be needing it. While you’re there, be sure to replace the RAM with a 512MB DIMM if you’re stuck with the standard N5200 like me.

Hook up the monitor and watch it boot. To make things easy, just have the one SATA drive in there – whichever drive you want SYS to be on. Hit DEL to get into the BIOS, in order to change the boot volume. Under “Advanced” (second option), go to the boot order. Set the first to USB-CDROM, the second and third to Disabled, and ensure “Allow other devices to boot” or whatever it’s called is ENABLED.

Connect your USB DVD drive, and go through the usual motions of installing Home Server. Be sure to place the SATA drivers at least onto a USB thumb drive, and make sure it’s unextracted (you see INF’s and sys files, not one large ZIP). When Home Server setup complains it can’t find a hard drive, select “Load Drivers”, slap the USB drive in, and continue with setup until finished. Be sure to load the NIC drivers once finished, and verify you can remote into the server via Remote Desktop, before pulling out all the cables and crap, and placing the case back together again. Install the rest of your drives, and away you go.

I’ll have to get back to you all on how it actually performs – the SATA controller and gigabit ethernet should be fairly quick, but the 600MHz CPU in the stock N5200 could hamper performance. The N5200 Pro should alleviate those worries with the 1.5GHz processor, at least. I’ll be sure to report back on how unbearingly slow and painful it is.

This page gave me the idea of using the DB15 VGA connector, and also alerted me as to what kind of drivers I’d need to look for.

olor="#d82878">This site font> was also an interesting read, despite being entirely in German.

There might be a way somewhere amongst those two sites to get the front LED to do something.

原链接:http://www.respectsakura.org/2009/04/08/whs-hacks-installing-windows-home-server-on-the-thecus-n5200/

不过这个东东要5800米,实在有点贵了,而且对于我这种南漂族来说携带不便,还是弄个buffalo的LS-GL v1 (LSPROv1)是王道。

阅读全文>>

标签: 转:Hacks: Installing Windows Home Server on the Thecus N5200

评论(0) 浏览(10030)

纪念一下mule和donkey们

2009-12-20 Ray Diary

BT和电驴网站都被封了,现在下载东西速度慢了N多,郁闷啊,很多东西迅雷是下载不下来的,还得靠emule和mldonkey。

偶然发现mldonkey的图片,真TMD有意思,哈哈哈,真是个喜欢ML的驴子

点击查看原图

阅读全文>>

标签: 纪念一下mule和donkey们

评论(0) 浏览(2486)

LS1里的文件无法删除

2009-12-14 Ray DIY and Geek

把移动硬盘里的文件倒腾到LS1里去,复制中突然就跳出一个提示:无法复制xx文件!然后就终止了。

打算把刚刚复制的文件删除,不料又弹出错误提示,刚刚复制的文件居然删不掉了!这显然不行,必须得把这个烦人的东西干掉,去文件夹里看一下,原来是有繁体中文,估计文件编码不一样,windows下是删除不了了。

放狗搜索一下,还是没有找到解决办法,转念一想既然LS1是跑的linux,telnet到LS1或者在linux下连接到LS1应该可以删除。破解LS1的telnet权限比较麻烦,还得下载JAVA虚拟机,直接在ubuntu下连接LS1,点击要删除的文件夹,1分钟不到,该删的文件全被干掉了,哈哈

阅读全文>>

标签: LS1里的文件无法删除

评论(0) 浏览(1834)

2009年12月13日

2009-12-13 Ray Diary

一个月前下载的《蜗居》,今天终于有时间看了。

恩山wifi又打不开了,不过这次好一点,至少有个提示让人知道是服务器挂了而不是自己的浏览器出了毛病。

点击查看原图

整理了一下移动硬盘,先把资料倒腾到电脑上,再移动硬盘由两个区合并成一个,顺便把linkstation里的数据也在移动硬盘里做了个备份。

国内BT站关停了,下个电影也没资源了,1024P就不想了,凑合下个码率一般的片子都困难,悲剧啊!

阅读全文>>

标签: 2009年12月13日

评论(0) 浏览(1579)

Ubuntu配置openwrt交叉编译环境

2009-12-12 Ray Linux

装了Ubuntu,cat看了一下内核版本是linux2.6的。

cat /proc/version
Linux version 2.6.31-14-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009

想搞个交叉编译环境,路由器里面现在跑的mldonkey不能跑filetp服务,只能凑合着下电驴,最初以为是mldonkey不支持filetp下载,后来在Ubuntu下面安装了mldonkey一试,发现根本不是那么回事,Ubuntu下面的驴子照样可以filetp,所以打算搞个交叉编译环境重新编译个mldonkey。

于是去下载openwrt提供buildroot来搭建交叉编译工具链。
说简单也很简单:
1. svn下来openwrt的buildroot
$ su
$ mkdir /cross
$ cd /cross

$ svn co svn://svn.openwrt.org/openwrt/branches/whiterussian/

2.修改一些系统文件
     ubuntu的sh是链接到dash的,修改回bash
     $ cd /bin

    $ sudo ln -sf bash /bin/sh
   3. 安装配置
    $ cd whiterussian/openwrt
    $ make menuconfig

结果提示错误,unable to find the ncurses libraries,但是sudo apt-get insatll ncurses-dev之后仍然提示缺少库文件。

去看了一下readme文件,发现缺的库文件还真不少:You need to have installed gcc, g++, binutils, patch, bzip2, flex, bison,
make, gettext, unzip, libz-dev and libc headers.

依次apt-get 了以上的文件,终于可以make了!

点击查看原图

阅读全文>>

标签: Ubuntu配置openwrt交叉编译环境

评论(0) 浏览(6091)

Powered by emlog 京ICP备05005575号