From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 17 14:25:35 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 49B7B1065683 for ; Thu, 17 Jul 2008 14:25:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C3E258FC1B for ; Thu, 17 Jul 2008 14:25:34 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m6HEOvFZ032292; Thu, 17 Jul 2008 10:25:28 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 17 Jul 2008 10:01:14 -0400 User-Agent: KMail/1.9.7 References: <20080710124658.GA10730@rebelion.Sisis.de> <200807101652.32039.fbsd.hackers@rachie.is-a-geek.net> In-Reply-To: <200807101652.32039.fbsd.hackers@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807171001.14552.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 17 Jul 2008 10:25:28 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/7736/Thu Jul 17 09:11:09 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Mel , Matthias Apitz 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 List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 14:25:35 -0000 On Thursday 10 July 2008 10:52:31 am Mel wrote: > On Thursday 10 July 2008 14:46:58 Matthias Apitz wrote: > > Hello, > > > > I've some server (a 2 years old HP NAT 1000s storage system) and > > I want to drop the installed W2k system and re-install it with > > FreeBSD 7.0R and later use it as a central backup-system with > > Bacula. > > > > The problem is that this server has no CD or DVD device, but can > > (theoretically) boot from external USB CD/DVD (which I don't have > > either); > > > > 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 > > boot: error 1 lba 752976 > > No /boot/kernel/kernel > > Let me ask a stupid question: why is it trying to access an ATA/ATAPI disk, > not an USB (scsi da(4)) disk. Can you boot via: > 0:da(0,a)/boot/kernel/kernel > > Or variants of those, see boot(8) for the syntax explanation. That stuff is all obsolete. For the boot code, all the disks look the same, they are BIOS devices 0x80, 0x81, etc. We just use 0x80 + unit for 'ad' and 'da' and 0 + unit for 'fd'. Before /boot/loader, the 'ad' vs 'da' used to matter as we used that to figure out which driver (and thus which cdev major) to use for / and passed that to the kernel. However, /boot/loader now reads /etc/fstab from / and passes the source of '/' from that as a string to the kernel, so none of the cdev major stuff is needed anymore (and it doesn't work either). The loader handles this better where disks are all called 'disk0', 'disk1', etc. -- John Baldwin