From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 10:50:24 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94A8416A405 for ; Fri, 21 Apr 2006 10:50:24 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC3FC43D48 for ; Fri, 21 Apr 2006 10:50:23 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (nwluzy@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k3LAoHx7097326 for ; Fri, 21 Apr 2006 12:50:22 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k3LAoHsf097325; Fri, 21 Apr 2006 12:50:17 +0200 (CEST) (envelope-from olli) Date: Fri, 21 Apr 2006 12:50:17 +0200 (CEST) Message-Id: <200604211050.k3LAoHsf097325@lurza.secnetix.de> From: Oliver Fromme To: freebsd-scsi@FreeBSD.ORG In-Reply-To: <200604210949.k3L9nbDu002551@fire.jhs.private> X-Newsgroups: list.freebsd-scsi User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 21 Apr 2006 12:50:22 +0200 (CEST) Cc: Subject: Re: USB Ram Stick X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-scsi@FreeBSD.ORG List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 10:50:24 -0000 Julian Stacey wrote: > On FreeBSD-6.0-RELEASE I took a friend's 2G stick containing the > usual MBR with one partition allocated as aprox. 2 Gig of DOS > file system, & read the entire raw stick onto hard disc. > > (I still have that image BTW, 2138177536 Apr 3 01:40 sony-stick-da0 , > but I dont care about the data, I care about the expensive stick!) > > I wrote the image back to my identical stick (with dd), it wouldn't continue > writing after a while, (cant remember exact message). The exact message would be very useful to know. Are you absolutely sure that your stick is really identical, including the size? The sizes sometimes seem to differ by small amounts, even between sticks of the exact same brand and model. For example, a shop here recently sold 1GB sticks for 25 EUR so a friend of mine bought two of them. I tried them both: one had 2096640 blocks, the other had 2096768 blocks. I'm not an expert, but my guess is that the manufacturer tests the chips and excludes bad areas, so the capacities vary. Maybe your image was a little too big for the second stick. > Now /dev/da0* is just da0 , no other entries. > > I've tried creating a new MBR with fdisk, but failed. Did you try to clean it before? i.e. dd if=/dev/zero of=/dev/da0 count=100 (See the example in the bsdlabel(8) manpage.) > camcontrol format da0 -w > You are about to REMOVE ALL DATA from the following device: > pass0: Removable Direct Access SCSI-2 device > pass0: Serial Number > pass0: 1.000MB/s transfers > Are you SURE you want to do this? (yes/no) > Formatting...Format Complete I assume that didn't do anything at all. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie