From owner-freebsd-questions Mon Sep 18 03:05:13 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA11153 for questions-outgoing; Mon, 18 Sep 1995 03:05:13 -0700 Received: from mail0.iij.ad.jp (root@mail0.iij.ad.jp [192.244.176.61]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id DAA11144 for ; Mon, 18 Sep 1995 03:05:05 -0700 Received: from uucp0.iij.ad.jp (uucp0.iij.ad.jp [192.244.176.51]) by mail0.iij.ad.jp (8.6.12+2.4W/3.3W9-MAIL) with ESMTP id TAA22551; Mon, 18 Sep 1995 19:03:01 +0900 Received: (from uucp@localhost) by uucp0.iij.ad.jp (8.6.12+2.4W/3.3W9-UUCP) with UUCP id TAA29267; Mon, 18 Sep 1995 19:03:06 +0900 Received: from xxx.fct.kgc.co.jp by fender.fct.kgc.co.jp (8.6.12+2.4W/3.4W:95071117) id SAA21735; Mon, 18 Sep 1995 18:45:17 +0900 Received: by xxx.fct.kgc.co.jp (8.6.11/3.3W8:95062916) id SAA02541; Mon, 18 Sep 1995 18:45:15 +0900 Date: Mon, 18 Sep 1995 18:45:15 +0900 From: Toshihiro Kanda Message-Id: <199509180945.SAA02541@xxx.fct.kgc.co.jp> To: Angelo Turetta Cc: freebsd-questions In-reply-to: <30599F6F@trust.stylo.italia.com> Subject: Re: Boot from floppy Sender: owner-questions@freebsd.org Precedence: bulk > I'm running Windows 95 e NT 3.51 on a PC at work where I've installed also > FreeBSD 2.0.5 for my personal use. > 2.0.5 is on wd1s3: now I boot using the installation BOOT floppy and then I > specify wd(1,a)/kernel by hand. > > How can I format a floppy which defaults to wd1a for loading kernel ? > > Thanks. > > Angelo Turetta > Stylo Multimedia - Bologna - ITALY > aturetta@stylo.italia.com Quoting from /usr/share/FAQ/Text/TROUBLESHOOTING: ---8<--------8<--------8<--------8<--------8<--------8<----- This will ensure that you really boot from the second drive. If you've actually installed on a drive other than 1 (the 3rd or 4th drive?), substitute that number in for the above. You will need to enter this EVERY time you reboot from the hard disk. If you're feeling brave and have a srcdist + the requisite experience, you can hack the boot blocks in: /usr/src/sys/i386/boot/biosboot So that this drive you're booting from is hard-coded. Recompile the boot blocks and reinstall them on your drive with `disklabel -B ...' You can then have the default Do The Right Thing. ---8<--------8<--------8<--------8<--------8<--------8<----- And here's a part from my boot.c which boots from /dev/sd0a. You can format a floppy by fdformat(1). /***************************************************************\ * As a default set it to the first partition of the boot * * floppy or hard drive * * Define BOOT_HT to boot sd0 when wd0 is also installed * \***************************************************************/ part = 0; unit = drive & 0x7f; #ifdef BOOT_SD maj = 4; /* { "wd", "hd", "fd", "wt", "sd", 0 }; */ #else maj = (drive&0x80 ? 0 : 2); /* a good first bet */ #endif