From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 10 13:17:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64BF8106567A for ; Thu, 10 Jul 2008 13:17:23 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 03E798FC26 for ; Thu, 10 Jul 2008 13:17:22 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Thu, 10 Jul 2008 15:17:21 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m6ADHLGZ011741 for freebsd-hackers@freebsd.org; Thu, 10 Jul 2008 15:17:21 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Thu, 10 Jul 2008 15:17:16 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20080710131716.GA11658@rebelion.Sisis.de> References: <20080710124658.GA10730@rebelion.Sisis.de> <200807101301.m6AD1sCj031951@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200807101301.m6AD1sCj031951@lurza.secnetix.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 10 Jul 2008 13:17:21.0880 (UTC) FILETIME=[49588D80:01C8E28F] Subject: Re: error 1 lba 752976 while booting from USB key to install X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 13:17:23 -0000 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 </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 - 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