From owner-freebsd-questions Wed Sep 4 04:17:38 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA06630 for questions-outgoing; Wed, 4 Sep 1996 04:17:38 -0700 (PDT) Received: from obelix.cica.es (obelix.cica.es [150.214.1.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA06618 for ; Wed, 4 Sep 1996 04:17:29 -0700 (PDT) Received: (from amora@localhost) by obelix.cica.es (8.7.5/8.7.3) id NAA15363; Wed, 4 Sep 1996 13:13:21 +0200 (GMT-2:00) From: "Jesus A. Mora Marin" Message-Id: <199609041113.NAA15363@obelix.cica.es> Subject: Re: Creating a second freebsd slice To: dwhite@resnet.uoregon.edu Date: Wed, 4 Sep 1996 13:13:20 +0200 (MET) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Doug White" at Sep 3, 96 06:47:29 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Doug! Many thanks for the info! Just FYI, I'll tell you how I have got the work done: 1) Of, course, with `fdisk(8)', I modified the slice table, getting rid of the Linux one and creating a new -identical- slice for FreeBSD. BTW, I put it in slot #3, instead of #1. So it now reads: The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1620864, size 491904 (240 Meg), flag 0 beg: cyl 402/ sector 1/ head 0; end: cyl 523/ sector 63/ head 63 2) After rebooting, the hard task: creating a new disklabel. Using `disklabel -e' on a new slice is of no use, since this option expects that any label exists. After browsing the man page many times and many other failed tries, I concluded that my best bet was with `disklabel -R -r disk protofile'. So I took a copy from the wd0s3 label -the original BSD slice-, and modified it to fit the parameters of the new slice. So: # disklabel.s4 : protofile for /dev/rwd0s4c: type: ESDI disk: wd0s4 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 64 sectors/cylinder: 4032 cylinders: 122 sectors/unit: 491904 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: 491904 0 unused 0 0 # (Cyl. 0 - 122) f: 491904 0 4.2BSD 0 0 0 # (Cyl. 0 - 122*) BTW I had to MAKEDEV the wd0s4? special files. And then: disklabel -R -r /dev/rwd0s4c disklabel.s4 3) New reboot and all went fine: newfs the new rwd0s4f partition, mount, etc. >> Er, BTW, FreeBSD version is 2.2-960326SNAP. > You're a bit behind the times. Yep. I'm gonna order the most recent SNAP version ASAP! So, thanks a lot, Doug! Jesus A. Mora amora@obelix.cica.es