Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 1996 00:57:41 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        hackers@freebsd.org, questions@freebsd.org
Cc:        sbqadm@sbq.org.br
Subject:   Re: SCSI Question
Message-ID:  <199601282357.AAA04467@uriah.heep.sax.de>
In-Reply-To: <199601281950.LAA27544@freefall.freebsd.org> from "Justin T. Gibbs" at Jan 28, 96 11:50:52 am

next in thread | previous in thread | raw e-mail | index | archive | help
As Justin T. Gibbs wrote:
> 
> >We can't stop the server (4) and it is running this way, I would
> >like very much to correct the problem without reinstalling it.
> 
> You'll have to in order to correct the problem.

Well, you don't really _need_ to re-install, but it's highly
recommended, and you need a double-net if you wanna correct it ``on
the fly''.

Basically, what happens is the following:

|<--------------------------->|                              | Last
|  size of a cylinder as the  |                              | ficticous
|  FreeBSD installation ass-  |                              | cylinder
|  umed the BIOS would use    |                              | boundary
V                             V                              V
+-+--------------+------------+---------------------- ... ---+-------+
|M|  Padded unuse|d space, to |FBSD                          | un-   |
|B|  remain compa|tible with  |boot     FreeBSD              | used  |
|R|  other system|s           |                              |       |
+-+--------------+------------+---------------------- ... ---+-------+
^                ^
| size of a cyl- |
| inder as your  |
| BIOS thinks    |
|<-------------->|

The BIOS is told to boot off cylinder 1, sector 1, head 0.  As you can
see above, if the ideas of FreeBSD's sysinstall and the BIOS about the
size of a (ficticous) cylinder disagree, the Master Boot Record won't
find the boot sector of the operating system, and since it misses the
boot signature (0x55, 0xaa in the last two bytes of the first sector
of the o/s), it prints this ``Missing operating system'' message.

However, everything above marked as ``FreeBSD'' is intact, as you can
observe when booting from floppy.  So if you really don't mind the
potential danger, you could re-calculate the values in the MBR to
match the C/H/S number for the area where ``FBSD boot'' starts.  This
way, the MBR will finally find the system.


Alternatively, for people like you who are operating a truly dedicated
server machine, where the disks will never see any other system so
compatibility is not an issue (nor is ``multi-boot''), this is what
the ``Dangerously dedicated'' mode is for.  Select A)ll FreeBSD in the
partition editor, and answer the next question with the non-standard
answer ``No''.  (Read carefully.)  This will setup the following:

+-----------------------------------------------------... -----------+
|FBSD                                                                |
|boot                                   FreeBSD                      |
|                                                                    |
+---------------------------------------------------- ... -----------+

As you can see, no wasted space at all, and since the Master Boot
Record and the FreeBSD bootstrap are identical, you don't have to care
for any BIOS geometry at all.  The BIOS boots sector 1, cylinder 0,
head 0, and boots straight into FreeBSD this way.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601282357.AAA04467>