Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 1996 20:04:11 -0700 (PDT)
From:      Ian Kallen <spidaman@well.com>
To:        dwhite@resnet.uoregon.edu
Cc:        questions@freebsd.org
Subject:   Re: adding disks and the disklabel question
Message-ID:  <Pine.SOL.3.91.960728194301.12520A-100000@well>
In-Reply-To: <Pine.BSI.3.94.960728160612.226A-100000@gdi.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> I mailed my procedure a dozen times:
> 
> 	disklabel -Brw sd1 auto

<really? that'll do it? let's see...>
	root:ns1: {31} disklabel -Brw sd1 auto
	write: Read-only file system
<OK, let's try to explicitly label the raw device>
	root:ns1: {32} disklabel -Brw /dev/rsd1 auto
	"auto" requires the usage of a canonical disk name.
	auto: unknown disk type
<sigh>
<OK, there's a dos stub slice (sd1s0) and a type "165" on slice 1... try it>
	root:ns1: {33} disklabel -Brw sd1s1 auto
	disklabel: ioctl DIOCGDINFO: Invalid argument
<and similar failures trying to reference it as a raw device...>

> 	disklabel -e sd1	# edit partitions
> 	for filesys in `get file system partitions of sd1`
> 	do
> 		newfs -d0 /dev/rsd1${filesys}
> 	done
> 	vi /etc/fstab
> 
> This creates ``dangerously dedicated'' drives (thus no `fdisk'
> required), as long as this is fine with you, the above is perhaps the
> easiest way.

I would be most pleased to see this "easiest way" succeed.  If you are 
getting different results than the ones I pasted in above, I sure would 
like to know why...

> 
> > Sysinstall still core dumps when I try and usr it to partition and and 
> > disklabel the second drive.

sysinstall seems to want to make mods to my existing boot drive -- it all 
seems geared for installation not supplementing disks and file systems.

> This is a quickie.  I have the long explanation of this from Seppo if you
> are interested.
> 
> If I had a disk to make, I'd write a tutorial.

I'd be happy to document for the benefit of others how to make this work 
if I could do so myself.  Although the machines I'm using are in 
production (thus I don't have a lot of latitude for experimentation) -- 
I'm open to doing whatever it takes to document this more fully and have 
it added to handbook and/or FAQ (short of frying my disks ;).

> 
> Doug White                              | University of Oregon  
> Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
> http://gladstone.uoregon.edu/~dwhite    | Computer Science Major

The next interface will not be another desktop metaphor.... Ian Kallen ....
http://www.well.com/user/spidaman/ ....the revolution will not be televised.
===== TO RECEIVE MY PGP KEY, SEND MAIL TO spidey-pgp-info@well.com =======




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.960728194301.12520A-100000>