Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2007 09:08:27 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-stable@freebsd.org
Cc:        WaW <wawaka@gmail.com>
Subject:   Re: Can't boot freebsd from usb device - Invalid slice
Message-ID:  <200706130908.40022.doconnor@gsoft.com.au>
In-Reply-To: <9fce1cdb0706120932v21d918fbsa3ee9e4b79a1eb28@mail.gmail.com>
References:  <9fce1cdb0706120932v21d918fbsa3ee9e4b79a1eb28@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706130908.40022.doconnor>