This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]