仕方ないからブートプロセスについて調べてみる
いちいちサーバが置いてある部屋に行くのが嫌で敬遠してたけど、この際なので調べてみる。
fdisk -v
******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 27262242 (13311 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 27262305, size 33543720 (16378 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 60806025, size 8385930 (4094 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 69191955, size 87104430 (42531 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63
http://nobumasa-web.hp.infoseek.co.jp/multi_boot/other_os.html#freebsd
http://www.xa10.com/boot/
- BIOS から MBR 読み取り
- MBR から起動セクタ読み取り、アクティブなスライスを選択 ( fdisk )
- BootManger ありの場合 ( boot0cfg -B ad4 )
- /boot/boot0 から /boot/boot1
- /boot/boot1 から /boot/boot2
- /boot/boot2 から /boot/loader
- BootManger なしの場合 ( fdisk -B ad4 )
- /boot/mbr から boot1
- /boot/boot1 から /boot/boot2
- /boot/boot2 から /boot/loader
コケてるのは boot2 から loader の間の起動シーケンス。
パーティションタイプは全て 0xA5 なので問題なし。
つまり起動シーケンスの boot2 までは確実に起動してて、その後に問題があるとわかる。
http://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/boot-blocks.html
実際 boot2 から loader を呼び出す所で no loader とか言ってるし、 /boot/kernel/kernel と打ち込んでもダメ。
むむむ・・・?