Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 1995 08:32:44 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Cc:        sysseh@devetir.qld.gov.au
Subject:   Re: How to add another disk (or slice/partitions/disklabels - confusion)
Message-ID:  <199508240632.IAA21971@uriah.heep.sax.de>
In-Reply-To: <v01530500ac6192d04f32@[194.150.2.33]> from "Jacques Caron" at Aug 24, 95 04:24:10 am

next in thread | previous in thread | raw e-mail | index | archive | help
As Jacques Caron wrote:
> 
> >I'm using disklabel -r -e /dev/rsd1, it pulls up something reasonable,...

> Write to /dev/rsd1sx where x is the fdisk partition you use.

Always use the disklabel command with a simple disk name (`sd1'), and
let it up to the command to figure out which device node to use.

Btw., for drives that are dedicated to FreeBSD, the `old way' works
quite well: don't care for the fdisk entries, setup an entry in
/etc/disktab (start the partition at sector 0), and finally:

disklabel -r -w sd1 mydiskname
disklabel -B sd1

(The latter is needed to supress the ``Invalid partition table: no
magic'' warning.)

libdisk (that is used by sysinstall) should learn how to do this, too,
so people with dedicated drives wouldn't have to undergo that damn DOS
geometry hell.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



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