Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2008 10:01:14 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Mel <fbsd.hackers@rachie.is-a-geek.net>, Matthias Apitz <matthias.apitz@oclc.org>
Subject:   Re: error 1 lba 752976 while booting from USB key to install
Message-ID:  <200807171001.14552.jhb@freebsd.org>
In-Reply-To: <200807101652.32039.fbsd.hackers@rachie.is-a-geek.net>
References:  <20080710124658.GA10730@rebelion.Sisis.de> <200807101652.32039.fbsd.hackers@rachie.is-a-geek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807171001.14552.jhb>