From owner-freebsd-questions Thu Jan 11 22:22:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from babel.acu.edu (babel.acu.edu [150.252.167.240]) by hub.freebsd.org (Postfix) with ESMTP id 80DE237B401 for ; Thu, 11 Jan 2001 22:22:13 -0800 (PST) Received: from localhost (scattered@localhost) by babel.acu.edu (8.9.3/8.8.7) with ESMTP id BAA28909; Fri, 12 Jan 2001 01:13:40 -0600 Date: Fri, 12 Jan 2001 01:13:40 -0600 (CST) From: Cary To: Greg Lehey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: disklabel/newfs In-Reply-To: <20010112162932.I21945@wantadilla.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG OK, dmesg after reboot with MO media IN the drive! :) #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: 121MB (248826 512 byte sectors: 64H 32S/T 121C) With this information, will I be able to format the disk with ufs, or is there further digging I need to do? I tried to newfs the drive again, thinking that the OS might have been fooled into thinking that it was just a normal drive: # newfs /dev/da0 newfs: /dev/da0: `0' partition is unavailable # newfs /dev/da0a newfs: /dev/da0a: Invalid argument # newfs /dev/da0c newfs: ioctl (GDINFO): Invalid argument newfs: /dev/da0c: can't read disk label; disk type must be specified # Obviously, FreeBDS didn't fall for it, andI still have not reached my goal! :( My continued thanks for your assistance, Greg. Cary Mathews Abilene Christian University ACM Education Comittee > > 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) > > # > > > > 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. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message