Re: FreeBSD boot menu is missing



"Peter Steele" <psteele@xxxxxxxxxxxxx> writes:
The problem is I was unable to get multiple slices defined in a
sysinstall config script. I tried many variations of parameters to
pump into diskPartitionEditor and diskLabelEditor so that we could
create three slices during the install but I couldn't find anything
that worked. So I ended up having to create a single full disk slice
to install the OS onto, and then in a post commit step slice the disks
up as we want them and copy the OS over. I couldn't find a single
example how to create multiple slices in a sysinstall config file. If
you know how to do this, I'd love to see it.

I wouldn't use a sysinstall script.

Set up a file system (say /nfsroot) on an NFS server in your lab.

Install FreeBSD on /nfsroot: either make installworld DESTDIR=/nfsroot
followed by the correct mergemaster incantation, or just run the
install.sh script in the base and kernels directories:

# cd /mnt/7.0-RELEASE/base
# env DESTDIR=/nfsroot sh install.sh
# cd ../kernels
# env DESTDIR=/nfsroot sh install.sh GENERIC

Put a complete copy of the release CD somewhere in /nfsroot so you can
access it from the client later.

Make sure /nfsroot is listed in /etc/exports with the correct
permissions (showmount -e is your friend)

Copy /nfsroot/boot/pxeboot to /tftpboot/pxeboot and enable tftpd.

Set up a DHCP server on your lab subnet or whatever, with next-server
set to point at your NFS+TFTP server, filename set to "pxeboot", and
option root-path set to /nfsroot.

Replace /nfsroot/etc/rc with a shell script that performs the
installation just the way you like it. Your script should probably
start by setting up memory filesystems for /tmp and /var, otherwise
stuff like disklabel might not work.

Connect the new box to the lab network, turn it on, enable PXE, and let
it boot.

If you don't want to use PXE + NFS, you can create an installation CD
with almost the exact same procedure: create a directory, follow the
above procedure to populate it (just ignore the parts about NFS, TFTP
and DHCP), create a bootable ISO image of that directory, burn it to a
DVD, and boot the box from that DVD. The correct mkisofs incantation is:

mkisofs -JR -b /cdroot/boot/cdboot -o cd.iso /cdroot

If you can't use a DVD, you'll have to leave stuff out - packages and
the ports and src distributions are obvious candidates. A full i386
7.0R live CD with a copy of the installation CD minus packages and src
should fit on a regular CD.

With the proper controller and drive, yes, FreeBSD does support hot
swap, to a point. Let's say for example that you have a file system
mounted on a drive and that drive dies. You can pull it and put in a
new one, but FreeBSD will not let you unmount the file system on the
original drive. Even umount -f fails. We have to reboot to get the old
mount point released, and we haven't found any way around this.

That's an entirely different matter... that's why you use gmirror or
graid or zfs or whatever, so you can swap out the drive online.

DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • How to use scripting to secure your Win2K network--some examples
    ... Software Installation script: ... The purpose of this script is to ... Let's see how service packs and hotfixes are handled in the script: ... NT4 in the way the local system account accesses network resources. ...
    (NT-Bugtraq)
  • Re: [Info-Ingres] jdbc connection problem
    ... Initially you run a setup on a clean machine with the script recording ... I obtained mixed results where there was already an installation present ... @echo starting OpenROAD installation ... Subject: jdbc connection problem ...
    (comp.databases.ingres)
  • Installation of software, and security. . .
    ... installation in Windows and various package managers. ... A setup.exe program coded by some third party such as Real Networks ... A .msi Microsoft Installer package is unpacked, and a script coded by ...
    (Bugtraq)
  • pop-forum Ready for testing: new version of PC/Linux Poplog for testing (V15.6a)
    ... This change broke the install script included with Poplog v15.6, ... I have tried to make the new installation script equally happy with ... either of which which can be run to download and install everything ...
    (comp.lang.pop)
  • V880 boot problems
    ... Configuring /dev and /devices ... Starting Solaris installation program... ... Using finish script: scripts/Finish_script ... Executing JumpStart preinstall phase... ...
    (SunManagers)