Can't boot freebsd from usb device - Invalid slice

Daniel O'Connor doconnor at gsoft.com.au
Tue Jun 12 23:39:15 UTC 2007


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?
FreeSBIE 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 
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 since
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.

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070612/40167765/attachment.pgp


More information about the freebsd-stable mailing list