Date: Tue, 10 Apr 2001 12:01:04 +0100 From: Ian Dowse <iedowse@maths.tcd.ie> To: Greg Lehey <grog@lemis.com> Cc: Danny Howard <dannyman@tellme.com>, FreeBSD Questions <questions@FreeBSD.org>, iedowse@maths.tcd.ie Subject: Re: fdisk & disklabel dont work! Message-ID: <200104101201.aa29289@salmon.maths.tcd.ie> In-Reply-To: Your message of "Tue, 10 Apr 2001 11:38:08 %2B0930." <20010410113808.K64481@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200104101201.aa29289>