- 追加された行はこの色です。
- 削除された行はこの色です。
#contents
* Giga LANDISK を NetBSD/evbarm にする [#g2bbf4a4]
いちおうログを残しておく
**準備したもの [#h8c8ed4f]
-材料
-- [[IO-DATA Giga LANDISK:http://www.iodata.jp/prod/storage/hdd/2005/hdl-g/index.htm]] : HDL-G250U 九十九で通販。¥30,400(税込、送料+手数料等込)
-- [[Century 直刺しIDE:http://www.century.co.jp/products/suto/cdiu2.html]] : CDIU2 LAOX@akibaで購入¥2,980(税込)
-- NetBSD/glandisk snapshot http://www.naobsd.org/snapshot/20060409-HEAD/
-- メインの作業を行う母艦 → 今回は NetBSD/i386 3.0_STABLE
-- プラスドライバ
**導入作業 [#l103c82d]
-Giga LANDISK をばらし取り出した HDD を usb 経由で母艦と接続
-こんな風に認識される
umass0 at uhub3 port 2 configuration 1 interface 0
umass0: Century CDIU2, rev 2.00/0.33, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Maxtor 6, L250R0, 0811> disk fixed
sd0: fabricating a geometry
sd0: 233 GB, 239372 cyl, 64 head, 32 sec, 512 bytes/sect x 490234752 sectors
-確認。sd0 として認識されている。
# scsictl sd0 identify
/dev/rsd0d: scsibus0 target 0 lun 0 <Maxtor 6, L250R0, 0811>
# iostat -x
device read KB/t r/s time MB/s write KB/t w/s time MB/s
md0 0.00 0 0.00 0.00 0.00 0 0.00 0.00
cd0 0.00 0 0.00 0.00 0.00 0 0.00 0.00
wd0 2.73 4 0.02 0.01 5.94 6 0.02 0.04
sd0 4.31 1 0.00 0.00 40.99 1 0.00 0.02
-元の状態を確認しておく
# fdisk -v sd0
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 239372, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 490234752
BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 490234752
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0/1/1-26)
beg: cylinder 0, head 1, sector 1
end: cylinder 25, head 254, sector 63
1: Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
beg: cylinder 26, head 0, sector 1
end: cylinder 76, head 254, sector 63
2: Linux swap or Prime or Solaris (sysid 130)
start 1237005, size 1060290 (518 MB, Cyls 77-143)
beg: cylinder 77, head 0, sector 1
end: cylinder 142, head 254, sector 63
3: Extended partition (sysid 5)
start 2297295, size 487926180 (238245 MB, Cyls 143-30515)
beg: cylinder 143, head 0, sector 1
end: cylinder 1023, head 254, sector 63
Extended partition table:
E0: Linux native (sysid 131)
start 2297358, size 417627 (204 MB, Cyls 143/1/1-169)
beg: cylinder 143, head 1, sector 1
end: cylinder 168, head 254, sector 63
E1: Linux native (sysid 131)
start 2715048, size 487508427 (238041 MB, Cyls 169/1/1-30515)
beg: cylinder 169, head 1, sector 1
end: cylinder 1023, head 254, sector 63
# disklabel sd0
# /dev/rsd0d:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 239372
total sectors: 490234752
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
10 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 490234752 0 unused 0 0 # (Cyl. 0 - 239372*)
e: 417627 63 Linux Ext2 0 0 # (Cyl. 0*- 203*)
f: 819315 417690 Linux Ext2 0 0 # (Cyl. 203*- 604*)
g: 1060290 1237005 swap # (Cyl. 604*- 1121*)
i: 417627 2297358 Linux Ext2 0 0 # (Cyl. 1121*- 1325*)
j: 487508427 2715048 Linux Ext2 0 0 # (Cyl. 1325*- 239366*)
disklabel: boot block size 0
disklabel: super block size 0
#
-バックアップを取っておく
# fdisk -v sd0 > fdisk.original.log
# dd bs=`expr 512 \* 63` if=/dev/rsd0e of=rsd0e.dd
6629+0 records in
6629+0 records out
213825024 bytes transferred in 17.872 secs (11964247 bytes/sec)
# dd bs=`expr 512 \* 63` if=/dev/rsd0f of=rsd0f.dd
13005+0 records in
13005+0 records out
419489280 bytes transferred in 34.462 secs (12172516 bytes/sec)
# dd bs=`expr 512 \* 63` if=/dev/rsd0i of=rsd0i.dd
6629+0 records in
6629+0 records out
213825024 bytes transferred in 16.893 secs (12657611 bytes/sec)
#
-パーティションの切り直し
# fdisk -u sd0
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 239372, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 490234752
BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 490234752
Do you want to change our idea of what BIOS thinks? [n]
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
2: Linux swap or Prime or Solaris (sysid 130)
start 1237005, size 1060290 (518 MB, Cyls 77-143)
3: Extended partition (sysid 5)
start 2297295, size 487926180 (238245 MB, Cyls 143-30515)
Extended partition table:
E0: Linux native (sysid 131)
start 2297358, size 417627 (204 MB, Cyls 143-169)
E1: Linux native (sysid 131)
start 2715048, size 487508427 (238041 MB, Cyls 169-30515)
Which partition do you want to change?: [none] E1
The data for partition E1 is:
Linux native (sysid 131)
start 2715048, size 487508427 (238041 MB, Cyls 169-30515)
sysid: [0..255 default: 131] 0
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
2: Linux swap or Prime or Solaris (sysid 130)
start 1237005, size 1060290 (518 MB, Cyls 77-143)
3: Extended partition (sysid 5)
start 2297295, size 487926180 (238245 MB, Cyls 143-30515)
Extended partition table:
E0: Linux native (sysid 131)
start 2297358, size 417627 (204 MB, Cyls 143-169)
Which partition do you want to change?: [none] E0
The data for partition E0 is:
Linux native (sysid 131)
start 2297358, size 417627 (204 MB, Cyls 143-169)
sysid: [0..255 default: 131] 0
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
2: Linux swap or Prime or Solaris (sysid 130)
start 1237005, size 1060290 (518 MB, Cyls 77-143)
3: Extended partition (sysid 5)
start 2297295, size 487926180 (238245 MB, Cyls 143-30515)
Extended partition table:
E0: <UNUSED>
Which partition do you want to change?: [none] 3
The data for partition 3 is:
Extended partition (sysid 5)
start 2297295, size 487926180 (238245 MB, Cyls 143-30515)
sysid: [0..255 default: 5] 0
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
2: Linux swap or Prime or Solaris (sysid 130)
start 1237005, size 1060290 (518 MB, Cyls 77-143)
3: <UNUSED>
Which partition do you want to change?: [none] 2
The data for partition 2 is:
Linux swap or Prime or Solaris (sysid 130)
start 1237005, size 1060290 (518 MB, Cyls 77-143)
sysid: [0..255 default: 130] 0
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
2: <UNUSED>
3: <UNUSED>
Which partition do you want to change?: [none] 1
The data for partition 1 is:
Linux native (sysid 131)
start 417690, size 819315 (400 MB, Cyls 26-77)
sysid: [0..255 default: 131] 169
start: [0..30516cyl default: 417690, 26cyl, 204MB] 417690
size: [0..30490cyl default: 819315, 51cyl, 400MB] 30490cyl
489821850 is not between 0 and 489817062.
size: [0..30490cyl default: 819315, 51cyl, 400MB] 489817062
bootmenu: []
The bootselect code is not installed, do you want to install it now? [n] n
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: NetBSD (sysid 169)
start 417690, size 489817062 (239168 MB, Cyls 26-30515/179/1)
2: <UNUSED>
3: <UNUSED>
Which partition do you want to change?: [none]
Installed bootfile doesn't support required options.
Update the bootcode from /usr/mdec/mbr? [n] n
We haven't written the MBR back to disk yet. This is your last chance.
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: NetBSD (sysid 169)
start 417690, size 489817062 (239168 MB, Cyls 26-30515/179/1)
2: <UNUSED>
3: <UNUSED>
Should we write new partition table? [n] y
# fdisk sd0
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 239372, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 490234752
BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 490234752
Partition table:
0: Linux native (sysid 131)
start 63, size 417627 (204 MB, Cyls 0-26)
1: NetBSD (sysid 169)
start 417690, size 489817062 (239168 MB, Cyls 26-30515/179/1)
2: <UNUSED>
3: <UNUSED>
#
-スライス設定
# disklabel -e sd0
# /dev/rsd0d:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 239372
total sectors: 490234752
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
10 partitions:
# size offset fstype [fsize bsize cpg/sgs]
c: 489817062 417690 unused 0 0 # (Cyl. 203*- 239372*)
d: 490234752 0 unused 0 0 # (Cyl. 0 - 239372*)
e: 417627 63 Linux Ext2 0 0 # (Cyl. 0*- 203*)
f: 489817062 417690 4.2BSD 0 0 0 # (Cyl. 203*- 239372*)
~
~
~
~
~
~
~
~
~
~
~
~
~
~
--最後の4行を以下のように変更して :wq
a: 2097152 417690 4.2BSD 0 0 0 # (Cyl. 203*- 1227*)
b: 2097152 2514842 swap # (Cyl. 1227*- 2251*)
c: 489817062 417690 unused 0 0 # (Cyl. 203*- 239372*)
d: 490234752 0 unused 0 0 # (Cyl. 0 - 239372*)
e: 4194304 4611994 4.2BSD 0 0 0 # (Cyl. 2251*- 4299*)
f: 16777216 8806298 4.2BSD 0 0 0 # (Cyl. 4299*- 12491*)
g: 464651238 25583514 4.2BSD 0 0 0 # (Cyl. 12491*- 239372*)
i: 417627 63 Linux Ext2 0 0 # (Cyl. 0*- 203*)
-newfs
# newfs /dev/rsd0a
/dev/rsd0a: 1024.0MB (2097152 sectors) block size 16384, fragment size 2048
using 6 cylinder groups of 170.67MB, 10923 blks, 21504 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 349568, 699104, 1048640, 1398176, 1747712,
# newfs /dev/rsd0e
/dev/rsd0e: 2048.0MB (4194304 sectors) block size 16384, fragment size 2048
using 12 cylinder groups of 170.67MB, 10923 blks, 21504 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 349568, 699104, 1048640, 1398176, 1747712, 2097248, 2446784,
2796320, 3145856, 3495392, 3844928,
# newfs /dev/rsd0f
/dev/rsd0f: 8192.0MB (16777216 sectors) block size 16384, fragment size 2048
using 45 cylinder groups of 182.05MB, 11651 blks, 22912 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 372864, 745696, 1118528, 1491360, 1864192, 2237024, 2609856,
2982688, 3355520, 3728352, 4101184, 4474016, 4846848, 5219680, 5592512,
5965344, 6338176, 6711008, 7083840, 7456672, 7829504, 8202336, 8575168,
8948000, 9320832, 9693664, 10066496, 10439328, 10812160, 11184992, 11557824,
11930656, 12303488, 12676320, 13049152, 13421984, 13794816, 14167648, 14540480,
14913312, 15286144, 15658976, 16031808, 16404640,
# newfs /dev/rsd0g
/dev/rsd0g: 226880.5MB (464651236 sectors) block size 16384, fragment size 2048
using 1231 cylinder groups of 184.31MB, 11796 blks, 23168 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 377504, 754976, 1132448, 1509920, 1887392, 2264864,
2642336, 3019808, 3397280, 3774752, 4152224, 4529696, 4907168,
5284640, 5662112, 6039584, 6417056, 6794528, 7172000, 7549472,
7926944, 8304416, 8681888, 9059360, 9436832, 9814304, 10191776,
10569248, 10946720, 11324192, 11701664, 12079136, 12456608, 12834080,
13211552, 13589024, 13966496, 14343968, 14721440, 15098912, 15476384,
15853856, 16231328, 16608800, 16986272, 17363744, 17741216, 18118688,
18496160, 18873632, 19251104, 19628576, 20006048, 20383520, 20760992,
21138464, 21515936, 21893408, 22270880, 22648352, 23025824, 23403296,
23780768, 24158240, 24535712, 24913184, 25290656, 25668128, 26045600,
26423072, 26800544, 27178016, 27555488, 27932960, 28310432, 28687904,
29065376, 29442848, 29820320, 30197792, 30575264, 30952736, 31330208,
31707680, 32085152, 32462624, 32840096, 33217568, 33595040, 33972512,
34349984, 34727456, 35104928, 35482400, 35859872, 36237344, 36614816,
36992288, 37369760, 37747232, 38124704, 38502176, 38879648, 39257120,
39634592, 40012064, 40389536, 40767008, 41144480, 41521952, 41899424,
42276896, 42654368, 43031840, 43409312, 43786784, 44164256, 44541728,
44919200, 45296672, 45674144, 46051616, 46429088, 46806560, 47184032,
47561504, 47938976, 48316448, 48693920, 49071392, 49448864, 49826336,
50203808, 50581280, 50958752, 51336224, 51713696, 52091168, 52468640,
52846112, 53223584, 53601056, 53978528, 54356000, 54733472, 55110944,
55488416, 55865888, 56243360, 56620832, 56998304, 57375776, 57753248,
58130720, 58508192, 58885664, 59263136, 59640608, 60018080, 60395552,
60773024, 61150496, 61527968, 61905440, 62282912, 62660384, 63037856,
63415328, 63792800, 64170272, 64547744, 64925216, 65302688, 65680160,
66057632, 66435104, 66812576, 67190048, 67567520, 67944992, 68322464,
68699936, 69077408, 69454880, 69832352, 70209824, 70587296, 70964768,
71342240, 71719712, 72097184, 72474656, 72852128, 73229600, 73607072,
73984544, 74362016, 74739488, 75116960, 75494432, 75871904, 76249376,
76626848, 77004320, 77381792, 77759264, 78136736, 78514208, 78891680,
79269152, 79646624, 80024096, 80401568, 80779040, 81156512, 81533984,
81911456, 82288928, 82666400, 83043872, 83421344, 83798816, 84176288,
84553760, 84931232, 85308704, 85686176, 86063648, 86441120, 86818592,
87196064, 87573536, 87951008, 88328480, 88705952, 89083424, 89460896,
89838368, 90215840, 90593312, 90970784, 91348256, 91725728, 92103200,
92480672, 92858144, 93235616, 93613088, 93990560, 94368032, 94745504,
95122976, 95500448, 95877920, 96255392, 96632864, 97010336, 97387808,
97765280, 98142752, 98520224, 98897696, 99275168, 99652640, 100030112,
100407584, 100785056, 101162528, 101540000, 101917472, 102294944, 102672416,
103049888, 103427360, 103804832, 104182304, 104559776, 104937248, 105314720,
105692192, 106069664, 106447136, 106824608, 107202080, 107579552, 107957024,
108334496, 108711968, 109089440, 109466912, 109844384, 110221856, 110599328,
110976800, 111354272, 111731744, 112109216, 112486688, 112864160, 113241632,
113619104, 113996576, 114374048, 114751520, 115128992, 115506464, 115883936,
116261408, 116638880, 117016352, 117393824, 117771296, 118148768, 118526240,
118903712, 119281184, 119658656, 120036128, 120413600, 120791072, 121168544,
121546016, 121923488, 122300960, 122678432, 123055904, 123433376, 123810848,
124188320, 124565792, 124943264, 125320736, 125698208, 126075680, 126453152,
126830624, 127208096, 127585568, 127963040, 128340512, 128717984, 129095456,
129472928, 129850400, 130227872, 130605344, 130982816, 131360288, 131737760,
132115232, 132492704, 132870176, 133247648, 133625120, 134002592, 134380064,
134757536, 135135008, 135512480, 135889952, 136267424, 136644896, 137022368,
137399840, 137777312, 138154784, 138532256, 138909728, 139287200, 139664672,
140042144, 140419616, 140797088, 141174560, 141552032, 141929504, 142306976,
142684448, 143061920, 143439392, 143816864, 144194336, 144571808, 144949280,
145326752, 145704224, 146081696, 146459168, 146836640, 147214112, 147591584,
147969056, 148346528, 148724000, 149101472, 149478944, 149856416, 150233888,
150611360, 150988832, 151366304, 151743776, 152121248, 152498720, 152876192,
153253664, 153631136, 154008608, 154386080, 154763552, 155141024, 155518496,
155895968, 156273440, 156650912, 157028384, 157405856, 157783328, 158160800,
158538272, 158915744, 159293216, 159670688, 160048160, 160425632, 160803104,
161180576, 161558048, 161935520, 162312992, 162690464, 163067936, 163445408,
163822880, 164200352, 164577824, 164955296, 165332768, 165710240, 166087712,
166465184, 166842656, 167220128, 167597600, 167975072, 168352544, 168730016,
169107488, 169484960, 169862432, 170239904, 170617376, 170994848, 171372320,
171749792, 172127264, 172504736, 172882208, 173259680, 173637152, 174014624,
174392096, 174769568, 175147040, 175524512, 175901984, 176279456, 176656928,
177034400, 177411872, 177789344, 178166816, 178544288, 178921760, 179299232,
179676704, 180054176, 180431648, 180809120, 181186592, 181564064, 181941536,
182319008, 182696480, 183073952, 183451424, 183828896, 184206368, 184583840,
184961312, 185338784, 185716256, 186093728, 186471200, 186848672, 187226144,
187603616, 187981088, 188358560, 188736032, 189113504, 189490976, 189868448,
190245920, 190623392, 191000864, 191378336, 191755808, 192133280, 192510752,
192888224, 193265696, 193643168, 194020640, 194398112, 194775584, 195153056,
195530528, 195908000, 196285472, 196662944, 197040416, 197417888, 197795360,
198172832, 198550304, 198927776, 199305248, 199682720, 200060192, 200437664,
200815136, 201192608, 201570080, 201947552, 202325024, 202702496, 203079968,
203457440, 203834912, 204212384, 204589856, 204967328, 205344800, 205722272,
206099744, 206477216, 206854688, 207232160, 207609632, 207987104, 208364576,
208742048, 209119520, 209496992, 209874464, 210251936, 210629408, 211006880,
211384352, 211761824, 212139296, 212516768, 212894240, 213271712, 213649184,
214026656, 214404128, 214781600, 215159072, 215536544, 215914016, 216291488,
216668960, 217046432, 217423904, 217801376, 218178848, 218556320, 218933792,
219311264, 219688736, 220066208, 220443680, 220821152, 221198624, 221576096,
221953568, 222331040, 222708512, 223085984, 223463456, 223840928, 224218400,
224595872, 224973344, 225350816, 225728288, 226105760, 226483232, 226860704,
227238176, 227615648, 227993120, 228370592, 228748064, 229125536, 229503008,
229880480, 230257952, 230635424, 231012896, 231390368, 231767840, 232145312,
232522784, 232900256, 233277728, 233655200, 234032672, 234410144, 234787616,
235165088, 235542560, 235920032, 236297504, 236674976, 237052448, 237429920,
237807392, 238184864, 238562336, 238939808, 239317280, 239694752, 240072224,
240449696, 240827168, 241204640, 241582112, 241959584, 242337056, 242714528,
243092000, 243469472, 243846944, 244224416, 244601888, 244979360, 245356832,
245734304, 246111776, 246489248, 246866720, 247244192, 247621664, 247999136,
248376608, 248754080, 249131552, 249509024, 249886496, 250263968, 250641440,
251018912, 251396384, 251773856, 252151328, 252528800, 252906272, 253283744,
253661216, 254038688, 254416160, 254793632, 255171104, 255548576, 255926048,
256303520, 256680992, 257058464, 257435936, 257813408, 258190880, 258568352,
258945824, 259323296, 259700768, 260078240, 260455712, 260833184, 261210656,
261588128, 261965600, 262343072, 262720544, 263098016, 263475488, 263852960,
264230432, 264607904, 264985376, 265362848, 265740320, 266117792, 266495264,
266872736, 267250208, 267627680, 268005152, 268382624, 268760096, 269137568,
269515040, 269892512, 270269984, 270647456, 271024928, 271402400, 271779872,
272157344, 272534816, 272912288, 273289760, 273667232, 274044704, 274422176,
274799648, 275177120, 275554592, 275932064, 276309536, 276687008, 277064480,
277441952, 277819424, 278196896, 278574368, 278951840, 279329312, 279706784,
280084256, 280461728, 280839200, 281216672, 281594144, 281971616, 282349088,
282726560, 283104032, 283481504, 283858976, 284236448, 284613920, 284991392,
285368864, 285746336, 286123808, 286501280, 286878752, 287256224, 287633696,
288011168, 288388640, 288766112, 289143584, 289521056, 289898528, 290276000,
290653472, 291030944, 291408416, 291785888, 292163360, 292540832, 292918304,
293295776, 293673248, 294050720, 294428192, 294805664, 295183136, 295560608,
295938080, 296315552, 296693024, 297070496, 297447968, 297825440, 298202912,
298580384, 298957856, 299335328, 299712800, 300090272, 300467744, 300845216,
301222688, 301600160, 301977632, 302355104, 302732576, 303110048, 303487520,
303864992, 304242464, 304619936, 304997408, 305374880, 305752352, 306129824,
306507296, 306884768, 307262240, 307639712, 308017184, 308394656, 308772128,
309149600, 309527072, 309904544, 310282016, 310659488, 311036960, 311414432,
311791904, 312169376, 312546848, 312924320, 313301792, 313679264, 314056736,
314434208, 314811680, 315189152, 315566624, 315944096, 316321568, 316699040,
317076512, 317453984, 317831456, 318208928, 318586400, 318963872, 319341344,
319718816, 320096288, 320473760, 320851232, 321228704, 321606176, 321983648,
322361120, 322738592, 323116064, 323493536, 323871008, 324248480, 324625952,
325003424, 325380896, 325758368, 326135840, 326513312, 326890784, 327268256,
327645728, 328023200, 328400672, 328778144, 329155616, 329533088, 329910560,
330288032, 330665504, 331042976, 331420448, 331797920, 332175392, 332552864,
332930336, 333307808, 333685280, 334062752, 334440224, 334817696, 335195168,
335572640, 335950112, 336327584, 336705056, 337082528, 337460000, 337837472,
338214944, 338592416, 338969888, 339347360, 339724832, 340102304, 340479776,
340857248, 341234720, 341612192, 341989664, 342367136, 342744608, 343122080,
343499552, 343877024, 344254496, 344631968, 345009440, 345386912, 345764384,
346141856, 346519328, 346896800, 347274272, 347651744, 348029216, 348406688,
348784160, 349161632, 349539104, 349916576, 350294048, 350671520, 351048992,
351426464, 351803936, 352181408, 352558880, 352936352, 353313824, 353691296,
354068768, 354446240, 354823712, 355201184, 355578656, 355956128, 356333600,
356711072, 357088544, 357466016, 357843488, 358220960, 358598432, 358975904,
359353376, 359730848, 360108320, 360485792, 360863264, 361240736, 361618208,
361995680, 362373152, 362750624, 363128096, 363505568, 363883040, 364260512,
364637984, 365015456, 365392928, 365770400, 366147872, 366525344, 366902816,
367280288, 367657760, 368035232, 368412704, 368790176, 369167648, 369545120,
369922592, 370300064, 370677536, 371055008, 371432480, 371809952, 372187424,
372564896, 372942368, 373319840, 373697312, 374074784, 374452256, 374829728,
375207200, 375584672, 375962144, 376339616, 376717088, 377094560, 377472032,
377849504, 378226976, 378604448, 378981920, 379359392, 379736864, 380114336,
380491808, 380869280, 381246752, 381624224, 382001696, 382379168, 382756640,
383134112, 383511584, 383889056, 384266528, 384644000, 385021472, 385398944,
385776416, 386153888, 386531360, 386908832, 387286304, 387663776, 388041248,
388418720, 388796192, 389173664, 389551136, 389928608, 390306080, 390683552,
391061024, 391438496, 391815968, 392193440, 392570912, 392948384, 393325856,
393703328, 394080800, 394458272, 394835744, 395213216, 395590688, 395968160,
396345632, 396723104, 397100576, 397478048, 397855520, 398232992, 398610464,
398987936, 399365408, 399742880, 400120352, 400497824, 400875296, 401252768,
401630240, 402007712, 402385184, 402762656, 403140128, 403517600, 403895072,
404272544, 404650016, 405027488, 405404960, 405782432, 406159904, 406537376,
406914848, 407292320, 407669792, 408047264, 408424736, 408802208, 409179680,
409557152, 409934624, 410312096, 410689568, 411067040, 411444512, 411821984,
412199456, 412576928, 412954400, 413331872, 413709344, 414086816, 414464288,
414841760, 415219232, 415596704, 415974176, 416351648, 416729120, 417106592,
417484064, 417861536, 418239008, 418616480, 418993952, 419371424, 419748896,
420126368, 420503840, 420881312, 421258784, 421636256, 422013728, 422391200,
422768672, 423146144, 423523616, 423901088, 424278560, 424656032, 425033504,
425410976, 425788448, 426165920, 426543392, 426920864, 427298336, 427675808,
428053280, 428430752, 428808224, 429185696, 429563168, 429940640, 430318112,
430695584, 431073056, 431450528, 431828000, 432205472, 432582944, 432960416,
433337888, 433715360, 434092832, 434470304, 434847776, 435225248, 435602720,
435980192, 436357664, 436735136, 437112608, 437490080, 437867552, 438245024,
438622496, 438999968, 439377440, 439754912, 440132384, 440509856, 440887328,
441264800, 441642272, 442019744, 442397216, 442774688, 443152160, 443529632,
443907104, 444284576, 444662048, 445039520, 445416992, 445794464, 446171936,
446549408, 446926880, 447304352, 447681824, 448059296, 448436768, 448814240,
449191712, 449569184, 449946656, 450324128, 450701600, 451079072, 451456544,
451834016, 452211488, 452588960, 452966432, 453343904, 453721376, 454098848,
454476320, 454853792, 455231264, 455608736, 455986208, 456363680, 456741152,
457118624, 457496096, 457873568, 458251040, 458628512, 459005984, 459383456,
459760928, 460138400, 460515872, 460893344, 461270816, 461648288, 462025760,
462403232, 462780704, 463158176, 463535648, 463913120, 464290592,
-作成できた fs を mount
# mount /dev/sd0a /mnt
# mkdir /mnt/usr
# mkdir /mnt/var
# mount /dev/sd0e /mnt/var
# mount /dev/sd0f /mnt/usr
# mkdir /mnt/home
-binary sets 展開
# cd /mnt
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/base.tgz
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/etc.tgz
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/comp.tgz
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/games.tgz
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/man.tgz
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/misc.tgz
# tar zxfp どこか/20060409-HEAD/gigalandisk/binary/sets/text.tgz
# cd dev
# ./MAKEDEV all
-/mnt/etc 以下の設定
--ユーザ登録
# vipw -d /mnt
で、以下のエントリを追加
hogehoge::1000:0::0:0:Charlie &:/home/hogehoge:/bin/csh
--fstab
/dev/wd0a / ffs rw,noatime 1 2
/dev/wd0b none swap sw 0 0
/dev/wd0b none swap dp 0 0
/dev/wd0e /var ffs rw,noatime 1 1
/dev/wd0f /usr ffs rw,noatime 1 1
/dev/wd0g /home ffs rw,noatime 1 3
--rc.conf
hostname="gland"
ifconfig_wm0="inet 10.0.0.5 netmask 0xffffff00"
powerd=YES
--inetd.conf
#telnet stream tcp nowait root /usr/libexec/telnetd telnetd -a valid
を以下のように変更または追加しておく
telnet stream tcp nowait root /usr/libexec/telnetd telnetd
--groups
wheel:*:0:root,hogehoge
-カーネルのインストール
# umount /mnt
# mount /dev/sd0i /mnt
# ls -l /mnt
total 3317
drwxrwxrwx 2 root wheel 1024 Jun 23 2005 .update
-rw-r--r-- 1 root wheel 1763778 Jun 21 2005 initrd
drwx------ 2 root wheel 12288 Jul 8 2005 lost+found
-rwxr-xr-x 1 root wheel 1601860 Jun 8 2005 zImage
# cd /mnt/
# ls -la
total 3319
drwxr-xr-x 4 root wheel 1024 Oct 26 14:12 .
drwxr-xr-x 23 root wheel 512 Apr 17 20:25 ..
drwxrwxrwx 2 root wheel 1024 Jun 23 2005 .update
-rw-r--r-- 1 root wheel 1763778 Jun 21 2005 initrd
drwx------ 2 root wheel 12288 Jul 8 2005 lost+found
-rwxr-xr-x 1 root wheel 1601860 Jun 8 2005 zImage
# mv zImage zImage.linux
# zcat どこか/20060409-HEAD/gigalandisk/binary/kernel/netbsd.bin-GENERIC.gz > zImage
-母艦 から disk をはずす
# umount /mnt
# scsictl /dev/scsibus0 detach 0 0
# iostat -x
device read KB/t r/s time MB/s write KB/t w/s time MB/s
md0 0.00 0 0.00 0.00 0.00 0 0.00 0.00
cd0 0.00 0 0.00 0.00 0.00 0 0.00 0.00
wd0 2.73 4 0.02 0.01 5.94 6 0.02 0.04
# scsictl sd0 identify
scsictl: sd0: Device not configured
-GigaLANDISK を組み立てなおす
**GigaLANDISK の起動 [#l0b0a936]
-telnet で GigaLANDISK に接続
-root になって環境を整える
--まずは root のパスワード設定
--inetd.conf は元に戻して、ssh を有効にする。
-/netbsd が無いって言われることがあったので置いてみた
# zcat どこか/20060409-HEAD/gigalandisk/binary/kernel/netbsd-GENERIC.gz > /netbsd
-終しまい
**FANに関するメモ [#n24e3d2c]
-[[ここ:http://www.nipponkeiki.co.jp/seihin/fan/08.html]]にある SF30D05 が使える様子
-サイズが 30mm x 30mm x 10mm で 5V のやつであればOK?