From owner-freebsd-small Thu Jan 25 2: 5:31 2001 Delivered-To: freebsd-small@freebsd.org Received: from news.IAEhv.nl (news.IAE.nl [194.151.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 31C9737B402 for ; Thu, 25 Jan 2001 02:05:08 -0800 (PST) Received: (from uucp@localhost) by news.IAEhv.nl (8.9.1/8.9.1) with IAEhv.nl id LAA03255 for freebsd-small@freebsd.org; Thu, 25 Jan 2001 11:05:06 +0100 (MET) Received: by drawbridge.oasis.IAEhv.nl (Postfix, from userid 226) id E22984216; Thu, 25 Jan 2001 11:02:16 +0100 (CET) Subject: Picobsd and disklabel of a SCSI disk [repost] To: freebsd-small@freebsd.org Date: Thu, 25 Jan 2001 11:02:16 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20010125100216.E22984216@drawbridge.oasis.IAEhv.nl> From: volf@oasis.IAEhv.nl (Frank Volf) Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (I'm sending this again, because I never got a copy back myself, nor did I see it in the mail archives. If you go two copies, sorry for the inconvenience ;-) Hi, I created a custom picobsd bootflop, which allows one to boot a system, enter an IP address on the console and then telnet to it. The goal of this floppy is to remotely install a system, where the local involvement consists only in booting the system with the bootflop, and configuring the ethernet interface. This works great, except for one weird problem. I can't disklabel the disks (the disks are either unused or have a non FreeBSD disklabel on it). I use the disklabel procedure as described in disklabel(8). The boot flop is created on FreeBSD 4.2-STABLE. The transcript of the session is as follows: # dd if=/dev/zero of=/dev/da0 bs=512 count=32 32+0 records in 32+0 records out 16384 bytes transferred in 0.354870 secs (46169 bytes/sec) # fdisk -BI da0 ******* Working on device /dev/da0 ******* fdisk: invalid fdisk partition table found # dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 32+0 records in 32+0 records out 16384 bytes transferred in 0.354167 secs (46261 bytes/sec) # disklabel -w -B da0s1 auto disklabel: ioctl DIOCGDINFO: Invalid argument disklabel: auto: unknown disk type ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is where it fails. Now comes the weird part. If I boot the system using the 4.2 RELEASE bootflop and use sysinstall to label and partition the system it works fine. So it is not the case that the bios/harddisk driver do not support the 'auto' disk type. As far as I can see, there are two possibilities: 1) sysinstall uses a different method for labeling/partitioning the disk 2) something is different or missing on my picobsd floppy, but I have no clue what it is (device, program, out of memory, kernel config) Does anyone has a clue what is going on? Does the ioctl provide a clue to a SCSI expert? Any help is appreciated, Frank To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message