cp /mnt/usr/src/etc/boot.cfg.default /mnt/boot.cfg
chroot /mnt update_bootcfg
-pfile="/mnt/usr/src/tools/fdbootparams"
-echo "rootdev=$root; ramimagedev=$root; save" >$pfile
# Save name of CD drive
cddrive="`mount | grep /usr | awk '{ print $1 }' | sed 's/p.*//'`"
echo "cddrive=$cddrive" >>/mnt/usr/etc/rc.package
.PP
You just rebuilt the operating system, including all the kernel and user-mode
parts. That did not take very long, did it?
-If you have a legacy floppy disk drive, you can make a
-bootable floppy for use later by inserting a formatted floppy and typing
-.PP
- make fdboot
-.PP
-When you are asked to complete the path, type:
-.PP
- fd0
-.PP
-This approach does not currently work with USB floppies since there is no MINIX 3 USB
-floppy disk driver yet.
To update the boot image currently installed on the hard disk, type
.PP
make hdboot
named
.BR image .
.TP
-.B make fdboot
-As above and then makes a boot floppy that you can use to restart your
-system with. You are prompted for the floppy device name.
-.TP
.B make hdboot
First makes the image file and then copies it into the directory
.BR /minix .
@echo " make services # Compile and install all services" >&2
@echo " make install # Make image, and install to hard disk" >&2
@echo " make hdboot # Make image, and install to hard disk" >&2
- @echo " make fdboot # Make image, and install to floppy disk" >&2
@echo " make bootable # Make hard disk bootable" >&2
@echo " make nbsd_fetch # Download current NetBSD reference sources" >&2
@echo " make nbsd_diff # Update minix-port.patch in NetBSD sources" >&2
${INSTALL} ${DESTDIR}/boot/minix/.temp/* ${DESTDIR}/multiboot; \
fi
-fdboot:
- exec su root mkboot $@
- @sync
-
install:
${MAKE} includes services hdboot
#!/bin/sh
#
-# mkboot 2.0 - make boot floppy, make root device bootable, etc.
+# mkboot 2.0 - make root device bootable, etc.
# Author: Kees J. Bot
usage() {
- echo "Usage: $0 [bootable | hdboot | fdboot [device]]" >&2
+ echo "Usage: $0 [bootable | hdboot]" >&2
exit 1
}
# Check arguments.
case "$#:$1" in
-1:bootable | 1:hdboot | [12]:fdboot )
+1:bootable | 1:hdboot )
action=$1 dev=$2 size=$3
;;
*) usage