Subject: Boot isues with SATA drives on P4C800-E Deluxe
To: None <port-i386@netbsd.org>
From: Sebastien Erard <sebastien_erard@hotmail.com>
List: port-i386
Date: 12/02/2003 19:55:45
Hi,

I have some trouble booting NetBSD on my new P4C800-E Deluxe.
I have two serial ata hard drives connected to the ICH5R SATA
controller. Both work fine under WinXP.

I can boot NetBSD from the second drive (wd1) without trouble.
I am then able to access all my partitions on the first drive,
FAT32, NTFS and BSDs. But I can not boot NetBSD from the first
drive (wd0), whatever the method I use (via GRUB or the native
NetBSD MBR and second stage boot loader). THe system simply
hangs, and I have to reboot it the hard way (reset switch,
CTRl-ALT-DEL does not work). From the GRUB boot shell, I can
even display the full partition table of the first drive, it
hangs too.

It seems to be related to the BIOS geometry (see below for
details). I can not changee it for the first drive. It's the
only difference I can see from one drive to the other.

Any help on this would be appreciated.

Sebastien

-------------------------------------------------
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 238216, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 240121728

BIOS disk geometry:
cylinders: 1024, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 240121728

Partition table:
0: Primary DOS with 32 bit FAT (sysid 11)
    start 63, size 10490445 (5122 MB, Cyls 0-10407/4/1)
1: OS/2 HPFS or NTFS or QNX2 or Advanced UNIX (sysid 7)
    start 10490508, size 73882872 (36076 MB, Cyls 10407/4/1-83703/12/1), 
Active
2: <UNUSED>
3: NetBSD (sysid 169)
    start 84373380, size 155748348 (76049 MB, Cyls 83703/12/1-238216)
--------------------------------
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a:    524664  84373380     4.2BSD   1024  8192     0  # (Cyl.  83703*-  
84224*)
b:    525168  84898044       swap                     # (Cyl.  84224*-  
84745*)
c: 155748348  84373380     unused      0     0        # (Cyl.  83703*- 
238215)
d: 240121728         0     unused      0     0        # (Cyl.      0 - 
238215)
e:  10490445        63      MSDOS                     # (Cyl.      0*-  
10407*)
f:  73882872  10490508       NTFS                     # (Cyl.  10407*-  
83703*)
g:    524664  85423212     4.2BSD   1024  8192     0  # (Cyl.  84745*-  
85265*)
h:  10485760  85947876       RAID                     # (Cyl.  85265*-  
95668*)
i: 143688092  96433636       RAID                     # (Cyl.  95668*- 
238215)
-------------------------------------------------
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 238216, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 240121728

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 240121728

Partition table:
0: OS/2 HPFS or NTFS or QNX2 or Advanced UNIX (sysid 7)
    start 63, size 84373317 (41198 MB, Cyls 0-5252)
1: <UNUSED>
2: <UNUSED>
3: NetBSD (sysid 169)
    start 84373380, size 155748348 (76049 MB, Cyls 5252-14946/226/1)
--------------------------------
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a:   1049328  84373380     4.2BSD   1024  8192     0  # (Cyl.  83703*-  
84744*)
b:    525168  85422708       swap                     # (Cyl.  84744*-  
85265*)
c: 155748348  84373380     unused      0     0        # (Cyl.  83703*- 
238215)
d: 240121728         0     unused      0     0        # (Cyl.      0 - 
238215)
e:  84373317        63       NTFS                     # (Cyl.      0*-  
83703*)
h:  10485760  85947876       RAID                     # (Cyl.  85265*-  
95668*)
i: 143688092  96433636       RAID                     # (Cyl.  95668*- 
238215)
-------------------------------------------------

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail