*BSD News Article 50958


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Creating a new file system on EIDE disk ...
Date: 8 Sep 1995 13:52:53 +0200
Organization: Private U**x site, Dresden.
Lines: 36
Message-ID: <42paql$hhf@bonnie.tcd-dresden.de>
References: <42eel1$r64@bilbo.nask.org.pl> <42h57e$1sn@bonnie.tcd-dresden.de> <42mruh$rco@bilbo.nask.org.pl>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Jaroslaw Bazydlo <jarekb@ire.pw.edu.pl> wrote:

(Perhaps Bruce Evans would also comment on this...)

>It still does not work, look:
>igreen# tail -4 /etc/disktab
>ourwd|Western Digital generic 1200 MB IDE:\
>        :ty=winchester:dt=ST506:se#512:nt#12:ns#63:nc#2484:\
>        :pc#1877904:oc#0:bc#8192:fc#1024:td=4.2BSD:
           ^          ^    ^       ^       ^
>
>green# disklabel -r -w /dev/rwd1 ourwd
>ioctl DIOCWLABEL: Operation not supported by device

First: the `c' partition is `magic' (it's an alias for the entire
slice).  You cannot use it for a file system.  Use the `e' partition
to create the file system:

       :pc#1877904:oc#0:\
       :pe#1877904:oe#0:be#8192:fe#1024:te=4.2BSD:

Why do you use /dev/rwd1?  Simply "wd1".

Did you have some form of a (in)valid fdisk table on the drive?  If
so, make sure the slice code won't get confused by zeroing it:

	dd if=/dev/zero of=/dev/rwd1 count=5

...and try to label it afterwards.  Otherwise you might end up with
the slice code verifying the new disklabel against the slices in the
existing fdisk table, and rejecting the disk label if they disagree.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)