Casper H.S. Dik wrote:
> David Kirkby <david.kirkby@onetel.net> writes:
>
>
>>A friend has a Sun barcoded (540-4689) hard drive, made by Fujitsu.
>>Unless I am very much mistaken, the disk is half the capacity marked on
>>the drive.
>
>
> Looks like it was labelled incorrectly by someone.
>
>
> Clear the label and relabel
Hi Casper,
How is the best way to clear the label? You posted something some time
back in 2002
http://groups.google.co.uk/group/com...6bef3587322903
and said:
"What you could try is zap the label with dd, assuming you have no
data in the disk:
dd if=/dev/zero of=/dev/dsk/cX...... count=16
and then re-run format."
I would have thought one needs to write to the raw device
(/dev/rdsk/c?t?d?s2), but perhaps I am wrong.
Will it be necessary to boot from a CD to do this? The disk is the boot
disk.
The problem I have is explaining to a friend how to do it, so if I can
ssh to the box, and do it myself, rather than explain every single
command to him, it would be preferable! His UNIX knowledge is next to zero.
> (will lose all data except when the new label
> matches the same partitions)
Chris Lawson said:
# prtvtoc -s /dev/rdsk/{identical disk id}s2 > tmp_file
# fmthard -s tmp_file /dev/rdsk/{screwed up disk}s2
which looks attractive if it will work. We have a second identical disk,
which unlike this one does work at its full capacity.
>
> Casper
Dave Kirkby
--
David Kirkby,
G8WRB
Please check out
http://www.g8wrb.org/
of if you live in Essex
http://www.southminster-branch-line.org.uk/