From owner-freebsd-current Tue Apr 4 06:25:24 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA12413 for current-outgoing; Tue, 4 Apr 1995 06:25:24 -0700 Received: from obiwan.pmr.com (obiwan.pmr.com [199.98.84.130]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id GAA12406 for ; Tue, 4 Apr 1995 06:25:22 -0700 Received: by obiwan.pmr.com (Smail3.1.29.1 #4) id m0rw8bd-00030UC; Tue, 4 Apr 95 08:25 CDT Message-Id: From: bob@obiwan.pmr.com (Bob Willcox) Subject: Re: Proper procedure to partition/label disk now? To: bde@zeta.org.au (Bruce Evans) Date: Tue, 4 Apr 1995 08:25:16 -0500 (CDT) Cc: freebsd-current@freefall.cdrom.com In-Reply-To: <199504041131.VAA19165@godzilla.zeta.org.au> from "Bruce Evans" at Apr 4, 95 09:31:33 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 2080 Sender: current-owner@FreeBSD.org Precedence: bulk Bruce Evans wrote: > > >What is the correct way to partition and disklabel a disk now that > >the slice code is in -current? I have a disk that I just low-level > >formated (so it has *nothing* on it) that I would like to partition > >and disklabel for FreeBSD. How do I go about this? > > For using the whole disk for FreeBSD, just run disklabel. The man > page may actually be complete now that the 'd' partition isn't > special. This assumes that the disk really is clean, without > misleading junk in the partition table. Ok, I've done that. When I mount the filesystem (after having newfs'd it) I get the following messages: Apr 4 08:14:27 luke /kernel: sd2: invalid primary partition table: no magic Apr 4 08:14:27 luke /kernel: sd2: raw partition size != slice size Apr 4 08:14:27 luke /kernel: sd2: start 0, end 782599, size 782600 Apr 4 08:14:27 luke /kernel: sd2c: start 0, end 782335, size 782336 The first two seem to be complaining about the lack of a partition table. Here is the disklabel for the drive: # /dev/rsd2c: type: SCSI disk: IBM0661 label: flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 382 sectors/unit: 782600 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 4 partitions: # size offset fstype [fsize bsize bps/cpg] a: 782336 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 381) c: 782336 0 unused 0 0 # (Cyl. 0 - 381) d: 782336 0 unused 0 0 # (Cyl. 0 - 381) > > Partitioning and labeling can be practiced on virtual (vn) drives. > See old commit mail. Ok, but this is simply a test drive so I have no problems practicing on it :-) I'm trying to understand how to do all of this stuff now for when I convert my primary system from 1.1.5.1 to 2.1. (It currently has 13 disks on it and lots of data I don't want to lose.) -- Bob Willcox bob@obiwan.pmr.com (or obiwan%bob@uunet.uu.net) Austin, TX