NTLDRを使ってDebianとXPをデュアルブート設定

参考:

BootPart
のBootPartを使って、まず状況確認。

C:\Program Files\bootpart26>bootpart.exe
Boot Partition 2.60 for WinNT/2K/XP (c)1995-2005 G. Vollant (info@winimage.com)
WEB : http://www.winimage.com and http://www.winimage.com/bootpart.htm
Add partition in the Windows NT/2000/XP Multi-boot loader
Run "bootpart.exe /?" for more information

Physical number of disk 0 : cccdcccd
 0 : C:* type=7  (HPFS/NTFS), size= 41943040 KB, Lba Pos=63
 1 : C:  type=12 , size= 5178600 KB, Lba Pos=614779200
 2 : C:  type=83  (Linux native), size= 337365 KB, Lba Pos=83891430
 3 : C:  type=5  (Extended), size= 265104630 KB, Lba Pos=84566160
 4 : C:  type=8e  , size= 4883728 KB, Lba Pos=84566223
 5 : C:  type=5   (Extended), size= 2931862 KB, Lba Pos=94333680
 6 : C:  type=8e   , size= 2931831 KB, Lba Pos=94333743
 7 : C:  type=5    (Extended), size= 2650725 KB, Lba Pos=100197405
 8 : C:  type=8e    , size= 2650693 KB, Lba Pos=100197468
 9 : C:  type=5     (Extended), size= 393592 KB, Lba Pos=105498855
10 : C:  type=8e     , size= 393561 KB, Lba Pos=105498918
11 : C:  type=5      (Extended), size= 254244690 KB, Lba Pos=106286040
12 : C:  type=8e      , size= 254244658 KB, Lba Pos=106286103

0がXP、1がD2D領域、2がDebian
つづいてDebianブートローダを指定。
領域が2、ブートイメージをc:\debian.pbr、そして選択名を"Debian GNU/Linux"とした。

C:\Program Files\bootpart26>bootpart.exe 2 c:\debian.pbr "Debian GNU/Linux"
Boot Partition 2.60 for WinNT/2K/XP (c)1995-2005 G. Vollant (info@winimage.com)
WEB : http://www.winimage.com and http://www.winimage.com/bootpart.htm
Add partition in the Windows NT/2000/XP Multi-boot loader
Run "bootpart.exe /?" for more information

Physical number of disk 0 : cccdcccd
 0 : C:* type=7  (HPFS/NTFS), size= 41943040 KB, Lba Pos=63
 1 : C:  type=12 , size= 5178600 KB, Lba Pos=614779200
 2 : C:  type=83  (Linux native), size= 337365 KB, Lba Pos=83891430
 3 : C:  type=5  (Extended), size= 265104630 KB, Lba Pos=84566160
 4 : C:  type=8e  , size= 4883728 KB, Lba Pos=84566223
 5 : C:  type=5   (Extended), size= 2931862 KB, Lba Pos=94333680
 6 : C:  type=8e   , size= 2931831 KB, Lba Pos=94333743
 7 : C:  type=5    (Extended), size= 2650725 KB, Lba Pos=100197405
 8 : C:  type=8e    , size= 2650693 KB, Lba Pos=100197468
 9 : C:  type=5     (Extended), size= 393592 KB, Lba Pos=105498855
10 : C:  type=8e     , size= 393561 KB, Lba Pos=105498918
11 : C:  type=5      (Extended), size= 254244690 KB, Lba Pos=106286040
12 : C:  type=8e      , size= 254244658 KB, Lba Pos=106286103

Writing a boot sector using LBA position 83891430 (0x50014e6)
c:\debian.pbr written
C:\BOOT.INI updated

これにより、C:\boot.iniが

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
c:\debian.pbr="Debian GNU/Linux"

のように最下行が追加された。
これで再起動すると、まずWinの選択画面が出る。「Debian GNU/Linux」を選べば続いてGRUBの選択画面になる。そしてカーネルを指定すれば、何事もなかったようにlennyが起動した。
よかったよかった。