Hello. 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: typing "da(0,a)/boot/loader" and many other variants had no success. Also i tried to install manually, allocating full disk for bsdlabel slice - same result. My motherboard is asus a8n-sli premium, and it is capable of booting from usb. Recently i successfully installed and booted opensuse from the same usb device. Is there any solution to make freebsd boot from usb device? PS as usb device i mean my usb flash and ata disk with external case, i tried both of them. -- Vladimir K. aka WaW
On Tue, Jun 12, 2007 at 08:32:03PM +0400, WaW wrote:> Hello. > 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: > > typing "da(0,a)/boot/loader" and many other variants had no success. > Also i tried to install manually, allocating full disk for bsdlabel > slice - same result. > > My motherboard is asus a8n-sli premium, and it is capable of booting > from usb. Recently i successfully installed and booted opensuse from > the same usb device. > > Is there any solution to make freebsd boot from usb device? > > PS as usb device i mean my usb flash and ata disk with external case, > i tried both of them.I believe this has been discussed before. The conclusions I remember being reached were that the FreeBSD bootloader has issues when trying boot USB disks (pendrives, CF, hard disks, etc.). Using something like GRUB (yes, to boot FreeBSD) instead apparently works fine. It's in ports; sysutils/grub. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
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