*BSD News Article 58002


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!EU.net!Norway.EU.net!daneel.sds.no!thapc
From: toreh@bootes.sds.no (Tore haraldsen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Booting from primary disk on secondary PCI IDE controller SOLVED (in a way)
Date: Thu, 04 Jan 96 09:30:47 GMT
Organization: Statens Datasentral a.s
Lines: 61
Message-ID: <4cg6p9$919@daneel.sds.no>
References: <4c1avr$73@daneel.sds.no> <4c30sb$p1l@uriah.heep.sax.de>
NNTP-Posting-Host: 139.105.133.121
X-Newsreader: News Xpress Version 1.0 Beta #4

In article <4c30sb$p1l@uriah.heep.sax.de>,
   j@uriah.heep.sax.de (J Wunsch) wrote:
>
>Modify the code for the bootblocks in sys/i386/boot/biosboot/boot.c,
>remake the bootblocks, and the disklabel -B -b boot1 -s boot2 fd0
>in order to install the new blocks on your floppy.
>
Thank you all for helpful comments, and Philip Musumeci especially for his 
mails.

I got the thing solved by building special boot blocks on a floppy. For 
interested parties, this is the way when you have no real system up and 
running:

Basic prerequisite 1: The installation procedure went OK, but the boot failed.
	Do all necessary setups at this stage, including network etc.
Basic prerequisite 2: My BIOS recognizes the drive without any problems.

1)Boot with the boot floppy, modify devices as required, and enter 
installation meu.

2)Select Fixit and put in the fixit floppy.
3)Mount /dev/wd2a on /mnt
4)chroot /mnt (gives a functioning universe to work in)
5)Mount /dev/wd2s1f on /usr (I used the standard (automatic partitioning)

You now have a running system in single-user mode.

6)Go to /sys/i386/boot/biosboot

7)Modify boot.c to serve your needs. What I did was to reset the maj index to 
zero (wd disk), and set unit to one, just after the #ifdef BOOT_HD stuff. This 
gives the correct defaults for the bios = wd(1,a)

A couple of lines before startprog is called, just before the MAKE... call, 
change unit to two. This tells the now read-in kernel it was read from wd2 by 
kernel counting.

8)Make the boot blocks.

9)Write them to the fixit floppy:

disklabel -B -b boot1 -s boot2 fd0

(Yes, I know, but it was not possible to unmount the fixit floppy...)

10)Unmount /usr, exit chroot, unmount /mnt, exit back to the installation 
program, quit installation, leave the fixit floppy in, reboot with -c to fix 
any drivers, and you are up and running.

11)Make a proper boot diskette...

-- tore

PS: The fixit floppy was not destroyed by the above...

===================================================================
Email: Tore Haraldsen <toreh@bootes.sds.no>
Smail: Statens Datasentral a.s, Box 6664 Rodelokka, N-0502 Oslo, Norway
Street address: Ulvenveien 89B, N-0589 Oslo, Norway
Phone: +47 22886000, Fax: +47 22648407