Manual Setup

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 19:33, 12 July 2007 by Ramuk (Talk | contribs)

Jump to: navigation, search


Manually Setup your Kurobox (without using the KuroBoxSetup.exe tool)

This document shows how to setup your Kurobox without using the KuroBoxSetup?.exe tool. Most of this information was derived from various postings on Yamashita san's webpage and BBS.

His site can be seen here: http://www.yamasita.jp/linkstation/

Quick Start

This document assumes you haven't or are unable to use the KuroBoxSetup?.exe tool. If you've already setup the box via the tool and you want to start from scratch, push the red button on the back of the unit while turning it on to go into EM mode.

If you have just installed a new HD, then the box should go into EM mode automatically.

Finally you need a HD installed of course and some way of ftping a file from some other box to the Kuro.

  1. Put the box into EM mode '(Emergency mode?)
  2. Telnet in as root. Pass = kuro (or for newer units Pass = kuroadmin)
  3. Note that when you telnet in, your box name should KURO-BOX-EM

First, set the correct date in the system. (This is important since many systems start with a date of October 2004 and the image.zip file has files that contain newer datestamps)

# date -s "06/26/2006 1:15 PM"
( on KURO-HG date was missing:  ln -s /bin/busybox /bin/date
  and date format is MMDDhhmm[[CC]YY][.ss] )
  1. Creates standard Linkstation/Kurobox partitions (3 partitions)
# mfdisk -d 3 /dev/hda
# mkfs -j /dev/hda1
# mkfs -j /dev/hda3
# mkswap /dev/hda2
# mount /dev/hda1 /mnt
  1. From your other box, ftp into Kurobox and transfer image.zip from the CD to /mnt
  2. Back in telnet session:
# cd /mnt
# unzip image.zip
# rm image.zip
# tar xvfz tmpimage.tgz

# write_ok (This is IMPORTANT! Kurobox will not leave EM mode on reboot unless you do this command)
# reboot

Detailed information

This is the output of the commands that I performed on my Kuro box with a Seagate 120GB HD installed.

Kroutoshikou KURO-BOX (IETSUNA)
kernel 2.4.17-kuro-box on ppc

KURO-BOX-EM login: root
Password:
# mfdisk 
Partition table manipulator for BUFFALO INC. Link Station series. ver 1.5, 2003.10.3
Usage: mfdisk DISK Create partition tables for HD-LAN ver 1.xx
mfdisk -f DISK Create partition tables for HD-LAN ver 2.xx
mfdisk -h DISK Create partition tables for HD-HLAN
mfdisk -g 1:2:3:5:10:20:50 DISK Create partition tables
mfdisk -a DISK Create partition table for HD-HLAN\'s USB Disk
mfdisk -c DISK Create partition table(s) with menu
mfdisk -p DISK Check partition table(s)
mfdisk -e DISK Deleate all partition tables
mfdisk -d 1:2:3:4 DISK Create partition tables for Link Station
\'\'Here DISK is something like /dev/hda or /dev/sda\'\'

# mfdisk -d 3 /dev/hda 
create partitions...
limit = 257039
start = 63, stop(limit) = 257039
limit = 771119
start = 257040, stop(limit) = 771119
limit = 234436544
start = 771120, stop(limit) = 234436544
The partition table has been altered!

Syncing disks. 

# mkfs -j /dev/hda1 
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
32128 inodes, 128488 blocks
6424 blocks (5.00%) reserved for the super user
First data block=1
16 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

# mkfs -j /dev/hda3 
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
14614528 inodes, 29208178 blocks
1460408 blocks (5.00%) reserved for the super user
First data block=0
892 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

# mkswap /dev/hda2
Setting up swapspace version 1, size = 263204864 bytes

# mount /dev/hda1 /mnt 
dfw@aoi ~/kuro102 $ ncftp -u root 192.168.123.3
NcFTP 3.1.8 (Jul 27, 2004) by Mike Gleason (http://www.NcFTP.com/contact/).
Connecting to 192.168.123.3...
KURO-BOX-EM FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.
Logging in...
Password requested by 192.168.123.3 for user \"root\".

Password required for root.

Password:

Linux 2.4.17 ppc unknown
User root logged in.
Logged in to 192.168.123.3.
ncftp /root > bin
ncftp /root > cd /mnt
ncftp /mnt > put image.zip
346.00 B 8.53 kB/s
image.zip: 17.57 MB 3.90 MB/s
ncftp /mnt > exit
# df 
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 9677 5106 4571 53% /

# mount /dev/hda1 /mnt
# cd /mnt
# ls 
image.zip lost+found

# unzip image.zip 
Archive: image.zip
inflating: tmpimage.tgz

# tar xvfz tmpimage.tgz 
  .
  .
  .
  .

# ps ax 
PID TTY Uid Size State Command
1 root 1448 S init
2 root 0 S keventd
3 root 0 S ksoftirqd_CPU0
4 root 0 S kswapd
5 root 0 S bdflush
6 root 0 S kupdated
39 root 1436 S dhcpcd -h KURO-BOX-EM -t 3 eth0
57 root 1732 S /sbin/syslogd
59 root 1500 S /sbin/klogd
67 root 1592 S /usr/sbin/ap_servd -i eth0 -c
72 root 1552 S /usr/sbin/inetd
76 root 1420 S /usr/sbin/ppc_uartd
78 ttyS0 root 1436 S /sbin/getty console
79 root 1696 S in.telnetd: 192.168.123.105
80 root 1548 S -ash
107 root 0 S kjournald
116 root 1852 R ps ax
# write_ok 
argv: write_ok
# reboot 
Kroutoshikou KURO-BOX (IETSUNA)
kernel 2.4.17_kuro-box on ppc

KURO-BOX login: root
Password:
Linux (none) 2.4.17_kuro-box #2 2004�¯ 3·î 18�ü �����ü 11:39:47 JST ppc unknown

root@KURO-BOX:~# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:04 init
2 ? SW 0:00 keventd
3 ? SWN 0:00 ksoftirqd_CPU0
4 ? SW 0:00 kswapd
5 ? SW 0:00 bdflush
6 ? SW 0:00 kupdated
9 ? SW 0:00 kjournald
47 ? SW 0:00 kjournald
82 ? S 0:00 dhcpcd -h KURO-BOX -t 10 eth0
126 ? S 0:00 /sbin/syslogd
128 ? S 0:00 /sbin/klogd
137 ? SW 0:00 khubd
154 ? S 0:00 /usr/sbin/inetd
157 ? S 0:00 /usr/sbin/thttpd -C /etc/thttpd.conf
161 ? S 0:00 lpd Waiting
166 ? S 0:00 /usr/sbin/cron
178 ? S 0:00 /usr/sbin/atalkd -f /etc/atalk/atalkd.conf
179 ? S 0:00 /usr/sbin/smbd -D
181 ? S 0:00 /usr/sbin/nmbd -D
184 ? S 0:00 /usr/sbin/ppc_uartd
186 ttyS0 S 0:00 /sbin/getty console
187 ? S 0:00 in.telnetd: 192.168.123.105
188 pts/0 S 0:00 -bash
194 ? S 0:00 /usr/sbin/afpd -c 1000 -n KURO-BOX -k sjis
195 ? ZN 0:01 top.cgi
221 ? ZN 0:01 maintenance.cgi
232 pts/0 R 0:00 ps ax
root@KURO-BOX:~#

root@KURO-BOX:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 124427 93216 24787 79% /
/dev/hda3 114998280 32836 109123812 1% /mnt


Kuro box manual install (Draft v0.2) by David W. (akamichi)
reprinted from http://revogear.com/forums/viewtopic.php?t=21
(minor amendments 01.12.05)