*BSD News Article 52880


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!news.emf.net!overload.lbl.gov!lll-winken.llnl.gov!uwm.edu!chi-news.cic.net!newsfeed.internetmci.com!netnews.nwnet.net!news.u.washington.edu!olsenc
From: olsenc@kodiak.ee.washington.edu (Clint Olsen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Disk utility woes
Date: 12 Oct 1995 06:03:00 GMT
Organization: University of Washington, Seattle
Lines: 87
Message-ID: <45ib2k$miq@nntp5.u.washington.edu>
NNTP-Posting-Host: smokey.ee.washington.edu

I enjoy using FreeBSD, but when it comes to partitioning and labeling
(or whatever in the hell BSD calls it), it just plain sucks.  I'm 
really getting tired of struggling with these utilities when fdisk and
newfs used to work just fine for the majority of us.  Now, I get to duke
it out with a crippled fdisk and this disklabel thing (which I have yet 
to figure out).  No, reading the manpage and the FAQ on the WEB did not
help.

If I just run disklabel /dev/rsd0, this is what I get:

# /dev/rsd0:
type: unknown
disk: 
label: 
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1549
sectors/unit: 640584
rpm: 0
interleave: 0
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

3 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:   640584        0    unused        0     0       	# (Cyl.    0 - 312*)
Warning, revolutions/minute 0
boot block size 0
super block size 0

It looks like I got fdisk to properly set up the disk for a FreeBSD 
partition.

******* Working on device /dev/rsd0 *******
parameters extracted from in-core disklabel are:
cylinders=1549 heads=64 sectors/track=32 (2048 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1549 heads=64 sectors/track=32 (2048 blks/cyl)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
<UNUSED>
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 1, size 638975 (311 Meg), flag 80
	beg: cyl 0/ sector 2/ head 0;
	end: cyl 311/ sector 32/ head 63

If I try to run disklabel -e mode, this is the error I get when I try
to finally write a label:

disklabel: ioctl DIOCWDINFO: Operation not supported by device

I never get any farther than this.  I cannot tell if this is a software
problem, a supported hardware problem, or me.

One thing that's strange is that my disks are not detected cleanly on
my Adaptec 6230:

aic0 at 0x340-0x35f irq 11 on isa
aic0 waiting for scsi devices to settle
(aic0:1:0): "CDC 94171-9 0045" type 0 fixed SCSI 1
sd0(aic0:1:0): Direct-Access 312MB (640584 512 byte sectors)
(aic0:2:0): "unknown unknown ????" type 0 fixed SCSI 0
sd1(aic0:2:0): Direct-Access 312MB (640500 512 byte sectors)

I have not been able to get an explanation for this.  I do know that
Linux was able to figure what they were and newfs them properly...

What the heck am I supposed to do?

Thanks,

-Clint