Newbie: what to do with disk enumeration?
Hi there, I had machine with Linux in the first PATA disk (wd0) and OpenBSD v4.1 in the second PATA disk (wd1). OpenBSD was booted from Grub menu (hd1,3). I added 3rd harddisk to my machine by connecting it into Promise SATA378 controller. The Linux boots normally and the new disk is visible as /dev/sd0. The OpenBSD kernel boots but re-enumerates disks differently showing lines like (I skipped some): dkcsum: wd0 matches BIOS drive 0x82 dkcsum: wd1 matches BIOS drive 0x80 dkcsum: wd2 matches BIOS drive 0x81 Can't open /dev/rwd1a: Device not configured Enter pathname of shell or RETURN for sh: How should I proceed? Should I remove the SATA disk = manually change wd1s to wd2s in my /etc/fstab = put SATA back = reboot. Or can I fix enumeration from the proposed Shell -prompt only. -pekka-
Re: Newbie: what to do with disk enumeration?
On Sun, Aug 12, 2007 at 05:34:37PM +0300, Pekka Niiranen wrote: Can't open /dev/rwd1a: Device not configured Enter pathname of shell or RETURN for sh: Since you're getting the kernel to load, it sounds to me that all you have to do is fix your fstab. -ME
Re: Newbie: what to do with disk enumeration?
On Sun, Aug 12, 2007 at 12:17:53PM -0400, Mike Erdely wrote: On Sun, Aug 12, 2007 at 05:34:37PM +0300, Pekka Niiranen wrote: Can't open /dev/rwd1a: Device not configured Enter pathname of shell or RETURN for sh: Since you're getting the kernel to load, it sounds to me that all you have to do is fix your fstab. I left off a helpful piece of info... (since / won't mount): Reboot and type: bsd.rd at the boot prompt (you did install that file, right?). Then, manually mount your / partition to /mnt and fix /mnt/etc/fstab. You could run: sed -e 's#/dev/wd1#/dev/wd2#' /mnt/etc/fstab /tmp/fstab Then: cp /tmp/fstab /mnt/etc/fstab -ME
Re: Newbie: what to do with disk enumeration?
On Sun, Aug 12, 2007 at 12:22:37PM -0400, Mike Erdely wrote: On Sun, Aug 12, 2007 at 12:17:53PM -0400, Mike Erdely wrote: On Sun, Aug 12, 2007 at 05:34:37PM +0300, Pekka Niiranen wrote: Can't open /dev/rwd1a: Device not configured Enter pathname of shell or RETURN for sh: Since you're getting the kernel to load, it sounds to me that all you have to do is fix your fstab. I left off a helpful piece of info... (since / won't mount): Reboot and type: bsd.rd at the boot prompt (you did install that file, right?). Then, manually mount your / partition to /mnt and fix /mnt/etc/fstab. You could run: sed -e 's#/dev/wd1#/dev/wd2#' /mnt/etc/fstab /tmp/fstab Then: cp /tmp/fstab /mnt/etc/fstab Rebooting to bsd.rd is not actually necessary, the kernel will mount / even if /etc/fstab doesn't match. (After all, the kernel can't read /etc/fstab until / is mounted... but it doesn't need write access at first.) Which is not to say that rc will not complain when it tries to mount a wrong disk on / in read-write mode - in fact, that's exactly what happens above. Joachim -- TFMotD: urio (4) - Diamond Multimedia Rio MP3 players