Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news.ultranet.com!zombie.ncsc.mil!news.mathworks.com!news.kei.com!newsfeed.internetmci.com!news.emf.net!overload.lbl.gov!gracie.lbl.gov!jin
From: jin@gracie.lbl.gov (Jin Guojun[ITG])
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: disklabel for ST15230N under 2.1.x-RELEASE
Date: 1 Aug 1996 17:44:15 GMT
Organization: Lawrence Berkeley Laboratory
Lines: 81
Message-ID: <4tqqdf$l0f@overload.lbl.gov>
References: <4tjfo1$o6p@overload.lbl.gov> <4tlus4$c0o@uriah.heep.sax.de>
NNTP-Posting-Host: gracie.lbl.gov
In article <4tlus4$c0o@uriah.heep.sax.de>,
J Wunsch <joerg_wunsch@uriah.heep.sax.de> wrote:
>jin@gracie.lbl.gov (Jin Guojun[ITG]) wrote:
>
>> Did any one have experience on labelling on Seagate 4.3 GB SCSI disk
>> (ST15230N)? Also, where is the disk-label stored at? Below is the
>> two SCSI disks. They are same type of disks. disklabel does not
>> work, so I use dd to duplicate the entire disk, but the label is not
>> duplicated.
>
>The label will be duplicated if you actually copy the entire disk:
>
> dd if=/dev/rsd0 of=/dev/rsd1 bs=64k
>
>Of course, this assumes number_of_blocks(sd1) >= number_of_blocks(sd0).
Apperently, it is not.
>``disklabel does not work'', well that's like ``my car doesn't go''.
>Can you perhaps be slightly more verbose?
>
>If you wanna re-label the disk, and have a drive fully dedicated to
>BSD, try this:
>
> disklabel -Brw sd1
> disklabel -e sd1
I traced the disklabel and the problem seems to be from SCSI ioctl.
It makes disklabel failure even with already labeled disks.
***************************** /etc/disktab **************************
ST15230N|Seagate HAWK 4 Family 4.2GB SCSI:\
:dt=SCSI:ty=winchester:se#512:nt#32:ns#64:nc#4094:rm#5411: \
:pa#8192:oa#0:ta=4.2BSD:ba#4096:fa#512: \
:pc#8384970:oc#0: \
:pe#8376778:oe#8192:te=4.2BSD:be#4096:fe#512:
**********************************************************************
# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: sd0s1
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 4094
sectors/unit: 8384970
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 8192 0 4.2BSD 0 0 0 # (Cyl. 0 - 3)
c: 8384970 0 unused 0 0 # (Cyl. 0 - 4094*)
e: 8376778 8192 4.2BSD 0 0 0 # (Cyl. 4 - 4094*)
# disklabel -rw sd1 ST15230N
partition c: partition extends past end of unit
partition e: partition extends past end of unit
" disklabel -e sd1 " works only if a disk has been labeled.
It fails when changing the partitions.
# disklabel -e sd1
...
/tmp/EdDk.a014275: 24 lines, 604 characters.
partition e: partition extends past end of unit
re-edit the label? [y]:
--
/-------------- Jin Guojun ------------ v ---- Internet: g_jin@lbl.gov ----\
| Imaging & Distributed Computing | Usenet: ucbvax!g_jin@lbl.gov |
| Lawrence Berkeley Laboratory | Bitnet: -- |
| 50B-2239, Berkeley, CA 94720 - jin%george.lbl.gov@Csa3.LBL.Gov |