Pyon's Diary
2007-05-13 舊 平成拾玖年彌生廿漆日 (日・晴) [長年日記]
神田川散歩。
ち○し○が暇さうにしてゐたので神田川沿ひを散歩してみた。
江戸川橋から只管神田川沿ひに歩き、途中行止まりで回り道をしたりして小一時間歩くと高田馬場に着いた。
大體三粁位。
驛前で一寸一服を點けてゐると「早大正門前行」のバスが目に入つたので、其れに乘り早稲田迄。
早稲田の正門から約一粁位歩いて歸宅。
天氣も良く風も穏やかだつたので結構氣持良かつた。
KURO-BOX/PRO (No.08) HDD (外附、USB)を繋いでみた。
Debian は將來の課題として、其乃前に外附 HDD (USB) を取附けて開發環境を作成して見る事にした。
KURO-BOX/PRO の電源を入れた。いつもの音がして立上がつた。
「サングラス男」の顔が出て來て無事起動したら取敢へずログインした。
其れから外附 HDD (UDB) を繋ぐとシリアル・コンソールに以下の樣に状況が出力された。
usb 1-1: new high speed USB device using ehci_platform and address 2 usb 1-1: config 1 descriptor has 1 excess byte, ignoring scsi2 : SCSI emulation for USB Mass Storage devices Vendor: FUJITSU Model: MHT2020AT Rev: 0811 Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB) sda: assuming drive cache: write through SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB) sda: assuming drive cache: write through sda: sda1 Attached scsi disk sda at scsi2, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
sda1 として認識された模樣なのでマウントしてみた。
# /bin/mount -t ext3 /dev/sda1 /mnt/tmp kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. # ls -al /mnt/tmp drwxr-xr-x 3 root root 4096 May 13 18:08 . drwxr-xr-x 11 root root 0 May 13 18:51 .. drwx------ 2 root root 16384 May 13 18:08 lost+found
中は空。
此處で一旦外附 HDD (USB) を外して「KURO-BOX/PRO 製品仕樣書」の附録 B に在る通り CD-ROM の中に在る hddrootfs.tar.gz を複寫した。
Samba を使つてゐ無い爲其乃手順は一寸やゝこしい。
- 外附 HDD を母艦(WinXP)に插す。
- 假想計算機で認識させる。
- 假想計算機上の Linux でマウントする。
- hddrootfs.tar.gz を WinSCP で假想計算機上の Linux に轉送する。
- アンマウントして、假想計算機から外す。
- 母艦(WinXP)から外す。
- 再び KURO-BOX/PRO に插す。
KURO-BOX/PRO の上でマウントして外附 HDD (USB) の中を覗くと複寫した hddrootfs.tar.gz が見えた。
# ls -al /mnt/tmp drwxr-xr-x 3 root root 4096 May 13 19:47 . drwxr-xr-x 11 root root 0 May 13 18:51 .. -rw-r--r-- 1 root root 67260248 Feb 14 14:45 hddrootfs.tar.gz drwx------ 2 root root 16384 May 13 18:08 lost+found
此を解凍・展開した。
# cd /mnt/tmp # ls -la drwxrwxrwx 3 root root 4096 May 13 19:47 . drwxr-xr-x 11 root root 0 May 13 20:00 .. -rw-r--r-- 1 root root 67260248 Feb 14 14:45 hddrootfs.tar.gz drwx------ 2 root root 16384 May 13 18:08 lost+found # tar zxf hddrootfs.tar.gz
そしたらエラーが出た。
usb 1-1: reset high speed USB device using ehci_platform and address 2 SCSI error : <2 0 0 0> return code = 0x70000 end_request: I/O error, dev sda, sector 1048647 EXT3-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 4, inode_bitmap = 131073 Aborting journal on device sda1. usb 1-1: reset high speed USB device using ehci_platform and address 2 EXT3-fs error (device sda1) in ext3_new_inode: IO failure EXT3-fs error (device sda1) in ext3_mkdir: IO failure ext3_abort called. EXT3-fs error (device sda1): ext3_journal_start_sb: Detected aborted journal Remounting filesystem read-only tar: Cannot create directory `./bin': Read-only file system tar: ./bin/bash: No such file or directory
で外附 HDD で ro で再マウントされて了つた。
良く判ら無いので KURO-BOX/PRO を外附 HDD (USB) を繋いだ儘再起動した。
起動直後にログインして df を見ると以下の樣に成つてゐた。
# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15996 49540 24% / /dev/ram1 8192 144 8048 2% /mnt/ram /dev/sda1 9614116 218444 8907300 2% /mnt/disk1 /dev/mtd3 192512 4396 188116 2% /mnt/mtd # mount /dev/root on / type jffs2 (rw,noatime) proc on /proc type proc (rw,nodiratime) sysfs on /sys type sysfs (rw) usbfs on /proc/bus/usb type usbfs (rw) devpts on /dev/pts type devpts (rw) /dev/ram1 on /mnt/ram type tmpfs (rw) /dev/sda1 on /mnt/disk1 type ext3 (rw) /dev/mtd3 on /mnt/mtd type jffs2 (rw,noatime)
其れから解凍を試みると矢張りエラー。
# cd /mnt/disk1/ # gunzip hddrootfs.tar.gz usb 1-1: reset high speed USB device using ehci_platform and address 2 SCSI error : <2 0 0 0> return code = 0x70000 end_request: I/O error, dev sda, sector 791287 EXT3-fs error (device sda1): read_inode_bitmap: Cannot read inode bitmap - block_group = 3, inode_bitmap = 98903 Aborting journal on device sda1. usb 1-1: reset high speed USB device using ehci_platform and address 2 EXT3-fs error (device sda1) in ext3_new_inode: IO failure EXT3-fs error (device sda1) in ext3_create: IO failure gunzip: hddrootfs.tar: Input/output error
矢張り良く判らないので一旦アンマウントして fdisk を見てみたらパーティションが無かつた。
# fdisk /dev/sda1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 9538.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sda1: 10.0 GB, 10001908224 bytes
64 heads, 32 sectors/track, 9538 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Command (m for help):
母艦の假想計算機上の在る Linux でパーティションを作つたのが良く無かつたかと思ひ、パーティションを作り直した。
其乃後 mke2fs でファイルシステムを作成しようとしたがコマンドを實行しても何も出力されず、外附 HDD (USB) のランプも書込の「赤」に成ら無いので再度母艦の假想計算機上の Linux で mke2fs を實行してみた。
で、けふは此處でをはり。
追記: 結局。(2007-11-08)
理由は良く判ら無いが使用した外附の筐體が悪かつたらしい。
違ふ筐體に換へたら上手く行つた。