Trouble booting second ide drive (gmirror configuration).

Josef Karthauser joe at tao.org.uk
Sun Jan 7 15:50:46 PST 2007


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 at 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 
      b:  6291456  2097152      swap                    
      c: 240107427        0    unused        0     0         # "raw" part, don't edit
      d: 41943040  8388608    4.2BSD     2048 16384 28552 
      e: 41943040 50331648    4.2BSD     2048 16384 28552 
      f: 41943040 92274688    4.2BSD     2048 16384 28552 
      g: 105880000 134217728    4.2BSD     2048 16384 28552 

    # disklabel ad1
    # /dev/ad1s1:
    8 partitions:
    #        size   offset    fstype   [fsize bsize bps/cpg]
      a:  2097152       16    4.2BSD     2048 16384 28552 
      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 system 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  
    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 at 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=24
    acpi_load=YES
    comconsole_speed=9600
    console=comconsole
    currdev=disk2s1a:
    hint.acpi.0.oem=GBT   
    hint.acpi.0.revision=1
    hint.acpi.0.rsdt=0x7fef3000
    interpret=OK
    loaddev=disk2s1a:
    prompt=${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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20070107/e79f90c1/attachment.pgp


More information about the freebsd-fs mailing list