#blognavi
ThinkPad X61 への NetBSD のインストールと WinXP のバックアップ
HDD が 200G もある X61 が手に入つたので早速 NetBSD をインストールする。
NetBSD 3.1 だと HDD を認識出來無かつたので、NetBSD 4.0-RC5 をインストールした後、NetBSD-current (4.99.58) に build, install した。
4.0-RC5 インストール時に以下のパーティションに構成になるやうにする。
# fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 387621, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 390721968
BIOS disk geometry:
cylinders: 1023, heads: 240, sectors/track: 63 (15120 sectors/cylinder)
total sectors: 390721968
Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
start 63, size 20986497 (10247 MB, Cyls 0-1387)
1: NetBSD (sysid 169)
start 20986560, size 10493280 (5124 MB, Cyls 1388-2081), Active
2: NetBSD (sysid 169)
start 31479840, size 349423200 (170617 MB, Cyls 2082-25191)
PBR is not bootable: All bytes are identical (0x00)
3: Compaq diagnostics (sysid 18)
start 380903040, size 9812880 (4791 MB, Cyls 25192-25840)
First active partition: 1
Drive serial number: 2614882425 (0x9bdbf079)
Compaq diagnostics のパーティションから起動して、改めて最初のパーティションに WinXP をインストールした。
NetBSD からは以下の構成に成るやうに disklabel -e wd0 する。
# disklabel wd0
# /dev/rwd0d:
type: unknown
disk: HITACHI HTS7220
(中略)
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 10493280 20986560 4.2BSD 2048 16384 0 # (Cyl. 20820 - 31229)
c: 10493280 20986560 unused 0 0 # (Cyl. 20820 - 31229)
d: 390721968 0 unused 0 0 # (Cyl. 0 - 387620)
e: 20986497 63 NTFS # (Cyl. 0*- 20819)
f: 349423200 31479840 4.2BSD 2048 16384 0 # (Cyl. 31230 - 377879)
g: 9812880 380903040 MSDOS # (Cyl. 377880 - 387614)
そして次のコマンドでバックアップ完了。
# dd if=/dev/rwd0e ibs=1048576 | gzip -c >x61-ntfs.img.gz
# dd if=/dev/rwd0g ibs=1048576 | gzip -c >x61-diag.img.gz
前者のイメージさへ有れば何時でも10〜20分でWinXPを再インストール出來る。
カテゴリ: [
NetBSD] - &trackback() - 2008年04月10日 18:26:28
#blognavi
最終更新:2008年04月10日 18:27