From owner-freebsd-questions@freebsd.org Mon Aug 3 23:30:18 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AFB19B2A5F for ; Mon, 3 Aug 2015 23:30:18 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA7A8E2C for ; Mon, 3 Aug 2015 23:30:17 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by iggf3 with SMTP id f3so533011igg.1 for ; Mon, 03 Aug 2015 16:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=MhLRJmrw5xhWv/VfA9HjgM36oR+Oo1ykrHGz7lxefdI=; b=Ar/KK6EBeS383n2MomoH8GpI8ktTKKfTlgOE8wCRORi7ehYMcHqNqIROU2I95rR8Tm PrvJFoTTTVSOFR42P+yX2weTLxHdWoM19Vto5HhHEHCvja07G06a4iEgnKRkmt3JZ7oJ ck6iAPOyAkqImMfSIIslHdSBUFZ2A6CsR3wkOUIVYGBsB7co08nMP66eDuOaE2ubrrFK 0FK77w+2CHiRsqEW8QzXaTf9DWZxMR2nYPMdNRnmZJnA5McWcVKG3UINZhhrRa394kbn +pbYFbWZbCfTNB+oB4MyIOKAQwo4ifZaNPCFf/1/+p7t78ZkQ9Curkd/PsI44CQkItPz q1ng== X-Received: by 10.50.97.33 with SMTP id dx1mr23313947igb.1.1438644617271; Mon, 03 Aug 2015 16:30:17 -0700 (PDT) Received: from localhost.localdomain ([50.243.6.59]) by smtp.googlemail.com with ESMTPSA id 38sm69797ior.17.2015.08.03.16.30.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 16:30:16 -0700 (PDT) Message-ID: <55BFF992.6010309@gmail.com> Date: Mon, 03 Aug 2015 17:30:26 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: USB stick and some help with it. References: <55BF6AA0.2030802@bananmonarki.se> <20150804003056.094ffc57.freebsd@edvax.de> In-Reply-To: <20150804003056.094ffc57.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 23:30:18 -0000 On 08/03/2015 04:30 PM, Polytropon wrote: > On Mon, 03 Aug 2015 15:20:32 +0200, Bernt Hansson wrote: >> Is it possible to make it pristine again or is it forever lost? > What about the Q&D way of > > # newfs /dev/da1 > > to initialize a new UFS file system (without slicing and/or > partitioning, no matter if MBR or GPT) and then simply try > > # mount -t ufs /dev/da1 /mnt > > and check if it works? > > Keep in mind you can - after you've verified this works - > use tunefs to optimize UFS for use on USB sticks (optimization > selection for speed or space, reserved space, and consider > mount options like async/noasync or atime/noatime, depending > on your intended use). > > See "man newfs", "man tunefs" and "man mount" for details. > > > > Since a CD or DVD iso was dd'ed to this stick, OS thinks it IS an optical ROM device - and thus not writable. Same issue happened to me and fixed the stick by using a linux pc to dd /dev/zero into the stick.