From owner-freebsd-current@FreeBSD.ORG Sun May 22 19:11:36 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E542B16A41C for ; Sun, 22 May 2005 19:11:36 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC7EB43D49 for ; Sun, 22 May 2005 19:11:36 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 1959EFE80; Sun, 22 May 2005 15:11:36 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 371441A08E7; Sun, 22 May 2005 15:11:33 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17040.55652.807936.640806@canoe.dclg.ca> Date: Sun, 22 May 2005 15:11:32 -0400 To: freebsd-current@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid Subject: GEOm label inconsistency. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 19:11:37 -0000 I have two USB drives... so I decided that using geom_label.ko would be handy to make scripts work for mounting and unmounting the drives (as I could never ensure that they came up in the same order). I was pleased to find that my various pieces of MSDOS flash seemed to work just fine. /dev/msdosfs/ However, of my two USB drives (actual hard disks) ... both formatted with a UFS filesystem covering the whole drive, one puts a label in /dev/ufs and the other does not. The one that works is a 30 gig laptop drive in a USB2 bus powered (two plugs) carrier. It has an "fdisk -I" MBR and I formatted the da0s1c partition. Now... geom_label recognises da0s1 as the labelled partition ... but that really doesn't matter to me ... it works. The one that doesn't work is a 120G drive in a USB2 enclosure from iomega. Again, it has an "fdisk -I" MBR and a whole disk ufs filesystem. geom_label does not recognise it for some reason. Turning on the debug for geom_label, I find: da1 at umass-sim1 bus 1 target 0 lun 0 da1: Fixed Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 117800MB (241254720 512 byte sectors: 255H 63S/T 15017C) GEOM_LABEL[1]: UFS1 file system detected on da1s1. GEOM_LABEL[1]: MSDOS (FAT32) file system detected on da1s1. GEOM_LABEL[1]: UFS1 file system detected on da1s1c. GEOM_LABEL[1]: MSDOS (FAT32) file system detected on da1s1c. GEOM_LABEL[1]: UFS1 file system detected on da1s1g. GEOM_LABEL[1]: MSDOS (FAT32) file system detected on da1s1g. Now... the drive _used_ to have a MSDOS filesytem on it... but it has since been: a) fdisk'd to type 165 b) bsdlabeled c) formatted and used for most of 2 years as a UFS filesystem Does this mean that geom_label's testing of filesysem type is weak? Is there a workaround whereby I blank a sector not used by UFS? Should geom_label take hints from the mbr type? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can only be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================