--------
In message <[EMAIL PROTECTED]>, 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message