delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/01/19:52:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=Jxv
q4WRN6ODRNUR7CKTK3kX+V7dCo9HWncHlk9DHNqphF1JC0oWdG+SilMcetA5goCf
chzPDsrspio0CMcJYyLy/sG0AGfeQALjt8Z9Rfj/UTyM2oly9SOJw/btIBecOF+a
5NvVGPkd6Nqihp3k7tVCrOLU0ipfgIITqrcJCj7g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=RHHcZ4ZEV
d7bUGT1/LOyYkpLzoE=; b=B0WfbpwEYjid5RvOtsFvXWY6E/uyUwsCnVOZG7fIt
QCQWOFnpak+49/HgcQ42rkmQ8B7XcYiXxPUqw84r7EEBJi1z8BuLrJuCLPuitKV5
OWvoyj3oGJQWa9TU63lTp/qMsw7zGKnLegb+UfguzApisueQRsKLcuWxerUYP+X0
p0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: smtp203.alice.it
Message-ID: <54F3B441.4050803@alice.it>
Date: Mon, 02 Mar 2015 01:52:17 +0100
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: A problem using "dd" on Cygwin

Just an exercise...

I was playing with "dd" command to "install" an ISO image on an USB key 
(to make it bootable). The USB key has size 8 GiB and I did this (as 
Administrator):

   $ dd if=image.iso of=/dev/sdb bs=4M

(image.iso has a size of 1.6 GiB). After this the USB key has a size 
(partition) of about 2.3 GiB: the remaining space is unallocated.

How to restore its original status?

Searching on-line, I have found that on a linux system I should run 
these commands:

1. To reset the USB:

   $ dd count=1 bs=512 if=/dev/zero of=/dev/sdb

(which seems to work)

2. To recreate the partitions table:

   $ cfdisk /dev/sdb              (???)
   $ mkfs.vfat -F32 /dev/sdb1
   $ dosfslabel /dev/sdb1 USB_STICK

but on Cygwin it seems that mkfs.vfat does not exist (in /usr/sbin I 
find cfdisk and other mkfs* files). Also dosfslabel does not exist, but 
if I understand, it gives a label to the USB, so it does not seem very 
important, now..

How can we proceed on Cygwin?


TIA,
  Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019