Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jan 2007 23:20:55 +0000
From:      Josef Karthauser <joe@tao.org.uk>
To:        freebsd-fs@freebsd.org
Subject:   Trouble booting second ide drive (gmirror configuration).
Message-ID:  <20070107232055.GA2450@genius.tao.org.uk>
Resent-Message-ID: <20070108221837.GC1749@genius.tao.org.uk>

next in thread | raw e-mail | index | archive | help

--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'm scratching my head trying to work out why I can't boot onto my
second ide drive at the boot: prompt.  I have a perfectly valid
partition on it, which I can mount successfully when the system is
booted from the other disk, but the boot loader says that the disk label
is corrupt.  What am I doing wrong?

So, here are the details.  The machine is a:

    FreeBSD X 5.5-STABLE FreeBSD 5.5-STABLE #7: Mon Oct 2 15:55:35 BST 2006
        joe@X:/usr/obj/usr/src/sys/KERNEL  i386

There are two ide drives, ad0 and ad1.

    # disklabel ad0
    # /dev/ad0s1:
    8 partitions:
    #        size   offset    fstype   [fsize bsize bps/cpg]
      a:  2097152        0    4.2BSD     2048 16384 28552=20
      b:  6291456  2097152      swap                   =20
      c: 240107427        0    unused        0     0         # "raw" part, =
don't edit
      d: 41943040  8388608    4.2BSD     2048 16384 28552=20
      e: 41943040 50331648    4.2BSD     2048 16384 28552=20
      f: 41943040 92274688    4.2BSD     2048 16384 28552=20
      g: 105880000 134217728    4.2BSD     2048 16384 28552=20

    # disklabel ad1
    # /dev/ad1s1:
    8 partitions:
    #        size   offset    fstype   [fsize bsize bps/cpg]
      a:  2097152       16    4.2BSD     2048 16384 28552=20
      c: 240099488        0    unused        0     0         # "raw" part, =
don't edit
    disklabel: partition c doesn't cover the whole unit!
    disklabel: An incorrect partition c may cause problems for standard sys=
tem utilities

The c partition is the wrong size because this is actually a gmirror
partition once gmirror is loaded.  However the device /dev/ad1s1a can be
mounted without problems:

    # mount /dev/ad1s1a /mnt
    # ls /mnt
    .cshrc      SYNC2       data        jails       root        usr
    .profile    bin         dev         lib         sbin        var
    .snap       boot        dist        libexec     stand       webs
    COPYRIGHT   boot.config entropy     mnt         sys
    NEW         cdrom       etc         proc        tmp
    SYNC        compat      home        rescue      users

So when I boot the machine, and attempt to boot the second drive I get
this:


    FreeBSD/i386 boot
    Default: 0:ad(0,a)/boot/loader
    boot: 1:ad(1,1,a)/boot/loaderConsoles: serial port =20
    BIOS drive A: is disk0
    BIOS drive C: is disk1
    BIOS drive D: is disk2
    BIOS 640kB/2095040kB available memory

    FreeBSD/i386 bootstrap loader, Revision 1.1
    (joe@X, Fri Apr 29 09:46:27 BST 2005)

    can't load 'kernel'

    Type '?' for a list of commands, 'help' for more detailed help.
    OK show
    LINES=3D24
    acpi_load=3DYES
    comconsole_speed=3D9600
    console=3Dcomconsole
    currdev=3Ddisk2s1a:
    hint.acpi.0.oem=3DGBT  =20
    hint.acpi.0.revision=3D1
    hint.acpi.0.rsdt=3D0x7fef3000
    interpret=3DOK
    loaddev=3Ddisk2s1a:
    prompt=3D${interpret}
    OK

So it manages to load the boot loader from the correct device, but
somehow fails when it comes to loading the kernel.
I'd really appreciate some suggestions.

Thanks,
Joe

--y0ulUmNC+osPPQO6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iEYEARECAAYFAkWhgFcACgkQXVIcjOaxUBYcNQCdH/oQKeVRQY6KOlNtHH55ifGd
Vb4AoMKZXmRxlmMoUFto0MgXwaI1sQzB
=aR1E
-----END PGP SIGNATURE-----

--y0ulUmNC+osPPQO6--



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