*BSD News Article 76327


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsrelay.netins.net!news.dacom.co.kr!news.kreonet.re.kr!news.postech.ac.kr!usenet.kornet.nm.kr!ames!enews.sgi.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: disklabel woes with mixed SCSI/IDE disks
Date: 17 Aug 1996 11:44:12 GMT
Organization: Private BSD site, Dresden
Lines: 65
Message-ID: <4v4bac$au3@uriah.heep.sax.de>
References: <4urg7c$r3g@galaxy.ee.rochester.edu>
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.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

iyengar@galaxy.ee.rochester.edu (Manu Iyengar) wrote:

> However, disklabel from sysinstall hurls either because:
> a) It wants something to mount at /, or
> b) It can't mount something at /, since it's already in use.

That's been a typical symptom for /stand/sysinstall on a 2.1 system.

> I'm at a loss on what 'type' to provide disklabel from the command line. The
> output from 'disklabel -r wd0s2' is below. This is probably hosed since I
> tried various things.

> --- disklabel -r wd0s2 ---
> # /dev/rwd0s2:
> type: ESDI
> disk: wd0s2
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 64
> sectors/cylinder: 4032
> cylinders: 610
> sectors/unit: 2459520
> 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]
>   c:  2459520        0    unused        0     0         # (Cyl.    0 - 609)
>   e:  2459520        0    4.2BSD        0     0     0   # (Cyl.    0 - 609)
> ---

If your space is indeed 1200 MB, this label is already almost correct.
You could run

	disklabel -e wd0s2

and edit the last line to:

  e:  2459520        0    4.2BSD    1024  8192

which are suitable defaults for the file system parameters.  Then, you
can

	newfs -d0 /dev/rwd0s2e

followed by

	mount /dev/wd0s2e /new/mount/point

You may want to edit /etc/fstab to have the system mounting the new
file system automatically at boot time.

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