From owner-freebsd-stable Tue Apr 10 4: 3: 7 2001 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 0A2A337B424 for ; Tue, 10 Apr 2001 04:03:04 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 10 Apr 2001 12:03:03 +0100 (BST) To: Greg Lehey Cc: Danny Howard , FreeBSD Questions , iedowse@maths.tcd.ie Subject: Re: fdisk & disklabel dont work! In-Reply-To: Your message of "Tue, 10 Apr 2001 11:38:08 +0930." <20010410113808.K64481@wantadilla.lemis.com> Date: Tue, 10 Apr 2001 12:03:03 +0100 (BST) From: iedowse@maths.tcd.ie Message-ID: <200104101203.aa96007@walton.maths.tcd.ie> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -------- In message <20010410113808.K64481@wantadilla.lemis.com>, Greg Lehey writes: >> # disklabel -r -w da0s1 auto >> /kernel: da0: cannot find label (no disk label) >> /kernel: da0: cannot find label (no disk label) >> /kernel: da0s1: cannot find label (no disk label) >> /kernel: da0s1: cannot find label (no disk label) >> /kernel: da0: cannot find label (no disk label) >> /kernel: da0: cannot find label (no disk label) >> /kernel: da0s1: cannot find label (no disk label) >> /kernel: da0s1: cannot find label (no disk label) >> disklabel: ioctl DIOCGDINFO: Invalid argument >> disklabel: auto: unknown disk type >> >> Anyone has any idea? Maybe there's something really subtle that I am doing >> wrong? > >Well, you're not showing much output. The output of disklabel and >fdisk with no options would be interesting, as would the exact kernel >error messages you're seeing. The *relevant* parts of dmesg output >(i.e. relating to the disk probes) would also be interesting. There was a major improvement to the disklabel code just after 4.2-RELEASE, and the above errors suggest that system does not include these changes. For 4.2-RELEASE and earlier, it is possible to use fdisk and disklabel to prepare a new disk in non-dedicated mode, but you must manually construct a text prototype and use the "-R" option. e.g. # cat > protofile type: SCSI # for ide disks use "ESDI" disk: da0s1 bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 522 sectors/unit: 8385930 rpm: 3600 interleave: 1 8 partitions: c: 8385930 0 unused 0 0 ^D # disklabel -R -r da0s1 protofile This is why most people use sysinstall :-) Since the end of November 2000, the version of disklabel in -stable will work correctly with "disklabel -r -w da0s1 auto". Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message