VAIO PCG-C1 はディスクが 3G bytes あるけれど、Windows 98 と NetBSD と 二つの OS を入れると苦しい。で、内蔵ハードディスクを 12G のものと 「換装」する。この「換装」という言葉はあまり一般的な用語では ないようで、なぜか「ノートパソコンの内蔵ハードディスクを 取り換える」という場合にしか使わない秋葉原業界用語のようだ。
精密ドライバというのが必要。「精密」というからなにやら値段が 高そうだけれど、浦賀のビッグサムで 380 円で買った。 ちなみに、浦賀のビッグサムは横横の拡張で店じまい。 第二アクアライン絶対反対!
BIOS の関係で 8G までしか認識しないようなので、無理矢理 12G に 設定してしまう。けれど、大丈夫そう。Hybernation 領域を ディスクの終りにとっているけれど、ちゃんとできているみたいだし。 以下、fdisk と disklabel の設定。これを切り取って設定すれば OK。
ちなみに NetBSD のパーティションが二つあるのは、大きい方を データ領域、小さい方を OS に割り当てて、再インストールとかしても データを保護するため。
disklabel
# /dev/rwd0d: type: unknown disk: NetBSD label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 16383 total sectors: 23579136 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize cpg] a: 307440 4082400 4.2BSD 1024 8192 16 # (Cyl. 4050 - 4354) b: 393120 4389840 swap # (Cyl. 4355 - 4744) c: 4082400 4082400 unused 0 0 # (Cyl. 4050 - 8099) d: 23579136 0 unused 0 0 # (Cyl. 0 - 23391) e: 3381840 4782960 4.2BSD 1024 8192 16 # (Cyl. 4745 - 8099) f: 15180480 8164800 4.2BSD 1024 8192 16 # (Cyl. 8100 - 23159) g: 4082337 63 MSDOS # (Cyl. 0*- 4049)
fdisk
NetBSD disklabel disk geometry: cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder) BIOS disk geometry: cylinders: 1023 heads: 240 sectors/track: 63 (15120 sectors/cylinder) Partition table: 0: sysid 12 (Primary DOS with 32 bit FAT - LBA) start 63, size 4082337 (1993 MB), flag 0x80 beg: cylinder 0, head 1, sector 1 end: cylinder 270, head 0, sector 1 1: sysid 169 (NetBSD) start 4082400, size 4082400 (1993 MB), flag 0x0 beg: cylinder 270, head 0, sector 1 end: cylinder 540, head 0, sector 1 2: sysid 169 (NetBSD) start 8164800, size 15180480 (7412 MB), flag 0x0 beg: cylinder 540, head 0, sector 1 end: cylinder 1023, head 239, sector 63 3: sysid 160 (IBM Thinkpad hibernation) start 23345280, size 211680 (103 MB), flag 0x0 beg: cylinder 1023, head 255, sector 63 end: cylinder 1023, head 255, sector 63