*BSD News Article 76146


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!news-res.gsl.net!news.gsl.net!portc01.blue.aol.com!newsstand.cit.cornell.edu!cornellcs!rochester!hood.cc.rochester.edu!ceas.rochester.edu!ceas.rochester.edu!not-for-mail
From: iyengar@galaxy.ee.rochester.edu (Manu Iyengar)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: disklabel woes with mixed SCSI/IDE disks
Date: 13 Aug 1996 23:12:44 -0400
Organization: University of Rochester, School of Engineering
Lines: 55
Message-ID: <4urg7c$r3g@galaxy.ee.rochester.edu>
NNTP-Posting-Host: galaxy.ee.rochester.edu
Summary: How do you reconfigure partitions with disklabel?

Greetings, all. I seek enlightenment :)

Machine:
	standard-issue PCI Pentium box, FreeBSD 2.1.0-RELEASE
	Adaptec 1542 with a Seagate drive at 0 (boot disk)
	WD EIDE drive off on-board IDE controller.

IDE drive is disabled in the BIOS, which is how the box boots off sd0.
sd0 is a dedicated drive.

So, the question - 
I'm trying to build a single ufs filesystem with the unused space on
the EIDE drive. The drive has a small primary M$-D0G partition. I RTFAQ,
which suggests using sysinstall to add the partition & the disklabel
and then run newfs.

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.

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.

Would some kind soul(s) explain to me how one goes about this (seemingly)
simple procedure? Many thanks.

^mi


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