Subject: Installboot with Qemu serial console?
To: None <netbsd-users@netbsd.org>
From: Zachary Kline <Z_kline@hotmail.com>
List: netbsd-users
Date: 11/17/2007 17:08:34
Hi,
I ran into a somewhat annoying problem today with my virtualized NetBSD
system. The fact of it is that I made a simple one-letter mistake in
/etc/fstab which prevented /usr from mounting properly. I managed to fix it
by putting in the install floppy I'd used to boot initially and running
/bin/sh, mounting the file system and editing the file with ed. I know this
works, but it isn't as ellegant as I'd like. The reason I had to do it this
way was that I couldn't get the boot prompt to show up. Kermit just wasn't
fast enough, or I just wasn't fast enough. I suspect the timeout is 0
seconds by default.
I tried installboot to fix the problem, but can't do it from my system
in a normal state because the root filesystem is busy, and any attempt
installboot makes to mount it read/write returns that error.
All that being said, I wonder if anybody could give me a way to do this?
I saw the following in installboot(8):
installboot -v -o timeout=30 /dev/wd0a /usr/mdec/bootxx_ffsv1
(If Outlook Express screws up the formatting on that above line, I
apologize.) Anyway, that didn't work for me as I expected, though I did add
console=com0, for the serial console.
Thanks much, and sorry for the sillyness of this question.
All the best,
Zack.