From owner-freebsd-questions Thu Jan 11 21:59:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 5AE8C37B402 for ; Thu, 11 Jan 2001 21:59:34 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 70AAE6A90D; Fri, 12 Jan 2001 16:29:32 +1030 (CST) Date: Fri, 12 Jan 2001 16:29:32 +1030 From: Greg Lehey To: Cary Cc: freebsd-questions@freebsd.org Subject: Re: disklabel/newfs Message-ID: <20010112162932.I21945@wantadilla.lemis.com> References: <20010112110113.C21945@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from scattered@babel.acu.edu on Fri, Jan 12, 2001 at 12:39:54AM -0600 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] On Friday, 12 January 2001 at 0:39:54 -0600, Cary wrote: > On Fri, 12 Jan 2001, Greg Lehey wrote: > >> On Thursday, 11 January 2001 at 17:48:48 -0600, Cary wrote: > >>> The drive is a SCSI magneto-optical drive at /dev/da0, the MO disks >>> are 128MB a piece, formerly with ext2 formats. I can read the disk >>> label with: >>> >>> # disklabel -r /dev/da0 >>> >> >> So what does the partition table info at the end of the drive look >> like? What does dmesg say? I'm looking for information like this: >> >> 8 partitions: >> # size offset fstype [fsize bsize bps/cpg] >> c: 35551782 0 unused 0 0 # (Cyl. 0 - 2212*) >> h: 35551782 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 2212*) >> >> da0 at ahc0 bus 0 target 8 lun 0 >> da0: Fixed Direct Access SCSI-2 device >> da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) >> da0: 17366MB (35566500 512 byte sectors: 255H 63S/T 2213C) > > Greg, thank you for the explanations. Below is the partition info you > requested: > > #disklabel -r /dev/da0 > [snip] > 3 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 247808 0 4.2BSD 0 0 0 # (Cyl. 0 - 120) > c: 247808 0 unused 0 0 # (Cyl. 0 - 120) > # > > (one short question: why does it say 3 partitions and list only 2? I know > c is supposed to represent the whole disk, and a is the first partion, so > what am I missing?) It's a little silly, really. The number doesn't mean anything, it's just the number of the highest-numbered partition, in this case c. Think of the (missing) partition b as the second partition, and c as the third. The partition table always has space for 8 partitions (a to h). > #dmesg > [snip] > da0 at ahc0 bus 0 target 0 lun 0 > da0: Removable Optical SCSI-2 device > da0: 5.000MB/s transfers (5.000MHz, offset 15) > da0: Attempt to query device size failed: NOT READY, Medium not present > > Ahh, I see there is an offset of 15, where would that be placed in the > disklabel or in disktab? No, the offset has to do with the way the SCSI transfers take place. Hmm, I missed that this was an MO device. I'm wondering if there might be a problem with the medium, or the fact that you booted it without a medium in the drive. I'm not sure how to proceed from here, but here are some suggestions: 1. If practical, reboot with a medium in the drive. That will give us the information about what the system thinks the size is. 2. Otherwise (or just for the fun of it, anyway) try using dd to copy data from the medium: dd if=/dev/da0c of=/dev/null This will take forever, but at the end it will tell you how many sectors it read. If anybody else has any better ideas, I'd be interested to hear them. 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