hns - 日記自動生成システム - Version 2.19.9

先月 2008年05月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2008年05月18日() 旧暦 [n年日記] [更新:"2008/05/19 00:42:33"]

#1 [NetBSD] 九死に一生 (dd if=/dev/zero of=/dev/wd0a count=40)

Xen を動かしている機械には、いくつか disk を付けている。 そのうちの wd2 の 1/4 に FreeBSD 6.3 を入れて見ようとしていて、 一回 full install したがうまく起動しない。理由は分った気 がして、もう一度やり直そうと wd2 の disklabel 等を消そうとして、
   184  12:04   sudo dd if=/dev/zero of=/dev/wd0a count=40
   185  12:04   sudo disklabel -i wd2
   186  12:04   sudo disklabel wd2
   187  12:04   sudo dd if=/dev/zero of=/dev/wd0d count=40
   188  12:04   sudo dd if=/dev/zero of=/dev/wd0c count=40
   189  12:04   sudo disklabel wd2
   190  12:04   sudo disklabel wd2 | less
   191  12:05   sudo dd if=/dev/zero of=/dev/rwd0c count=40
   192  12:05   sudo dd if=/dev/zero of=/dev/rwd2c count=40
やってしまった。何で書く先には 0 を指定して、 その結果を確めるのに 2 を指定するのだろう。

幸い grub を使っていたので:

しかし、上のようにしても、動いている機械には何の問題も起きない。 おそらく 0 -- 63 sector は起動に必要なだけで、通常は使わないのでは、 と思う。ここで grub を使っていたことを思い出して、
  • fdisk -u wd0 で mbr を作り直し(幸い、一つだけなので簡単)
    0: <UNUSED>
    1: <UNUSED>
    2: <UNUSED>
    3: <UNUSED>
    
    Partition table:
    0: NetBSD (sysid 169)
        start 63, size 156301425 (76319 MB, Cyls 0-9729/80/63)
    
  • grub を入直し
まだ再起動はしていないが、多分大丈夫だろう。しばらく、このまま使い続ける ?

FreeBSD on NetBSD/Xen:

FreeBSD(6.3) on NetBSD/Xen3 を入直し。動かなかった理由は、(多分) xen/hvm の設定として
disk = [ 'phy:/dev/wd2f,ioemu:hda,w', \
'file:/export/xen/iso/6.3-RELEASE-i386-bootonly.iso,ioemu:hdc:cdrom,r']
のようにしているが、まず、この /dev/wd2f が NetBSD から、この名前で 見える必要がある。全体を (例えば FreeBSD 側で) fdisk で分けてしまうと、 NetBSD 側から、何という名前で指定すればいいのか不明になる。 そこで NetBSD 側で disklabel を使って、四つに分けた。
6 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:  78145452         0     4.2BSD      0     0     0  # (Cyl.      0 -  77525*)
 b:  78145452  78145452     4.2BSD      0     0     0  # (Cyl.  77525*- 155050*)
 d: 312581808         0     unused      0     0        # (Cyl.      0 - 310100)
 e:  78145452 156290904     4.2BSD      0     0     0  # (Cyl. 155050*- 232575*)
 f:  78145452 234436356     4.2BSD      0     0     0  # (Cyl. 232575*- 310100)
実はこの a: は間違っていて offset は 0 ではなくて 63 とする必要がある。このままで /dev/wd2a を使うと、FreeBSD の installer から書く時に、
Unable to find device node for /dev/ad0s1b in /dev!
The creation of filesystems will be aborted.
と言われた。それで今は f: 区画 を使っている。

#2 [Namazu] (Namazu) 久振りの大量索引作成

1452747/1452747 - /amd/u/home/makoto/Mail/webcount/2475 [message/rfc822]
Writing index files...
[Base]
Date:                Sun May 18 13:34:21 2008
Added Documents:     1,452,747
Size (bytes):        9,430,882,905
Total Documents:     1,452,747
Added Keywords:      52,890,823
Total Keywords:      52,890,823
Wakati:              module_kakasi -ieuc -oeuc -w
Time (sec):          266,555
File/Sec:            5.45
System:              netbsd
Perl:                5.008008
Namazu:              2.0.17

ttyp2:makoto@modena 13:34:38/080518(~)> 
74 時間 3 分



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)