Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2001 11:02:16 +0100 (CET)
From:      volf@oasis.IAEhv.nl (Frank Volf)
To:        freebsd-small@freebsd.org
Subject:   Picobsd and disklabel of a SCSI disk [repost]
Message-ID:  <20010125100216.E22984216@drawbridge.oasis.IAEhv.nl>

next in thread | raw e-mail | index | archive | help

(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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010125100216.E22984216>