From owner-freebsd-questions@FreeBSD.ORG Sat Apr 23 23:26:19 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB6E216A4CE for ; Sat, 23 Apr 2005 23:26:19 +0000 (GMT) Received: from smtp105.rog.mail.re2.yahoo.com (smtp105.rog.mail.re2.yahoo.com [206.190.36.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 62DD143D1D for ; Sat, 23 Apr 2005 23:26:19 +0000 (GMT) (envelope-from Mike.Jeays@rogers.com) Received: from unknown (HELO ?192.168.2.150?) (mjeays2551@24.114.152.139 with plain) by smtp105.rog.mail.re2.yahoo.com with SMTP; 23 Apr 2005 23:26:17 -0000 From: Mike Jeays To: Fridtjof Busse In-Reply-To: <20050423214149.7e0afbd7.fbusse@gmx.de> References: <20050423214149.7e0afbd7.fbusse@gmx.de> Content-Type: text/plain Message-Id: <1114298761.7355.19.camel@chaucer> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 23 Apr 2005 19:26:01 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Mounting USB-stick X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2005 23:26:20 -0000 On Sat, 2005-04-23 at 15:41, Fridtjof Busse wrote: > Hi > I've got a problem with mounting a USB-stick on FreeBSD 5.4-RC3 (and > according to google I'm not the only one, but noone seems to have had > the problem I have): > If I plug the stick in, I get lots of > > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI > Status Error > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): SCSI Status: > Check Condition > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION > asc:3a,0 > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): Medium not > present > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): Retrying > Command (per Sen se Data) > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. > CDB: 25 0 0 0 0 0 0 0 0 0 > [...] > > It ends with > > Apr 23 21:26:08 fbsd kernel: (da0:umass-sim0:0:0:0): Retries Exhausted > Apr 23 21:26:08 fbsd kernel: Opened disk da0 -> 6 > > Now I have /dev/da0, but no /dev/da0s1. > No matter what I try with camcontrol, I don't get da0s1. > By accident I found out that after I mount /dev/da0 (which of course > doesn't give me any files on the stick) and umount it, I get /dev/da0s1. > What's going on/wrong and how can I fix it? I don't need amd, so I'd be > happy about a simple solution, if there's any. > Thanks! :) Run fdisk on the drive, and see where the partitions are. I have found cases where the fourth partition holds the data, and you can mount it with 'mount -t msdos /dev/da0s4 /mnt'. Running fdisk with no parameters won't do any damage - but see below. In other cases of trouble, try 'camcontrol devlist' to get a list of which device numbers have been assigned. It isn't always da0. (As a digression, I experimented with recreating partition tables using fdisk and a configuration file, until the day I forgot to enter the 'da0' as the final parameter, and it wiped the disk partition on my dual-boot system disk. Easily the worst case of finger trouble I have had to date).