Re: Newbie: what to do with disk enumeration?

2007-08-12 Thread Mike Erdely
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?

2007-08-12 Thread Mike Erdely
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?

2007-08-12 Thread Joachim Schipper
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