ファームウェア 1.10 でハックキット

Debian LS-XHL

次は、ハックキットをインストールする。
PRODUCTID が変っているので、最低インストーラを変更しなければならない。

まずは、 準備(LS-XHL の場合)を実行する。

標準ファームに root でログインできるようにする

済み

標準ファームで起動

ハックキットのファイルを置く

とりあえず、そのまま置く。

ログイン


BUFFALO INC. BuffaloNas series

UNINSPECT344 login: root
No mail.
root@UNINSPECT344:~#

時計を合わせる

root@UNINSPECT344:~# date
Thu Nov  1 00:58:13 JST 2007
root@UNINSPECT344:~# date 052416072009
Sun May 24 16:07:00 JST 2009
root@UNINSPECT344:~#

インストールする HDD の準備

(1) ハックキットをインストールする HDD を USB で接続します。

May 24 16:25:33 UNINSPECT344 kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
May 24 16:25:33 UNINSPECT344 kernel: usb 1-1: configuration #1 chosen from 1 choice
May 24 16:25:33 UNINSPECT344 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
May 24 16:25:38 UNINSPECT344 kernel: scsi 2:0:0:0: Direct-Access     Hitachi    GEC534RF37924E A5CA PQ: 0 ANSI: 2 CCS
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] Write Protect is off
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] Write Protect is off
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
May 24 16:25:38 UNINSPECT344 kernel:  sdb: sdb1 sdb2 sdb3 sdb4
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
May 24 16:25:38 UNINSPECT344 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

(2) /mnt/usbdisk1 に自動的にマウントされた場合はアンマウントします。

root@UNINSPECT344:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2              4989760    393520   4596240   8% /
/dev/ram1                15360       120     15240   1% /mnt/ram
/dev/sda1               992036    162040    829996  16% /boot
/dev/disk1_6         141368380     66336 141302044   0% /mnt/disk1
/dev/usbdisk1_1         992036     27968    914072   3% /mnt/usbdisk1
root@UNINSPECT344:~# umount /mnt/usbdisk1/
root@UNINSPECT344:~#

(3) sdb にパーティションを切ります。

root@UNINSPECT344:~# parted -s /dev/sdb print
Model: Hitachi  GEC534RF37924E (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  1024MB  1024MB  ext3         primary
 2      1024MB  6144MB  5120MB  xfs          primary
 3      6144MB  7168MB  1024MB  linux-swap   primary
 4      7168MB  500GB   493GB   xfs          primary

root@UNINSPECT344:~#
既にハックキットをインストールしている HDD なので、 パーティションは設定済。

PRODUCTID 変更対応

続いて、 インストール なのだが、その前に PRODUCTID が変更になったことへの対応を行う。
root@UNINSPECT344:~# cd /mnt/disk1/share/hackkit/
root@UNINSPECT344:/mnt/disk1/share/hackkit# ls
hackkit_090226.tar.gz  hackkit_config.sample  ramroot_090225.sh      setup_090203.sh
hackkit_090227.sh      mkimage                rsync_090225.sh
root@UNINSPECT344:/mnt/disk1/share/hackkit# cp hackkit_090227.sh hackkit_090524.sh
root@UNINSPECT344:/mnt/disk1/share/hackkit# vi !$
	:
	:
root@UNINSPECT344:/mnt/disk1/share/hackkit# diff -c hackkit_090227.sh hackkit_090524.sh
diff: invalid option -- c
BusyBox v1.7.0 (2007-10-15 19:49:46 IST) multi-call binary

Usage: diff [-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2

Compare files line by line and output the differences between them.
This diff implementation only supports unified diffs.

Options:
        -a      Treat all files as text
        -b      Ignore changes in the amount of whitespace
        -d      Try hard to find a smaller set of changes
        -i      Ignore case differences
        -L      Use LABEL instead of the filename in the unified header
        -N      Treat absent files as empty
        -q      Output only whether files differ
        -r      Recursively compare subdirectories
        -S      Start with FILE when comparing directories
        -T      Make tabs line up by prefixing a tab when necessary
        -s      Report when two files are the same
        -t      Expand tabs to spaces in output
        -U      Output LINES lines of context
        -w      Ignore all whitespace

root@UNINSPECT344:/mnt/disk1/share/hackkit# diff hackkit_090227.sh hackkit_090524.sh
Binary files hackkit_090227.sh and hackkit_090524.sh differ
root@UNINSPECT344:/mnt/disk1/share/hackkit#
がー。役に立たん。
0x00000011 | 0x80000080)
        MACHINE=LSXHL

        ETH=eth1
        ;;
これでよかったはず。

続いて、 インストールの手順を実行する。

カスタマイズ

hackkit_config でカスタマイズする。
root@UNINSPECT344:/mnt/disk1/share/hackkit# vi hackkit_config
	:
	:
root@UNINSPECT344:/mnt/disk1/share/hackkit# cat hackkit_config
ADDRESS=192.168.2.49
HOSTNAME=brick
root@UNINSPECT344:/mnt/disk1/share/hackkit#

インストーラの実行

root@UNINSPECT344:/mnt/disk1/share/hackkit# sh hackkit_090524.sh
PRODUCTID = 0x80000080
formating hard drive ...
mke2fs 1.40.5 (27-Jan-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
62720 inodes, 249995 blocks
12499 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=260046848
8 block groups
32768 blocks per group, 32768 fragments per group
7840 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376

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

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=156250 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=1250000, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
Setting up swapspace version 1, size = 1023995904 bytes
meta-data=/dev/sdb4              isize=256    agcount=16, agsize=7521665 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=120346640, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
mounting root file system ...
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
	:
	:
./initrd/
creating miconapl ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/2.6.22.18/
	:
	:
lib/modules/2.6.22.18/modules.dep
lib/modules/2.6.22.18/modules.ofmap
lib/modules/2.6.22.18/modules.symbols
lib/modules/2.6.22.18/modules.seriomap
creating usb ...
checking /dev/sdb1
fsck 1.40.5 (27-Jan-2008)
e2fsck 1.40.5 (27-Jan-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 11/62720 files (9.1% non-contiguous), 6399/249995 blocks
mounting /boot ...
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
139760+1 records in
139760+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Sun May 24 16:41:44 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    8899118 Bytes = 8690.54 kB = 8.49 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
root@UNINSPECT344:/mnt/disk1/share/hackkit#
さすがに、LS-XHL は速い。

電源 OFF

続いて、 ハックキットで起動

HDD の交換(LS-WSGL 以外)

起動

LED は青点灯であるが、正常に起動しているかどうかは不明。

続いて、 最初の設定

ログイン

シリアルコンソールは(まだ)つけられていないので、 telnet してログインする。
Debian GNU/Linux 5.0
brick login: guest
Password:
Linux brick 2.6.22.18 #182 Thu May 7 13:35:58 JST 2009 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@brick:/$ cat /proc/buffalo/firmware
SERIES=BuffaloNas
PRODUCTNAME=UNINSPECT(Unknown)
VERSION=0.16
SUBVERSION=FLASH 0.00
PRODUCTID=0x80000080
BUILDDATE=2009/05/07 13:35:43
BOOTVER=0.08
guest@brick:/$

root になる

guest@brick:/$ su - root
Password:
brick:~#

ここから先はスクリプトで。

brick:~# ftp ude.yamasita.jp
Connected to ude.yamasita.jp.
220 ude FTP server (GNU inetutils 1.5) ready.
Name (ude.yamasita.jp:guest): yasunari
331 Password required for yasunari.
Password:
230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 armv5tejl
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/linkstation/HackKit/unified
250 CWD command successful.
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 8
drwxrwsr-x 2 yamasita   96 Jan 27 23:50 081218
drwxrwsr-x 2 yamasita  120 Feb 17 18:52 090217
drwxrwsr-x 2 yamasita  124 Mar  3 22:45 090303
drwxrwsr-x 2 yamasita 4096 Feb 27 20:53 current
drwxrwsr-x 2 yamasita 4096 Mar  3 22:44 old
226 Transfer complete.
ftp> cd current
250 CWD command successful.
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 65712
-rw-rw-r-- 1 yamasita 67237983 Feb 26 22:49 hackkit_090226.tar.gz
-rw-rw-r-- 1 yamasita    16323 Feb 27 20:53 hackkit_090227.sh
-rw-rw-r-- 1 yamasita       35 Feb 18 20:55 hackkit_config.sample
-rw-rw-r-- 1 yamasita    15920 Oct 26  2008 mkimage
-rw-r--r-- 1 yamasita     1109 Feb 25 22:20 ramroot_090225.sh
-rw-r--r-- 1 yamasita      201 Feb 25 22:11 rsync_090225.sh
-rw-rw-r-- 1 yamasita      846 Feb  3 20:50 setup_090203.sh
226 Transfer complete.
ftp> get setup_090203.sh
local: setup_090203.sh remote: setup_090203.sh
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'setup_090203.sh' (846 bytes).
226 Transfer complete.
846 bytes received in 0.00 secs (3738.3 kB/s)
ftp> bye
221 Goodbye.
brick:~# sh setup_090203.sh
passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Adding group `yamasita' (GID 1001) ...
Done.
adduser yasunari
Adding user `yasunari' ...
Adding new user `yasunari' (1001) with group `yamasita' ...
Creating home directory `/home/yamasita/yasunari' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Removing user `guest' ...
Warning: group `guest' has no more members.
userdel: user guest is currently logged in
/usr/sbin/deluser: `/usr/sbin/userdel guest' returned error code 8. Exiting.
Get:1 http://ftp.jp.debian.org lenny Release.gpg [394B]
Get:2 http://ftp.jp.debian.org lenny Release [73.6kB]
Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex
Get:3 http://ftp.jp.debian.org lenny/main Packages [6706kB]
Get:4 http://security.debian.org lenny/updates Release.gpg [1032B]
Get:5 http://security.debian.org lenny/updates Release [40.8kB]
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:6 http://security.debian.org lenny/updates/main Packages [131kB]
Get:7 http://ftp.jp.debian.org lenny/main Sources [2980kB]
Get:8 http://security.debian.org lenny/updates/main Sources [38.0kB]
Fetched 9970kB in 8s (1161kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt apt-utils base-files libgnutls26 libpam-modules libpam-runtime libpam0g libssl0.9.8
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3722kB of archives.
After this operation, 8192B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main base-files 5lenny2 [60.4kB]
Get:2 http://ftp.jp.debian.org lenny/main libpam-modules 1.0.1-5+lenny1 [288kB]
Get:3 http://security.debian.org lenny/updates/main apt 0.7.20.2+lenny1 [1618kB]
Get:4 http://ftp.jp.debian.org lenny/main libpam-runtime 1.0.1-5+lenny1 [165kB]
Get:5 http://ftp.jp.debian.org lenny/main libpam0g 1.0.1-5+lenny1 [103kB]
Get:6 http://ftp.jp.debian.org lenny/main libgnutls26 2.4.2-6+lenny1 [452kB]
Get:7 http://security.debian.org lenny/updates/main apt-utils 0.7.20.2+lenny1 [184kB]
Get:8 http://security.debian.org lenny/updates/main libssl0.9.8 0.9.8g-15+lenny1 [850kB]
Fetched 3722kB in 4s (870kB/s)
Preconfiguring packages ...
tar: ./preinst: time stamp 2009-04-11 22:52:31 is 45608683.251214555 s in the future
tar: ./postinst: time stamp 2009-04-11 22:52:31 is 45608683.249707315 s in the future
tar: ./conffiles: time stamp 2009-04-11 22:52:31 is 45608683.24873074 s in the future
tar: ./md5sums: time stamp 2009-04-11 22:52:31 is 45608683.247782045 s in the future
tar: ./control: time stamp 2009-04-11 22:52:31 is 45608683.24677808 s in the future
tar: .: time stamp 2009-04-11 22:52:31 is 45608683.24603414 s in the future
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace base-files 5 (using .../base-files_5lenny2_armel.deb) ...
Unpacking replacement base-files ...
Processing triggers for man-db ...
Setting up base-files (5lenny2) ...
Installing new version of config file /etc/debian_version ...
tar: ./conffiles: time stamp 2009-03-25 01:19:05 is 44062274.920138675 s in the future
tar: ./preinst: time stamp 2009-03-25 01:19:05 is 44062274.918704985 s in the future
tar: ./md5sums: time stamp 2009-03-25 01:22:53 is 44062502.91735489 s in the future
tar: ./templates: time stamp 2009-03-25 01:18:15 is 44062224.916271615 s in the future
tar: ./control: time stamp 2009-03-25 01:22:41 is 44062490.91526703 s in the future
tar: ./postrm: time stamp 2009-03-25 01:19:05 is 44062274.914338845 s in the future
tar: ./postinst: time stamp 2009-03-25 01:19:04 is 44062273.91336267 s in the future
tar: .: time stamp 2009-03-25 01:22:53 is 44062502.91262692 s in the future
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam-modules 1.0.1-5 (using .../libpam-modules_1.0.1-5+lenny1_armel.deb) ...
Unpacking replacement libpam-modules ...
Processing triggers for man-db ...
Setting up libpam-modules (1.0.1-5+lenny1) ...
tar: ./preinst: time stamp 2009-04-21 06:53:37 is 46415143.12248966 s in the future
tar: ./md5sums: time stamp 2009-04-21 06:57:58 is 46415404.12088716 s in the future
tar: ./postinst: time stamp 2009-04-21 06:53:37 is 46415143.11992091 s in the future
tar: ./shlibs: time stamp 2009-04-21 06:53:32 is 46415138.11892805 s in the future
tar: ./conffiles: time stamp 2009-04-21 06:53:38 is 46415144.117993095 s in the future
tar: ./control: time stamp 2009-04-21 06:57:56 is 46415402.117064295 s in the future
tar: ./prerm: time stamp 2009-04-21 06:53:37 is 46415143.11613518 s in the future
tar: ./postrm: time stamp 2009-04-21 06:53:38 is 46415144.11521736 s in the future
tar: .: time stamp 2009-04-21 06:57:57 is 46415403.11448428 s in the future
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace apt 0.7.20.2 (using .../apt_0.7.20.2+lenny1_armel.deb) ...
Unpacking replacement apt ...
Processing triggers for man-db ...
Setting up apt (0.7.20.2+lenny1) ...
Installing new version of config file /etc/cron.daily/apt ...
gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) " not changed
gpg: key ADB11277: "Etch Stable Release Key " not changed
gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key F42584E6: "Lenny Stable Release Key " not changed
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) " not changed
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed
gpg: Total number processed: 6
gpg:              unchanged: 6
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
gpg: key F42584E6 was created 13637942 seconds in the future (time warp or clock problem)
gpg: key 55BE302B was created 39235628 seconds in the future (time warp or clock problem)
gpg: key 6D849617 was created 38969919 seconds in the future (time warp or clock problem)
tar: ./conffiles: time stamp 2009-03-18 09:03:00 is 43485302.364600635 s in the future
tar: ./md5sums: time stamp 2009-03-18 09:03:01 is 43485303.363110085 s in the future
tar: ./postrm: time stamp 2009-03-18 09:03:00 is 43485302.362138545 s in the future
tar: ./control: time stamp 2009-03-18 09:03:00 is 43485302.36120573 s in the future
tar: ./postinst: time stamp 2009-03-18 09:03:00 is 43485302.360279085 s in the future
tar: .: time stamp 2009-03-18 09:03:01 is 43485303.35949522 s in the future
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam-runtime 1.0.1-5 (using .../libpam-runtime_1.0.1-5+lenny1_all.deb) ...
Unpacking replacement libpam-runtime ...
Processing triggers for man-db ...
Setting up libpam-runtime (1.0.1-5+lenny1) ...
tar: ./md5sums: time stamp 2009-03-25 01:22:52 is 44062492.30140888 s in the future
tar: ./templates: time stamp 2009-03-25 01:18:11 is 44062211.299681255 s in the future
tar: ./control: time stamp 2009-03-25 01:22:35 is 44062475.29868464 s in the future
tar: ./symbols: time stamp 2009-03-25 01:19:01 is 44062261.297732905 s in the future
tar: ./postrm: time stamp 2009-03-25 01:19:04 is 44062264.29673312 s in the future
tar: ./postinst: time stamp 2009-03-25 01:19:04 is 44062264.295767565 s in the future
tar: ./shlibs: time stamp 2009-03-25 01:18:53 is 44062253.29484275 s in the future
tar: .: time stamp 2009-03-25 01:22:52 is 44062492.294110335 s in the future
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace libpam0g 1.0.1-5 (using .../libpam0g_1.0.1-5+lenny1_armel.deb) ...
Unpacking replacement libpam0g ...
Setting up libpam0g (1.0.1-5+lenny1) ...
tar: ./md5sums: time stamp 2009-04-21 07:01:00 is 46415577.40315769 s in the future
tar: ./postinst: time stamp 2009-04-21 06:59:37 is 46415494.40172028 s in the future
tar: ./shlibs: time stamp 2009-04-21 06:59:33 is 46415490.40077473 s in the future
tar: ./control: time stamp 2009-04-21 07:00:59 is 46415576.39984139 s in the future
tar: ./postrm: time stamp 2009-04-21 06:59:37 is 46415494.398914225 s in the future
tar: .: time stamp 2009-04-21 07:01:00 is 46415577.39817953 s in the future
(Reading database ... 8591 files and directories currently installed.)
Preparing to replace apt-utils 0.7.20.2 (using .../apt-utils_0.7.20.2+lenny1_armel.deb) ...
Unpacking replacement apt-utils ...
tar: ./md5sums: time stamp 2009-02-24 09:38:23 is 41586620.06127517 s in the future
tar: ./control: time stamp 2009-02-24 09:38:21 is 41586618.059852025 s in the future
tar: ./postrm: time stamp 2009-02-24 09:35:50 is 41586467.05887239 s in the future
tar: ./postinst: time stamp 2009-02-24 09:35:50 is 41586467.057922845 s in the future
tar: ./shlibs: time stamp 2009-02-24 09:35:03 is 41586420.056919505 s in the future
tar: .: time stamp 2009-02-24 09:38:23 is 41586620.056189495 s in the future
Preparing to replace libgnutls26 2.4.2-6 (using .../libgnutls26_2.4.2-6+lenny1_armel.deb) ...
Unpacking replacement libgnutls26 ...
tar: ./md5sums: time stamp 2009-04-02 11:45:24 is 44791040.56633953 s in the future
tar: ./templates: time stamp 2009-04-02 11:39:50 is 44790706.56461569 s in the future
tar: ./control: time stamp 2009-04-02 11:44:53 is 44791009.56355734 s in the future
tar: ./postrm: time stamp 2009-04-02 11:45:22 is 44791038.56254715 s in the future
tar: ./postinst: time stamp 2009-04-02 11:45:22 is 44791038.561574355 s in the future
tar: ./shlibs: time stamp 2009-04-02 11:41:51 is 44790827.560644415 s in the future
tar: .: time stamp 2009-04-02 11:45:24 is 44791040.55985946 s in the future
Preparing to replace libssl0.9.8 0.9.8g-15 (using .../libssl0.9.8_0.9.8g-15+lenny1_armel.deb) ...
Unpacking replacement libssl0.9.8 ...
Processing triggers for man-db ...
Setting up apt-utils (0.7.20.2+lenny1) ...
Setting up libgnutls26 (2.4.2-6+lenny1) ...
Setting up libssl0.9.8 (0.9.8g-15+lenny1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcap1 libedit2 perl perl-modules
Suggested packages:
  ntp-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
The following NEW packages will be installed:
  libcap1 libedit2 ntp perl perl-modules
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 8257kB of archives.
After this operation, 29.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libedit2 2.11~20080614-1 [64.5kB]
Get:2 http://ftp.jp.debian.org lenny/main perl-modules 5.10.0-19 [3189kB]
Get:3 http://security.debian.org lenny/updates/main ntp 1:4.2.4p4+dfsg-8lenny2 [459kB]
Get:4 http://ftp.jp.debian.org lenny/main perl 5.10.0-19 [4535kB]
Get:5 http://ftp.jp.debian.org lenny/main libcap1 1:1.10-14 [9074B]
Fetched 8257kB in 5s (1422kB/s)
tar: ./shlibs: time stamp 2008-06-16 02:19:16 is 19701039.91880952 s in the future
tar: ./postrm: time stamp 2008-06-16 02:24:38 is 19701361.917344995 s in the future
tar: ./control: time stamp 2008-06-16 02:24:53 is 19701376.91637616 s in the future
tar: ./md5sums: time stamp 2008-06-16 02:24:58 is 19701381.91544029 s in the future
tar: ./postinst: time stamp 2008-06-16 02:24:38 is 19701361.91451305 s in the future
tar: .: time stamp 2008-06-16 02:24:58 is 19701381.913787675 s in the future
Selecting previously deselected package libedit2.
(Reading database ... 8591 files and directories currently installed.)
Unpacking libedit2 (from .../libedit2_2.11~20080614-1_armel.deb) ...
tar: ./control: time stamp 2009-01-01 22:04:24 is 36965747.67979742 s in the future
tar: ./conffiles: time stamp 2009-01-01 22:04:23 is 36965746.678387125 s in the future
tar: ./md5sums: time stamp 2009-01-01 22:04:23 is 36965746.676971835 s in the future
tar: ./postrm: time stamp 2009-01-01 22:04:23 is 36965746.67599185 s in the future
tar: ./preinst: time stamp 2009-01-01 22:04:23 is 36965746.67505303 s in the future
tar: .: time stamp 2009-01-01 22:04:24 is 36965747.674330475 s in the future
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.10.0-19_all.deb) ...
tar: ./control: time stamp 2009-01-02 10:35:05 is 37010786.357795345 s in the future
tar: ./md5sums: time stamp 2009-01-02 10:31:03 is 37010544.355872695 s in the future
tar: ./postinst: time stamp 2009-01-02 10:31:02 is 37010543.35484907 s in the future
tar: ./prerm: time stamp 2009-01-02 10:31:02 is 37010543.353890055 s in the future
tar: .: time stamp 2009-01-02 10:35:05 is 37010786.35308885 s in the future
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19_armel.deb) ...
Selecting previously deselected package libcap1.
Unpacking libcap1 (from .../libcap1_1%3a1.10-14_armel.deb) ...
tar: ./md5sums: time stamp 2009-05-12 05:16:52 is 48223690.31874458 s in the future
tar: ./postrm: time stamp 2009-05-12 05:16:31 is 48223669.317343805 s in the future
tar: ./prerm: time stamp 2009-05-12 05:16:31 is 48223669.31638491 s in the future
tar: ./control: time stamp 2009-05-12 05:16:50 is 48223688.31544538 s in the future
tar: ./conffiles: time stamp 2009-05-12 05:16:31 is 48223669.314502205 s in the future
tar: ./postinst: time stamp 2009-05-12 05:16:31 is 48223669.313576735 s in the future
tar: .: time stamp 2009-05-12 05:16:52 is 48223690.312808785 s in the future
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.4p4+dfsg-8lenny2_armel.deb) ...
Processing triggers for man-db ...
Setting up libedit2 (2.11~20080614-1) ...
Setting up libcap1 (1:1.10-14) ...
Setting up ntp (1:4.2.4p4+dfsg-8lenny2) ...
Starting NTP server: ntpd.
Setting up perl-modules (5.10.0-19) ...
Setting up perl (5.10.0-19) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcups2 libkeyutils1 libkrb53 libldap-2.4-2 libtalloc1 libwbclient0 samba-common ucf
Suggested packages:
  cups-common krb5-doc krb5-user smbldap-tools ldb-tools
The following NEW packages will be installed:
  libcups2 libkeyutils1 libkrb53 libldap-2.4-2 libtalloc1 libwbclient0 samba samba-common ucf
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 8612kB of archives.
After this operation, 23.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libkeyutils1 1.2-9 [5228B]
Get:2 http://ftp.jp.debian.org lenny/main libldap-2.4-2 2.4.11-1 [179kB]
Get:3 http://ftp.jp.debian.org lenny/main ucf 3.0016 [64.4kB]
Get:4 http://ftp.jp.debian.org lenny/main libtalloc1 1.2.0~git20080616-1 [13.3kB]
Get:5 http://ftp.jp.debian.org lenny/main libwbclient0 2:3.2.5-4lenny2 [78.3kB]
Get:6 http://ftp.jp.debian.org lenny/main samba-common 2:3.2.5-4lenny2 [3372kB]
Get:7 http://security.debian.org lenny/updates/main libkrb53 1.6.dfsg.4~beta1-5lenny1 [449kB]
Get:8 http://ftp.jp.debian.org lenny/main samba 2:3.2.5-4lenny2 [4294kB]
Get:9 http://security.debian.org lenny/updates/main libcups2 1.3.8-1lenny5 [157kB]
Fetched 8612kB in 2s (3076kB/s)
Preconfiguring packages ...

Package configuration




































  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x Please specify the workgroup you want this server to appear to be in when queried by clients. Note   x
  x that this parameter also controls the domain name used with the security=domain setting.             x
  x                                                                                                      x
  x Workgroup/Domain Name:                                                                               x
  x                                                                                                      x
  x YAMASITA____________________________________________________________________________________________ x
  x                                                                                                      x
  x                                                                                                  x
  x                                                                                                      x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj






































Package configuration



































  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x                                                                                                       x
  x If your computer gets IP address information from a DHCP server on the network, the DHCP server may   x
  x also provide information about WINS servers ("NetBIOS name servers") present on the network.  This    x
  x requires a change to your smb.conf file so that DHCP-provided WINS settings will automatically be     x
  x read from /etc/samba/dhcp.conf.                                                                       x
  x                                                                                                       x
  x The dhcp3-client package must be installed to take advantage of this feature.                         x
  x                                                                                                       x
  x Modify smb.conf to use WINS settings from DHCP?                                                       x
  x                                                                                                       x
  x                                                                                              x
  x                                                                                                       x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



































Selecting previously deselected package libkeyutils1.
(Reading database ... 9843 files and directories currently installed.)
Unpacking libkeyutils1 (from .../libkeyutils1_1.2-9_armel.deb) ...
Selecting previously deselected package libkrb53.
Unpacking libkrb53 (from .../libkrb53_1.6.dfsg.4~beta1-5lenny1_armel.deb) ...
Selecting previously deselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.11-1_armel.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../archives/ucf_3.0016_all.deb) ...
Moving old data out of the way
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.3.8-1lenny5_armel.deb) ...
Selecting previously deselected package libtalloc1.
Unpacking libtalloc1 (from .../libtalloc1_1.2.0~git20080616-1_armel.deb) ...
Selecting previously deselected package libwbclient0.
Unpacking libwbclient0 (from .../libwbclient0_2%3a3.2.5-4lenny2_armel.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_2%3a3.2.5-4lenny2_armel.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_2%3a3.2.5-4lenny2_armel.deb) ...
Processing triggers for man-db ...
Setting up libkeyutils1 (1.2-9) ...
Setting up libkrb53 (1.6.dfsg.4~beta1-5lenny1) ...
Setting up libldap-2.4-2 (2.4.11-1) ...
Setting up ucf (3.0016) ...
Setting up libcups2 (1.3.8-1lenny5) ...
Setting up libtalloc1 (1.2.0~git20080616-1) ...
Setting up libwbclient0 (2:3.2.5-4lenny2) ...
Setting up samba-common (2:3.2.5-4lenny2) ...

Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.2.5-4lenny2) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for root...ok
Importing account for daemon...ok
Importing account for bin...ok
Importing account for sys...ok
Importing account for sync...ok
Importing account for games...ok
Importing account for man...ok
Importing account for lp...ok
Importing account for mail...ok
Importing account for news...ok
Importing account for uucp...ok
Importing account for proxy...ok
Importing account for www-data...ok
Importing account for backup...ok
Importing account for list...ok
Importing account for irc...ok
Importing account for gnats...ok
Importing account for nobody...ok
Importing account for libuuid...ok
Importing account for guest...ok
Importing account for telnetd...ok
Importing account for yasunari...ok
Importing account for ntp...ok
Adding group `sambashare' (GID 105) ...
Done.
Starting Samba daemons: nmbd smbd.
Reloading /etc/samba/smb.conf: smbd only.
smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
mkdir: cannot create directory `/mnt/share': File exists
brick:~#

時計を合わせるのを忘れた。。。。

動作自体は問題なさそう。
ただ、今後 PRODUCTID がどうなるかわからないので、 ハックキットの修正はちょっと保留



LS-XHL
バッファローダイレクト
楽天市場
amazon
Sofmap
ValuMore


LS-QLシリーズファームウェア Ver.1.10β
ハックの記録
LinkStation/玄箱 をハックしよう

ファームウェアアップデータの散歩

Copyright (C) 2003-2009 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市