From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 06:59:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 133B7106568A for ; Thu, 2 Oct 2008 06:59:47 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7828FC1D for ; Thu, 2 Oct 2008 06:59:44 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id m926pf0X013513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 2 Oct 2008 08:51:41 +0200 (SAST) (envelope-from jonathan+freebsd-questions@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Thu, 2 Oct 2008 09:03:48 +0200 User-Agent: KMail/1.9.7 References: <48E345AF.6050409@telus.net> <20081001112826.GA20013@icarus.home.lan> <48E3DCB1.3010009@telus.net> In-Reply-To: <48E3DCB1.3010009@telus.net> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -4.378 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: Cannot create custom FreeBSD 7.0 install CD for serial console X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2008 06:59:47 -0000 On Wednesday 01 October 2008 22:25:21 Carl wrote: > Jeremy Chadwick wrote: > > On Wed, Oct 01, 2008 at 02:41:03AM -0700, Carl wrote: > >> I've been trying to create a modified FreeBSD 7.0 install CD that will > >> allow me to do installations entirely via the serial console on a > >> headless system. Lots of digging on the Internet, reading the handbook, > >> and I've gotten nowhere fast. > > > > Try this: > > > > http://jdc.parodius.com/freebsd/pxeboot_serial_install.html > > I was already aware of that solution, but it's not for me. There are > times when I need to do the install and setting up a DHCP server et al > is not viable. Installing FreeBSD via the network has no benefits for me > and I will not be trying to install remotely. All I need is to be able > to do a simple install using the local serial console because a keyboard > and monitor is not practical in the situation. Can anyone tell me where > the mistake is in my process? Look back through the list archives: Martin McCormick and I had a long discussion about this about a year ago (I think at least some of it ended up on this list). Here's an extract from one of the messages: On a system running 6.2-RELEASE, with a 6.2-RELEASE Disc 1 in the CD drive but not mounted: mkdir serialcd tar xvfC /dev/acd0 serialcd These two commands created a directory tree in serialcd containing most of the contents of the CD. There was a ``tar ignoring out-of-order file'' error, and when I mounted the CD and ran diff -qr /cdrom serialcd it reported that RELNOTES.TXT differed - in fact the version in the serialcd directory turned out to have zero length. [I suspect you could probably do this comparison quicker with mtree, and I never did bother to fix it or find out why it was happening] I edited serialcd/boot/loader.conf to include the line console="comconsole" I then ran mkisofs -J -r -b boot/cdboot -no-emul-boot -o serialcd.iso serialcd and got an ISO image, serial.iso, which is about 600MB. The only drawback with this method is that the serial console only cuts in just before the boot menu. I suspect that if you wanted to have a serial console for every stage of the boot you would need to mess about with the ramdisk image on the CD. HTH Jonathan