From owner-freebsd-stable@FreeBSD.ORG Tue Jun 12 23:39:15 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0826F16A41F for ; Tue, 12 Jun 2007 23:39:15 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 90AF313C447 for ; Tue, 12 Jun 2007 23:39:14 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp169-208.lns11.adl2.internode.on.net [121.45.169.208]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l5CNcxIS069375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jun 2007 09:09:11 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Wed, 13 Jun 2007 09:08:27 +0930 User-Agent: KMail/1.9.5 References: <9fce1cdb0706120932v21d918fbsa3ee9e4b79a1eb28@mail.gmail.com> In-Reply-To: <9fce1cdb0706120932v21d918fbsa3ee9e4b79a1eb28@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1613736.RYYA32c2FU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200706130908.40022.doconnor@gsoft.com.au> X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: WaW Subject: Re: Can't boot freebsd from usb device - Invalid slice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 23:39:15 -0000 --nextPart1613736.RYYA32c2FU Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 13 June 2007 02:02, WaW wrote: > I'm trying to install freebsd 6.2-STABLE to usb device. After > installation done successfully and reboot i getting messages like > this: > > Invalid slice > Invalid slice > No /boot/loader > > FreeBSD/i386 boot > Default: 0:ad(0,a)/boot/kernel/kernel > boot: How did you install? =46reeSBIE does the following and works.. fdisk -BI ${DEVICE} >> ${LOGFILE} 2>&1 bsdlabel -w -B ${DEVICE}s1 >> ${LOGFILE} 2>&1 newfs -b 4096 -f 512 -i 8192 -L ${FREESBIE_LABEL} -O1 -U ${DEVICE}s1a >> ${= LOGFILE} 2>&1 mount ${DEVICE}s1a ${TMPDIR} echo "Writing files..." cd ${CLONEDIR} find . -print -depth | cpio -dump -v ${TMPDIR} >> ${LOGFILE} 2>&1 echo "/dev/ufs/${FREESBIE_LABEL} / ufs ro 1 1" > ${TMPDIR}/etc/fstab umount ${TMPDIR} Which works for me. I have had difficulty partitioning the flash drive though, either it doesn'= t=20 work properly in Windows XP, or doesn't boot (or both) I don't think it is related to loader limitations as Jeremy alludes too sin= ce it doesn't get as far as the loader, and there is no crash. Although maybe it is since it gets to boot2 (which uses BTX).. Also GRUB only works with i386 :( The patch for BTX is here.. http://people.freebsd.org/~kib/realbtx/ You need to install a new loader and reinstall boot2 (bsdlabel -B) after you've built it. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1613736.RYYA32c2FU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGby5/5ZPcIHs/zowRAuBjAKCrMJmBX2deI5uokBs1/HuOnluS4gCggL9H HhlH+sTA8K/EKChg+udgqaU= =KB+E -----END PGP SIGNATURE----- --nextPart1613736.RYYA32c2FU--