Page 1 of 1

partcopy for USB

Posted: Sat Jan 01, 2011 5:55 am
by wenn32
hello guys now i want to test my code in real hardware so i want to use my USB stick to copy my bootlader now what command should i use normal we use this

Code: Select all

partcopy boot.bin 0 200 -f0
for floppy

but what should i use if i want to copy my bootloader to USB
please help me.Thanks!

Re: partcopy for USB

Posted: Sat Jan 01, 2011 6:39 am
by Combuster
Use linux.

Re: partcopy for USB

Posted: Sat Jan 01, 2011 7:09 am
by wenn32
in linux how can i do it???

Re: partcopy for USB

Posted: Sat Jan 01, 2011 8:38 am
by Brendan
Hi,
wenn32 wrote:in linux how can i do it???
Just plain "cp boot.bin /dev/sd#" will probably work (where the '#' needs to be replaced by whatever the USB device is, and better not be wrong or you could trash a hard drive or some other device's MBR).

The correct way is to use the "dd" utility though, which allows you to copy blocks (and ensure padding, etc).

As an alternative, you might be able to find some sort of utility for doing it on Windows - for an example dd for windows might work.


Cheers,

Brendan

Re: partcopy for USB

Posted: Sat Jan 01, 2011 9:36 pm
by wenn32
thanks for the reply!
can't i use partcopy somehow???
i will try dd for windows and see
Thanks!

Re: partcopy for USB

Posted: Sun Jan 02, 2011 3:02 am
by M2004
wenn32 wrote:can't i use partcopy somehow???
You should boot under plain dos and use partcopy from there.
Windows is propably blocking partcopy's operations. I have had similar
problems with partcopy.

Have you tried hxd? It can read / write disks under windows?
http://mh-nexus.de/en/hxd/


regards
Mac2004

Re: partcopy for USB

Posted: Sun Jan 02, 2011 9:48 am
by wenn32
thanks!