From: Michael Chaney (mdchaney@michaelchaney.com)
Date: 09/27/07
I picked one of these up at Costco a couple of days ago:
http://www.wdc.com/en/products/Products.asp?DriveID=279
After reading the package, I knew the thing had to be running Linux,
and I needed a TB hard drive (I actually do), so I decided to pick it
up. The price point was comparable on a $/GB basis to the 750GB
Seagate usb drive that they sell there.
So I got it home and started looking around the net for instructions.
First stop, at the WDC site I found out how to get the thing set up
initially without installing their goofy Windows client. It has a
complete web-based set up interface (written in Perl, running as a
fastcgi under lighty). So I got that set up.
But, as you probably guessed, the instructions that I was after were a
little more, um, in-depth. Like how to get shell.
So I found a guy on the net who has it. Essentially, you can trick
the thing into running a shell script very very easily. As root. So
you just get it to run a shell script that sets up ssh and then runs
sshd. Add it to inittab after you're in and it's automatic.
So it's about 930GB of disk space if you leave it striped, and there's
a 2.8GB partition for Linux. No, they didn't skimp. It uses busybox,
but, get this, they have the C compiler and complete dev environment,
so no need to set up a cross-compiler environment on another box. I
just built netcat on it (./configure && make) with no difficulty:
[root@terabyte netcat-0.7.1]# ./configure
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking target system type... armv5tejl-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
etc.
It's a 200MHz ARM with some built-in java stuff. The thing comes with
some "mianet" or "mionet", whatever, it's the first thing that I
killed when I got root. If you pay them and run their windows
software, you can get to it from anywhere. Needless to say, that's
hardly an issue when you have full control of the box. (if you're
thinking of using the mi[ao]net stuff, read up about it on the net
first,) Locally, it uses samba for sharing, but nfs is available.
Interesting tidbits from dmesg below - it mentions a "colour console".
Plus it has an internal serial port which still has a getty running
on it.
It also has an external usb port so that you can plug a hard drive
into it. Yes, it's an external hard drive that you can plug another
external hard drive in to.
Anyway, here are the particulars:
[root@terabyte ~]# cat /proc/cpuinfo
Processor : ARM926EJ-Sid(wb) rev 5 (v5l)
BogoMIPS : 99.73
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 32768
I assoc : 4
I line length : 32
I sets : 256
D size : 32768
D assoc : 4
D line length : 32
D sets : 256
Hardware : Oxsemi NAS
Revision : 0000
Serial : 0000000000000000
[root@terabyte ~]# cat /proc/version
Linux version 2.6.17.14 (clarke@mccoy.oxsemi.com.asic.oxsemi.com) (gcc
version 4.1.0) #1 PREEMPT Wed Jan 17 16:13:04 GMT 2007
[root@terabyte ~]# cat /proc/meminfo
MemTotal: 30032 kB
MemFree: 1132 kB
Buffers: 584 kB
Cached: 16204 kB
SwapCached: 32 kB
Active: 12308 kB
Inactive: 12028 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 30032 kB
LowFree: 1132 kB
SwapTotal: 104312 kB
SwapFree: 98824 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 12056 kB
Slab: 2456 kB
CommitLimit: 119328 kB
Committed_AS: 20660 kB
PageTables: 368 kB
VmallocTotal: 483328 kB
VmallocUsed: 64 kB
VmallocChunk: 483264 kB
top - 22:13:03 up 7:46, 0 users, load average: 0.39, 0.74, 0.80
Tasks: 54 total, 1 running, 53 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.4% us, 3.7% sy, 0.0% ni, 89.9% id, 0.9% wa, 0.4% hi, 0.7% si
Mem: 30032k total, 28812k used, 1220k free, 672k buffers
Swap: 104312k total, 5488k used, 98824k free, 15828k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1468 root 16 0 1056 564 396 R 8.7 1.9 0:00.15 top
2 root 34 19 0 0 0 S 0.0 0.0 0:04.20
ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.61 kblockd/0
36 root 15 0 0 0 0 S 0.0 0.0 0:00.02 pdflush
37 root 15 0 0 0 0 S 0.0 0.0 0:00.26 pdflush
38 root 15 0 0 0 0 S 0.0 0.0 0:07.13 kswapd0
39 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
143 root 10 -5 0 0 0 S 0.0 0.0 0:09.11 ata/0
146 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 sata-endQ
147 root 17 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
1 root 16 0 1280 320 300 S 0.0 1.1 0:00.79 init
153 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
172 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kcryptd/0
173 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kcryptd/0
177 root 10 -5 0 0 0 S 0.0 0.0 0:00.29 md3_raid1
179 root 10 -5 0 0 0 S 0.0 0.0 0:00.04 md2_raid1
181 root 10 -5 0 0 0 S 0.0 0.0 0:00.15 md1_raid1
182 root 10 -5 0 0 0 S 0.0 0.0 0:00.04 kjournald
190 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kjournald
192 root 10 -5 0 0 0 S 0.0 0.0 0:00.43 kjournald
491 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
672 root 20 0 1544 824 668 S 0.0 2.7 0:01.36
fuel-gauge
687 root 18 0 560 244 196 S 0.0 0.8 0:01.64
heat-monitor
708 root 22 0 552 188 152 S 0.0 0.6 0:00.01 keyring
759 root 15 0 1520 1432 716 S 0.0 4.8 0:00.04 ntpd
763 root 16 0 1284 304 252 S 0.0 1.0 0:00.00 inetd
767 root 15 0 740 288 216 S 0.0 1.0 0:00.02
mDNSResponderPo
770 root 15 0 1940 660 544 S 0.0 2.2 0:00.07 nmbd
774 www-data 15 0 2684 608 500 S 0.0 2.0 0:00.02 lighttpd
781 www-data 25 0 10916 5108 1204 S 0.0 17.0 0:13.60 perl
786 root 16 0 1276 324 272 S 0.0 1.1 0:00.14 crond
798 root 16 0 1276 348 280 S 0.0 1.2 0:00.02 getty
799 root 16 0 1272 372 296 S 0.0 1.2 0:00.28 syslogd
800 root 16 0 1272 364 308 S 0.0 1.2 0:00.21 klogd
801 root 16 0 2144 756 564 S 0.0 2.5 0:21.90 sshd
815 root 15 0 1520 932 252 S 0.0 3.1 0:00.01 ntpd
1266 root 15 0 0 0 0 S 0.0 0.0 0:00.01 nfsd
1268 root 22 0 0 0 0 S 0.0 0.0 0:00.00 lockd
1269 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 rpciod/0
1274 root 16 0 544 284 228 S 0.0 0.9 0:00.01
rpc.rquotad
1298 daemon 16 0 612 300 236 S 0.0 1.0 0:00.00 portmap
1300 root 19 0 600 176 104 S 0.0 0.6 0:00.00
rpc.mountd
1303 root 21 0 560 332 272 S 0.0 1.1 0:00.01 rpc.statd
(yes, I'm also running nfs)
<5>Linux version 2.6.17.14 (clarke@mccoy.oxsemi.com.asic.oxsemi.com)
(gcc version 4.1.0) #1 PREEMPT Wed Jan 17 16:13:04 GMT 2007
<4>CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
<4>Machine: Oxsemi NAS
<4>Ignoring unrecognised tag 0x00000000
<4>Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 8192
<7> DMA zone: 8192 pages, LIFO batch:1
<4>CPU0: D VIVT write-back cache
<4>CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
<4>CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
<4>Built 1 zonelists
<5>Kernel command line: mem=32M console=ttyS0,115200 root=/dev/md1
netdev=0,0,0x0090A945,0x41B0,eth0
<4>PID hash table entries: 256 (order: 8, 1024 bytes)
<4>Console: colour dummy device 80x30
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<4>Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
<4>Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>Memory: 32MB = 32MB total
<5>Memory: 29916KB available (2020K code, 349K data, 96K init)
<7>Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
<4>Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
<6>NET: Registered protocol family 16
<6>Number of DMA channels = 5, version = 4
<4>Allocating 224 SRAM generic DMA descriptors
<4>PCI: Scanning bus 0000:00
<4>PCI: Found 0000:00:07.0 [1106/3119] 000200 00
<4>PCI: Fixups for bus 0000:00
<6>PCI: bus0: Fast back to back transfers disabled
<4>PCI: Bus scan for 0000:00 returning with max=00
<5>SCSI subsystem initialized
<6>NET: Registered protocol family 2
<4>IP route cache hash table entries: 256 (order: -2, 1024 bytes)
<4>TCP established hash table entries: 1024 (order: 0, 4096 bytes)
<4>TCP bind hash table entries: 512 (order: -1, 2048 bytes)
<6>TCP: Hash tables configured (established 1024 bind 512)
<6>TCP reno registered
<1>Hello, LED trigger
<4>NetWinder Floating Point Emulator V0.97 (double precision)
<6>Initializing Cryptographic API
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
<6>io scheduler deadline registered
<6>io scheduler cfq registered
<6>Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
<6>serial8250: ttyS0 at MMIO 0x44300000 (irq = 24) is a 16550A
<4>RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize
<6>loop: loaded (max 8 devices)
<6>VIA Networking Velocity Family Gigabit Ethernet Adapter Driver Ver. 1.13
<6>Copyright (c) 2002, 2003 VIA Networking Technologies, Inc.
<6>Copyright (c) 2004 Red Hat Inc.
<4>PCI: enabling device 0000:00:07.0 (0140 -> 0143)
<6>eth0: VIA Networking Velocity Family Gigabit Ethernet Adapter
<6>eth0: Ethernet Address: 00:90:A9:45:41:B0
<7>libata version 1.20 loaded.
<6>ox800sata init
<6>ox800sata: 924 based sata core.
<6>ata1: SATA max UDMA/133 cmd 0x0 ctl 0x0 bmdma 0x0 irq 18
<6>ata1: SATA link up 1.5 Gbps (SStatus 113)
<7>ata1: dev 0 cfg 49:2f00 82:746b 83:7f61 84:4123 85:7469 86:bc41
87:4123 88:007f
<6>ata1: dev 0 ATA-7, max UDMA/133, 976773168 sectors: LBA48
<6>ata1: dev 0 configured for UDMA/133
<6>scsi0 : ox800sata
<5> Vendor: ATA Model: WDC WD5000AAKS-0 Rev: 12.0
<5> Type: Direct-Access ANSI SCSI revision: 05
<6>ox800sata: 924 based sata core.
<6>ata2: SATA max UDMA/133 cmd 0x0 ctl 0x0 bmdma 0x0 irq 19
<6>ata2: SATA link up 1.5 Gbps (SStatus 113)
<7>ata2: dev 0 cfg 49:2f00 82:746b 83:7f61 84:4123 85:7469 86:bc41
87:4123 88:007f
<6>ata2: dev 0 ATA-7, max UDMA/133, 976773168 sectors: LBA48
<6>ata2: dev 0 configured for UDMA/133
<6>scsi1 : ox800sata
<5> Vendor: ATA Model: WDC WD5000AAKS-0 Rev: 12.0
<5> Type: Direct-Access ANSI SCSI revision: 05
<5>SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
<5>sda: Write Protect is off
<7>sda: Mode Sense: 00 3a 00 00
<5>SCSI device sda: drive cache: write back
<5>SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
<5>sda: Write Protect is off
<7>sda: Mode Sense: 00 3a 00 00
<5>SCSI device sda: drive cache: write back
<6> sda: sda1 sda2 sda3 sda4
<5>sd 0:0:0:0: Attached scsi disk sda
<5>SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
<5>sdb: Write Protect is off
<7>sdb: Mode Sense: 00 3a 00 00
<5>SCSI device sdb: drive cache: write back
<5>SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
<5>sdb: Write Protect is off
<7>sdb: Mode Sense: 00 3a 00 00
<5>SCSI device sdb: drive cache: write back
<6> sdb: sdb1 sdb2 sdb3 sdb4
<5>sd 1:0:0:0: Attached scsi disk sdb
<6>mice: PS/2 mouse device common for all mice
<6>md: linear personality registered for level -1
<6>md: raid1 personality registered for level 1
<6>md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
<6>md: bitmap version 4.39
<6>device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
<6>TCP bic registered
<6>NET: Registered protocol family 1
<6>NET: Registered protocol family 17
<6>md: Autodetecting RAID arrays.
<6>md: autorun ...
<6>md: considering sdb4 ...
<6>md: adding sdb4 ...
<4>md: sdb3 has different UUID to sdb4
<4>md: sdb2 has different UUID to sdb4
<4>md: sdb1 has different UUID to sdb4
<6>md: adding sda4 ...
<4>md: sda3 has different UUID to sdb4
<4>md: sda2 has different UUID to sdb4
<4>md: sda1 has different UUID to sdb4
<6>md: created md4
<6>md: bind<sda4>
<6>md: bind<sdb4>
<6>md: running: <sdb4><sda4>
<6>md: considering sdb3 ...
<6>md: adding sdb3 ...
<4>md: sdb2 has different UUID to sdb3
<4>md: sdb1 has different UUID to sdb3
<6>md: adding sda3 ...
<4>md: sda2 has different UUID to sdb3
<4>md: sda1 has different UUID to sdb3
<6>md: created md3
<6>md: bind<sda3>
<6>md: bind<sdb3>
<6>md: running: <sdb3><sda3>
<4>raid1 run
<6>raid1: raid set md3 active with 2 out of 2 mirrors
<6>md: considering sdb2 ...
<6>md: adding sdb2 ...
<4>md: sdb1 has different UUID to sdb2
<6>md: adding sda2 ...
<4>md: sda1 has different UUID to sdb2
<6>md: created md2
<6>md: bind<sda2>
<6>md: bind<sdb2>
<6>md: running: <sdb2><sda2>
<4>raid1 run
<6>raid1: raid set md2 active with 2 out of 2 mirrors
<6>md: considering sdb1 ...
<6>md: adding sdb1 ...
<6>md: adding sda1 ...
<6>md: created md1
<6>md: bind<sda1>
<6>md: bind<sdb1>
<6>md: running: <sdb1><sda1>
<4>raid1 run
<6>raid1: raid set md1 active with 2 out of 2 mirrors
<6>md: ... autorun DONE.
<6>kjournald starting. Commit interval 5 seconds
<6>EXT3 FS on md1, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<4>VFS: Mounted root (ext3 filesystem).
<6>Freeing init memory: 96K
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>kjournald starting. Commit interval 5 seconds
<6>EXT3 FS on md3, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<6>kjournald starting. Commit interval 5 seconds
<6>EXT3 FS on md4, internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Adding 104312k swap on /dev/md2. Priority:-1 extents:1 across:104312k
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>wdc-leds: FAST_TPS=960, SLOW_TPS=32
<6>Registered led device: wdc-leds:power
<6>Registered led device: wdc-leds:activity
<6>Registered led device: wdc-leds:ignore-act
<6>Registered led device: wdc-leds:transition
<6>Registered led device: wdc-leds:fuel-gauge
<6>Registered led device: wdc-leds:rebuilding
<6>Registered led device: wdc-leds:degraded
<6>Registered led device: wdc-leds:over-temp
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<7>Fan probe
<6>WDC_Fan initialized
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>i2c_oxnas_bitbash_init: i2c OX800 driver init
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>usbcore: registered new driver usbfs
<6>usbcore: registered new driver hub
<4>12 May 2005 USB 2.0 'Enhanced' Host Controller (EHCI) Driver for
OXNAS@e7000000 Device ID register 42fa05
<6>oxnas-ehci oxnas-ehci: OXNAS EHCI Host Controller
<6>oxnas-ehci oxnas-ehci: new USB bus registered, assigned bus number 1
<6>oxnas-ehci oxnas-ehci: irq 7, io mem 0x00000000
<6>oxnas-ehci oxnas-ehci: USB 0.0 started, EHCI 1.00, driver 12 May 2005
<6>usb usb1: configuration #1 chosen from 1 choice
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 3 ports detected
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new driver usb-storage
<6>USB Mass Storage support registered.
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>WDC Fan speed set 100
<4>Velocity is AUTO mode
<6>WDC Fan speed set 50
<5>eth0: Link autonegation speed 1000M bps full duplex
<6>WDC Fan speed set 0
<5>eth0: failed to detect cable link
<5>eth0: Link autonegation speed 1000M bps full duplex
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>Using fractional divider baud 115200, clock 100000000 dlf 40
<6>WDC Fan speed set 50
<6>WDC Fan speed set 0
<6>WDC Fan speed set 50
<6>WDC Fan speed set 0
<6>Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
<6>WDC Fan speed set 50
<6>WDC Fan speed set 0
<6>WDC Fan speed set 50
<6>WDC Fan speed set 0
<6>WDC Fan speed set 50
<6>WDC Fan speed set 0
[root@terabyte ~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 2.8G 265M 2.4G 10% /
/dev/root 2.8G 265M 2.4G 10% /
/dev/md3 950M 19M 884M 3% /var
/dev/md4 910G 402G 508G 45% /shares/internal
[root@terabyte ~]# lsmod
Module Size Used by Not tainted
nfsd 106032 1
lockd 61940 2 nfsd
nfs_acl 3296 1 nfsd
sunrpc 153304 3 nfsd,lockd,nfs_acl
exportfs 4832 1 nfsd
power_button 3584 0
nls_cp437 5632 0
usb_storage 32772 0
ehci_oxnas 28712 0
usbcore 114532 3 usb_storage,ehci_oxnas
i2c_oxnas_bitbash 2464 0
i2c_algo_bit 8744 1 i2c_oxnas_bitbash
m41t00 3972 0
i2c_core 17488 2 i2c_algo_bit,m41t00
wdc_fan 3052 0
wdc_leds 9824 0
(note wdc_fan and wdc_leds)
The drawback is this: it seems slow. It has a Gb ethernet connection,
but I've yet to see it put out enough traffic to saturate a 100Mb
connection.
Even so, it's a good little box. Definitely would run asterisk if
you're so inclined. And it offers a little more breathing room than a
Linksys. You can always give more disk space to Linux if you want,
and if you brick it, you can yank the drive, stick it into your other
Linux machines and fix it.
Michael
-- Michael Darrin Chaney, Sr. mdchaney@michaelchaney.com http://www.michaelchaney.com/ -- Send all requests to: nlug-request@linuxlists.org Put your command in the SUBJECT of the message: "subscribe" or "unsubscribe" Quick unsubscribe: <mailto:nlug-request@linuxlists.org?Subject=3Dunsubscribe> Mailing list archives may be found at: <http://www.nlug.org/mail/> ********************************************************************** This list is from your pals at NetCentral <http://www.netcentral.com/>
This archive was generated by hypermail 2.1.6 : 12/02/07 CST