*BSD News Article 57507


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to add a new SCSI drive?
Date: 20 Dec 1995 22:59:06 GMT
Organization: Private BSD site, Dresden
Lines: 28
Message-ID: <4ba4fq$bls@uriah.heep.sax.de>
References: <4b8cik$40j@newsnewsnews>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

pete@inquo.net (Pete Kruckenberg) writes:

> So far, I've low-level formatted the drive, and tried to do a disklabel 
> -e /dev/sd2 on it (I'd already done /dev/MAKEDEV sd2s1a). After editting 
> the file as best I can, it tells me:
> 
>   disklabel: ioctl DIOCWDINFO: Operation not supported by device
> 
> What am I doing wrong here?

You should

	n e v e r

use the block device unless you're going to mount a file system.

disklabel -r -B -w sd2 <disktype from disktab>

is the magic sequence.  (It will actually use /dev/rsd2 then, but
that's not very important.  I think it used to pick /dev/rsd2d in
previous systems.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)