Using dd command and copy
marco atzeri
marco.atzeri@gmail.com
Fri Oct 19 15:38:00 GMT 2012
On 10/19/2012 5:28 PM, wing cheng wrote:
> Unfortunately it is not working.... there are still files corrupted. Any
> idea?
>
use the list please.
> On Fri, Oct 19, 2012 at 2:06 PM, marco atzeri wrote:
>
> On 10/19/2012 2:07 PM, chesschi wrote:
>
> Hi all,
>
> I am trying to write a script to do a "dd" to copy an image from
> a local
> disk to a USB flash drive followed by copying some other files
> to the flash
> drive.
>
> e.g. if the flash drive is d and mapped to /dev/sdb
> dd if=myfiles.iso of=/dev/sdb
> cd myfolder
> cp -rf */cygdrive/d
>
>
> After dd and copy finishes, I eject the flash drive and reinsert
> to the USB
> port. I found that some of the files are courrpted!
>
> If I dd first, eject the USB flash drive then do the copying, it
> is okay.
>
> Is there a way to automate this procedure without manually
> ejecting the
> flash drive? Thank you.
>
>
> have you tested sync instead of ejecting ?
>
>
>
--
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
More information about the Cygwin
mailing list