Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2002 16:23:02 +0930
From:      Greg 'groggy' Lehey <grog@lemis.com>
To:        Brian Astill <bastill@sa.apana.org.au>
Cc:        FreeBSD Questions <questions@FreeBSD.org>
Subject:   Re: CAN newfs ad1s3 - BUT!
Message-ID:  <20020514162302.G60068@wantadilla.lemis.com>
In-Reply-To: <200205140622.g4E6MT176737@tierzero.apana.org.au>
References:  <200205130533.g4D5XL158094@tierzero.apana.org.au> <200205131006.g4DA6H161503@tierzero.apana.org.au> <20020514102119.C60068@wantadilla.lemis.com> <200205140622.g4E6MT176737@tierzero.apana.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html

On Tuesday, 14 May 2002 at 15:51:49 +0930, Brian Astill wrote:
> On Tue, 14 May 2002 10:21, you wrote:
>> /dev/ad1s3 is a slice, not a (FreeBSD) partition.  Before you use it,
>> you should partition it with disklabel.  If you're going to put a
>> non-root partition on it, convention suggests giving the partition a
>> letter between e and h, so you'd end up with:
>>
>>   # disklabel -e /dev/ad1s3
>
> That puts me into what appears to be vi (:q to exit)

Or the EDITOR of your choice.

>>     (add a partition h, identical to c except for partition type
>>     4.2BSD followed by 3 0s).
>
>>   # newfs /dev/ad1s3h
>
> That says:
> newfs: /dev/ad1s3h: No such file or directory

Ah, you may need to make the device node.  Try

  # cd /dev
  # ./MAKEDEV ad1s3h

This nonsense will go away when devfs becomes mainstream.

> Only thing I can think of is that I am supposed to USE the vi
> look-alike and edit something to something else ??

Well, it's not a look-alike, it's the real thing, and of course you're
supposed to USE it.  As I said:

>>     (add a partition h, identical to c except for partition type  
>>   4.2BSD followed by 3 0s).

Specifically, you'll see something like this at the end of the file:

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 78165360        0    unused        0     0       	# (Cyl.    0 - 77544)

Add a partition h with 3 zeros after it:

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 78165360        0    unused        0     0       	# (Cyl.    0 - 77544)
  h: 78165360        0    4.2BSD     0 0 0 	# (Cyl.    0 - 77544)

BTW, why are you using ad1?  Do you have something else on the second
IDE controller?  Otherwise use ad2, not ad1.  Slave disks are
performance problems.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020514162302.G60068>