Johan Kruger wrote:
> 
> I mounted the boot.flp image and replaced kernel.gz with my own, for use
> of bootable CD.
> I don't want the default sysinstall ( presumably compiled into the
> kernel ) to come up on screen, instead i want a command prompt only. I
> will insert my scripts into .profile.
> The PROBLEM is that i get the message mounting root on fd0c while i am
> actually booting from CDROM. In my kernel the default root device is

Actually, when you boot from CD-ROM, you are really booting from the
first floppy drive: for bootable "EL-TORITO" CD-ROMs, the motherboard's
BIOS will make the specified boot image, present on the CD-ROM, look
to the BIOS just like the first floppy disk drive.

You may have some luck with "boot -C" (cd-rom).  I've never really tried
it.  Also checkout the "boot -a" (ask-root) option.  You can force these
options to ALWAYS be active by creating a "/boot.config" file containing
your boot-line options, like "0:fd(0,a)/kernel -C".

For the release CD-ROM images, the kernel is compiled with the "MFS_ROOT"
option, and a special program, release/write_mfs_in_kernel.c, is used to
put the root filesystem image into the kernel.  With the new forth-based
boot loader, this is no longer necessary (I've done away with it in our
product based on FreeBSD)- you can pre-load the MFS into a "variable",
and the kernel will detect it/use it when it boots.

To build a custom boot floppy image, you should be playing with the
src/release/Makefile and friends.  It's kinda tricky in there.
As someone else stated, "/stand/sysinstall" is used as the "init"
program on the release floppies (see src/sys/kern/init_main.c).  You want
to use a standard "init".  Stick "init" in your boot_crunch.conf file for
your boot floppy image.


Good luck!
(if you have any specific questions, email me directly: I troll this
list only every week or so)


-Mark Taylor
NetMAX Developer
[EMAIL PROTECTED]
http://www.netmax.com/


> wd0, but i tried to change kernel root to acd0 , and to no avail.
> 
> I get :
> ----------------------
> Mounting root device on fd0c
> error mounting root on fd0c
> -- will reboot in 15 seconds -- bla bla
> ----------------------
> How do i tell it to mount it on CDROM ( probably wcd0a ) say for
> instance /MYMOUNT_DIR ??
> 
>   --------------------------------------------------------------------------------
> 
>   Johan Kruger <[EMAIL PROTECTED]>
>   Mr
>   Nanoteq
>   Development
> 
>   Johan Kruger
>   Mr                                                                                
><[EMAIL PROTECTED]>
>   Nanoteq
>   Development
>   P.O BOX 12872 Onderstepoort 0110 South Africa;Pretoria;Gauteng;0110;South Africa  
>Cellular: +27 83 3015923
>                                                                                     
>Fax: +27 12 6651343
>                                                                                     
>Home: +27 83 3015923
>                                                                                     
>Work: +27 12 6651338
>                                                                                     
>Netscape Conference Address
>                                                                                     
>Netscape Conference DLS Server
>   Additional Information:
>   Last Name     Kruger
>   First Name    Johan
>   Version       2.1


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to