看板 DFBSD_bugs 關於我們 聯絡資訊
: :-On [20040908 21:22], Matthew Dillon (dillon@apollo.backplane.com) wrote: :> What access mode is your BIOS using for that disk? If it isn't set :> to LBA mode, try setting it to LBA. : :1.0A works and boots all the way. : :-- :Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono Again with the LBA mode. Try setting your BIOS to access the disk in LBA mode and see if it works with the most recent boot code. -- I've looked at the CHS code and I can't find anything wrong with it. I tried booting my test box with it set to CHS and it fails, but for some reason the BIOS seems to be changing the disk parameters when I switch it into CHS mode. My BIOS reports that my HD's cylinders/heads/sectors is 4997/255/63 in LBA mode, and 19679/16/255 in CHS mode. 19679/16/255 is illegal. The int 0x13,8 BIOS call that reports CHS style cylinders/heads/sectors is limited to 63 sectors per track (there aren't any more bits available for more then that), not 255, so I just don't see how the boot code could ever possibly work in CHS mode with my BIOS. What I think I may try doing is reordering the boot1/boot2/loader code to always try packet mode first, and only fall back to CHS if packet mode fails. Then packet mode will be used for any BIOS that is packet-mode enabled, regardless of the mode set in the BIOS. That way fdisk's cylinder/head/sector parameters could be completely broken but it would still work. -Matt Matthew Dillon <dillon@backplane.com>