Return to BSD News archive
Xref: sserve comp.os.msdos.programmer:26666 comp.os.linux.development:2129 comp.os.386bsd.development:1333 Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!msuinfo!netnews.upenn.edu!cobra.cis.upenn.edu!shap From: shap@cobra.cis.upenn.edu (Jonathan Shapiro) Newsgroups: comp.os.msdos.programmer,comp.os.linux.development,comp.os.386bsd.development Subject: Need help with boot block question Message-ID: <156281@netnews.upenn.edu> Date: 21 Oct 93 13:33:27 GMT Sender: news@netnews.upenn.edu Followup-To: comp.os.msdos.programmer Organization: University of Pennsylvania Lines: 21 Nntp-Posting-Host: cobra.cis.upenn.edu I'm stumped, and I'm hoping someone out there can help me out. I'm trying to build a partition boot sector for my hard disk. My boot sectos gets loaded by the master boot record and runs just fine so long as I hard-code hte cyl/sec/head to get the rest of the bootstrap from within the boot sector. But there are boot sectors that work without hard coding this info, and it's a definite advantage to avoid doing so. How can a secondary boot record learn either of the following: 1. The head/cyl/sec that it was loaded from 2. The partition number that it was loaded from The DOS call to find the boot drive doesn't help. I'm not running DOS at this point. Thanks for any help you may have to offer - if you reply by mail I'll summarize back to these groups. Jonathan