partcopy for USB

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
wenn32
Posts: 17
Joined: Sun Oct 24, 2010 2:30 am

partcopy for USB

Post 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!
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: partcopy for USB

Post by Combuster »

Use linux.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
wenn32
Posts: 17
Joined: Sun Oct 24, 2010 2:30 am

Re: partcopy for USB

Post by wenn32 »

in linux how can i do it???
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: partcopy for USB

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
wenn32
Posts: 17
Joined: Sun Oct 24, 2010 2:30 am

Re: partcopy for USB

Post by wenn32 »

thanks for the reply!
can't i use partcopy somehow???
i will try dd for windows and see
Thanks!
M2004
Member
Member
Posts: 65
Joined: Sun Mar 07, 2010 2:12 am

Re: partcopy for USB

Post 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
wenn32
Posts: 17
Joined: Sun Oct 24, 2010 2:30 am

Re: partcopy for USB

Post by wenn32 »

thanks!
Post Reply