error 1 lba 752976 while booting from USB key to install

Matthias Apitz guru at unixarea.de
Thu Jul 10 13:17:23 UTC 2008


El día Thursday, July 10, 2008 a las 03:01:54PM +0200, Oliver Fromme escribió:

> Matthias Apitz wrote:
>  > so I cam up with the idea to boot from that USB key I have used to
>  > install 7.0-REL on that eeePC, i.e. the USB key works fine in any
>  > laptop; on the HP NAT 1000s storage system it says:
>  > 
>  > FreBSD/i386
>  > Default: 0:ad(0,a)/boot/kernel/kernel
> 
> Hm.  Strange.  The boot0 code should load /boot/loader,
> not the kernel.  (While it is possible to load the kernel
> directly under certain conditions, AFAIK, it is better
> to go the "official" way and let the bootloader do its
> job.)
> 
> Have you modified the boot sequence on that USB stick in
> a special way?  Please make sure that it contains the
> proper infrastructure, i.e. a /boot directory with the
> loader, a kernel subdirectory etc.

I've created the USB key like this (more or less) and did not specified
or changed anything in the boot-sequence:

# dd if=/dev/zero of=/dev/da0 bs=1m
# fdisk -BI /dev/da0
# bsdlabel -wB /dev/da0s1
# export EDITOR=/mnt2/usr/bin/vi
# bsdlabel -e /dev/da0s1
# newfs -m 0 -o space /dev/da0s1a
# mount /dev/da0s1a /mnt
# export DESTDIR=/mnt
# cd /a/cdrom/7.0-RELEASE
# for i in base manpages catpages
  do
    cd $i; echo y|./install.sh; cd ..;
  done
# rmdir /mnt/boot/kernel
# cd /a/cdrom/7.0-RELEASE kernels;
# cat generic.??|tar --unlink -xpzf - -C /mnt/boot
# cd /mnt/boot && mv GENERIC kernel
# echo "/dev/da0s1a  /  ufs  rw,noatime  1  1" >/mnt/etc/fstab

# cat <<EOFRCCONF >/mnt/etc/rc.conf.local
#!/bin/sh
tmpmfs="YES"
tmpsize="128m"
varmfs="YES"
varsize="128m"
populate_var="YES"
hostname="eeePC"
keyrate="fast"
keymap="german.iso"
EOFRCCONF
# chmod 0755 /mnt/etc/rc.conf.local
# chroot /mnt /usr/bin/passwd root

and again: the USB key works fine in the eeePC 900 and other laptops I
have;

here is what is in /mnt/boot:

rebelion# ls -l /mnt/boot /mnt/boot/kernel/kernel
-r-xr-xr-x  1 root  wheel  9051823 29 jun 16:52 /mnt/boot/kernel/kernel

/mnt/boot:
total 710
-r--r--r--  1 root  wheel    7636 24 feb 18:52 beastie.4th
-r--r--r--  1 root  wheel    8192 24 feb 18:52 boot
-r--r--r--  1 root  wheel     512 24 feb 18:52 boot0
-r--r--r--  1 root  wheel     512 24 feb 18:52 boot0sio
-r--r--r--  1 root  wheel     512 24 feb 18:52 boot1
-r--r--r--  1 root  wheel    7680 24 feb 18:52 boot2
-r--r--r--  1 root  wheel    1201 24 feb 18:52 cdboot
drwxr-xr-x  2 root  wheel     512 24 feb 18:52 defaults
-r--r--r--  1 root  wheel    1739 24 feb 18:53 device.hints
drwxr-xr-x  2 root  wheel     512 24 feb 18:49 firmware
-r--r--r--  1 root  wheel    2249 24 feb 18:52 frames.4th
drwxr-xr-x  2 root  wheel   26624 29 jun 17:23 kernel
drwxr-xr-x  2 root  wheel   25600 24 feb 21:16 kernel.orig
-r-xr-xr-x  1 root  wheel  253952 24 feb 18:52 loader
-r--r--r--  1 root  wheel    7545 24 feb 18:52 loader.4th
-rw-r--r--  1 root  wheel     116 29 jun 16:46 loader.conf
-r--r--r--  1 root  wheel   15219 24 feb 18:52 loader.help
-r--r--r--  1 root  wheel     385 24 feb 18:52 loader.rc
-r--r--r--  1 root  wheel     512 24 feb 18:52 mbr
drwxr-xr-x  2 root  wheel     512 24 feb 18:49 modules
-r--r--r--  1 root  wheel  256000 24 feb 18:52 pxeboot
-r--r--r--  1 root  wheel     692 24 feb 18:52 screen.4th
-r--r--r--  1 root  wheel   36435 24 feb 18:52 support.4th
drwxr-xr-x  2 root  wheel     512 24 feb 18:49 zfs

> If it still fails, I suggest you try a more recent
> version of FreeBSD.  I don't know if it's related to
> your problem, but there has been a significant change
> in the boot loader code (so-called BTX) that fixes
> USB-booting on certain machines.  You can either csup
> RELENG_7 and build a fresh /boot directory, or fetch
> it from the June snapshot.  Then replace /boot/loader
> on your USB stick with the new one, and don't forget
> to re-install the bootblocks, too (bsdlabel -B).

ok;

	matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
«...una sola vez, que es cuanto basta si se trata de verdades definitivas.»
«...only once, which is enough if it has todo with definite truth.»
José Saramago, Historia del Cerca de Lisboa


More information about the freebsd-hackers mailing list