On Fri, Jul 22, 2005 at 05:38:54PM -0500, bofh wrote: >On 7/20/05, Ryan Yu <[EMAIL PROTECTED]> wrote: >> >> I'm having a problem adding a SATA drive to my current obsd configuration. >> I >> have two IDE drives in the box. A 12gig and a 40gig. I have the /, /usr, >> /var, /tmp and swap on the 12gig and /home on the 40 gig. I just purchased >> a >> SATA drive with a pci controller card to add to the box. When I do add it >> to >> the box, the bios recognizes the disk and everything, and then it asks me >> which device to boot from at which point I choose the IDE Master. The obsd >> kernel boots fine, but then when it tries to mount the filesystems, there >> are >> errors. The problem is that when I add the SATA drive, the device ID >> becomes >> wd0. >> > >Sounds like a bios configuration. You probably have one of the newer bioses >which allows you to choose from multiple boot devices, and if it fails, it >falls through to the next. That's why you can boot. However, because the >sata drive (probably because the pci controller is given priority) was the >first drive "seen", it became wd0. > >All you have to do is to go into the bios, and set the boot priority such >that the ide drive boots before everything else.
My particular BIOS (and I'm not the OP) will allow disabling the first or second (pata) ide channel, and/or the on-board sata controller. In the boot order, it gives hd-0, hd-1, ... cdrom, lan, scsi, as options (no sata). With everything enabled, it starts counting disks from the PATA controller, then on-board SATA, then pci controllers, when OpenBSD re-mounts the root fs in rw mode, it counts disks from the outside of pci controllers, then on-board SATA, then on-board PATA. So the root fs that gets mounted rw is not necessarily the same root ro that it was booted from. // George -- George Georgalis, systems architect, administrator <IXOYE>< http://galis.org/ cell:646-331-2027 mailto:[EMAIL PROTECTED]