From owner-freebsd-questions@freebsd.org Mon Aug 3 18:18:04 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 4D8729B271F for ; Mon, 3 Aug 2015 18:18:04 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (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 18510269 for ; Mon, 3 Aug 2015 18:18:04 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by igk11 with SMTP id 11so77360960igk.1 for ; Mon, 03 Aug 2015 11:18:03 -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=0x40IjoGAvm20xpdvGg4CWq5dsuAsIyUzGBajgFLcrc=; b=DgfRDBh7i7XHHyGkbDwhf4/F19C3XCb/9q6KcAtc0xUHbN+IVWW+NY1y+hBxXMgsCv xJARWgTelRA6LV0AQnUCMMrkGBQUL0HpOu0N8jXwD+J/YXMtTLH+fJShKEtKqmNgOjbl 1EZV90Yy1bKH9wUBblHnltcBLRwvXI8e5u4jXFdwstmk+n90klDxJrwLV7IPAuC6Psgi PnZ1knJVX8ZCbnVzhLDiFIBkPv6PEOh9r5jpqHTe3hmsiUMGDH/gLOzT2P1w4CB52owG 2TpfltIQFDJTdDoJWh23Y/L5U6cC9s6pA50NxtEmZpF/LKMRjSwnY9aS3F77ucq9Crti Xatg== X-Received: by 10.50.7.104 with SMTP id i8mr21785316iga.50.1438625883411; Mon, 03 Aug 2015 11:18:03 -0700 (PDT) Received: from localhost.localdomain ([50.243.6.59]) by smtp.googlemail.com with ESMTPSA id ax8sm2020906igc.15.2015.08.03.11.18.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 11:18:02 -0700 (PDT) Message-ID: <55BFB064.60507@gmail.com> Date: Mon, 03 Aug 2015 12:18:12 -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> <55BFAC5D.5070309@sneakertech.com> In-Reply-To: <55BFAC5D.5070309@sneakertech.com> 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 18:18:04 -0000 On 08/03/2015 12:01 PM, Quartz wrote: > Can you do a quick sanity check and see if the stick can be wiped on a > different machine? Or perhaps the same machine by booting off a live > linux cd. Being on old flash drive there's a possibility it's just up > and died due to wear and the problem isn't due to FreeBSD at all. I second Quartz's suggestion. Just download a live linux cd, such as: http://ftp.uni-kl.de/pub/linux/knoppix-dvd/KNOPPIX_V7.4.1DVD-2014-09-15-EN.iso along with checksum files: http://ftp.uni-kl.de/pub/linux/knoppix-dvd/KNOPPIX_V7.4.1DVD-2014-09-15-EN.iso.md5 http://ftp.uni-kl.de/pub/linux/knoppix-dvd/KNOPPIX_V7.4.1DVD-2014-09-15-EN.iso.sha1 Once you burn it to dvd, boot it, and use the gui to launch a terminal (icon for it is at bottom left bar). then you run su - then you insert the usb stick. Assuming there is only one HD in the machine, the stick will be named /dev/sdb If more than one HD in the machine, say 4 HD (sda, sdb, sdc, sdd), then the stick will be sde. Run dd if=/dev/zero of=/dev/sd? bs=1M where ? is b or c or d ...etc depending on how many HD's you have in the system. You do not need to specify the count, because dd will stop when the stick is full of zeros. Once done, unplug the stick, and reinsert it. then run the command fdisk /dev/sd? (? as explained above) create 1 partition. set it's type to whatever you want. I usually use the letter c as the type to mean fat lba. To finish, type the command w to the fdisk session and you are done. Now type fdisk -l /dev/sd? and you will see the drive has 1 partition. now create a filesystem on your drive: mkfs -t vfat /dev/sd?1 (again ? as explained above). type the command reboot and the dvd drive will get ejected. press the return key to boot into your normal HD. The stick is now useable and mountable.