From owner-freebsd-stable@FreeBSD.ORG Wed Feb 22 07:00:28 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88261106567D for ; Wed, 22 Feb 2012 07:00:28 +0000 (UTC) (envelope-from erich@alogreentechnologies.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id 524648FC14 for ; Wed, 22 Feb 2012 07:00:28 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id q1M6Yhx6030800 for ; Tue, 21 Feb 2012 23:34:45 -0700 From: Erich Dollansky Organization: ALO Green Technologies Pte Ltd To: freebsd-stable@freebsd.org Date: Wed, 22 Feb 2012 13:34:36 +0700 User-Agent: KMail/1.13.7 (FreeBSD/8.3-PRERELEASE; KDE/4.7.4; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201202221334.36484.erich@alogreentechnologies.com> X-Mailman-Approved-At: Wed, 22 Feb 2012 12:04:23 +0000 Subject: random problem with 8.3 from yesterday X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2012 07:00:28 -0000 Hi, I got a new thumb drive which was FAT formatted. I use this script to change this: !/bin/tcsh # # This script format a thumb drive connected to USB as da0. # printf "You have to run this script as 'root' to succeed.\n" printf "Warning this script will delete all your data from /dev/da0. Continue? > " set Eingabe = $< if ("$Eingabe" == "y") then printf "\nDeleting the device " dd if=/dev/zero of=/dev/da0 bs=1k count=1 printf "\nWriting the BSD label " bsdlabel -Bw da0 auto printf "\nEditing the BSD label " bsdlabel -e da0 newfs /dev/da0a printf "\nThe device /dev/da0 was formated to be used with FreeBSD.\n" else printf "\nScript aborted!\n" endif I then call manually tunefs -L NewDeviceName /dev/da0a Either this call or the mount command does not work randomly. When I then try to mount the device on /dev/da0a it does not work always. I do not know what this causes, I am only randomly able to reproduce it. It might be affected by removing the device or keeping it plugged in. uname says: FreeBSD AMD620.ovitrap.com 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #28: Tue Feb 21 17:15:07 WIT 2012 erich@AMD620.ovitrap.com:/usr/obj/usr/src/sys/AsusAMD620 amd64 dmesg says: ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x4001 umass0:2:0:-1: Attached to scbus2 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: < USB FLASH DRIVE PMAP> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 15272MB (31277056 512 byte sectors: 255H 63S/T 1946C) It is not an urgent problem. Erich