*BSD News Article 61962


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!yarrina.connect.com.au!news.mel.aone.net.au!imci4!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!narses.hrz.tu-chemnitz.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: disklabel: ioctl DIOCWDINFO: Operation not supported by device
Date: 21 Feb 1996 23:27:34 GMT
Organization: Private BSD site, Dresden
Lines: 43
Message-ID: <4gg9p6$l8t@uriah.heep.sax.de>
References: <4gcnj3$jbg@maureen.teleport.com>
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

nailers@teleport.com (Blake Swensen) writes:

> A SCSI drive on my system failed so I replaced it with an identical drive 
> after writing down all the disklabel and partition information.

Your best bet would have been (assuming sd0 is the old and sd1 the new
drive):

dd if=/dev/rsd0 of=/dev/rsd1 count=1000

in single-user mode.  After this, newfs the file system on the new
disk.

> After writing the FreeBSD slice using FreeBSD fdisk (which appears
> to have worked), and running disklabel, I get the error: disklabel:
> ioctl DIOCWDINFO: Operation not supported by device.

Which device have you been using for fdisk and disklabel?

Btw., you could have saved the old label in a file, and restored it
with ``disklabel -r -R sd1 backupfile''.

> There are no DOS partitions on the drive... slice 0 starts at 0 and
> goes to the end of the drive. I want to create only one FreeBSD
> partition (e:) which encompasses the entire slice (yes, I know that
> I need c: and d:).

You don't need a `d' partition anymore.

Should all else fail, get /sbin/disklabel from a recent FreeBSD-current,
and do:

	disklabel -B -r -w sd1 auto
	disklabel -e sd1	# to edit the partition table

This will occupy the entire drive for FreeBSD.

-- 
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. ;-)