From owner-freebsd-questions Fri Oct 11 19:39:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE2AA37B401 for ; Fri, 11 Oct 2002 19:39:19 -0700 (PDT) Received: from spoon.beta.com (spoon.beta.com [199.165.180.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38E4B43E3B for ; Fri, 11 Oct 2002 19:39:19 -0700 (PDT) (envelope-from mcgovern@spoon.beta.com) Received: from spoon.beta.com (mcgovern@localhost.beta.com [127.0.0.1]) by spoon.beta.com (8.12.3/8.12.3) with ESMTP id g9C2dC7Z042442 for ; Fri, 11 Oct 2002 22:39:13 -0400 (EDT) (envelope-from mcgovern@spoon.beta.com) Message-Id: <200210120239.g9C2dC7Z042442@spoon.beta.com> To: questions@freebsd.org Subject: PICO/Floppy based FreeBSD question/issue Date: Fri, 11 Oct 2002 22:39:12 -0400 From: "Brian J. McGovern" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've been fighting with creating a boot floppy with some basic utilities on it for most of the afternoon. I have a kgzip'ed kernel, and a crunchgen'ed executable. I've put on it: init mount umount reboot/halt sh ls ifconfig ping traceroute dhcpc (from ports/net/wide-dhcp) I've set up a /dev with fd0 fd0a fd0c rfd0 rfd0a rfd0c console ttyv0 I've set up /etc/rc script that: /sbin/mount -u -o rw / /bin/sh /sbin/umount / /sbin/reboot I've set up /etc/fstab with: /dev/fd0c / ufs rw 0 0 Typically, when I boot the floppy, it fails on the mount command, above, and I eventually get it to a shell. Running: /sbin/mount -u -o rw / yields "/dev/fd0c on /: specified device does not match mounted device". In looking through the mount source, this is caused by an EINVAL return to mount(). My question is why it is doing this. If I boot the hard disk in to single user mode, and run this command, it works like a champ. I have seen two differences in just running /sbin/mount. In one case, I see: fd0c on / (ufs, local, read-only) The other time (if I specify fd(0,c)/kernel on the boot: line), I get /dev/fd0c on / (ufs, local, read-only). This does not change my ability to mount the device r/w. The only kernel option I've seen that may have impact is ROOTDEVNAME. I've added both "ufs:fd0c" and "ufs:/dev/fd0c", but neither seem to have an impact. My guess is I'm missing something dumb. I haven't played with this stuff since 3.X, its getting late, and my head is starting to hurt. Clues welcome :) -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message