From owner-freebsd-hackers Sun Sep 19 18:30:19 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from demai02.mw.mediaone.net (demai02.mw.mediaone.net [24.131.1.20]) by hub.freebsd.org (Postfix) with ESMTP id C7E8315AAD; Sun, 19 Sep 1999 18:30:05 -0700 (PDT) (envelope-from mtaylor@cybernet.com) Received: from cybernet.com (nic-c13-195.mw.mediaone.net [24.131.13.195]) by demai02.mw.mediaone.net (8.8.7/8.8.7) with ESMTP id VAA20434; Sun, 19 Sep 1999 21:23:34 -0400 (EDT) Message-ID: <37E58CEB.77F11EDF@cybernet.com> Date: Sun, 19 Sep 1999 21:24:59 -0400 From: "Mark J. Taylor" Organization: Cybernet Systems Corp. X-Mailer: Mozilla 4.05 [en] (Win95; U) MIME-Version: 1.0 To: jkruger@oskar.nanoteq.co.za Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Custom boot.flp References: <37DE5F82.92A87782@oskar.nanoteq.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 mtaylor@cybernet.com 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 > Mr > Nanoteq > Development > > Johan Kruger > Mr > 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message