OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 10:43 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: partcopy for USB
PostPosted: Sat Jan 01, 2011 5:55 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: partcopy for USB
PostPosted: Sat Jan 01, 2011 6:39 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject: Re: partcopy for USB
PostPosted: Sat Jan 01, 2011 7:09 am 
Offline

Joined: Sun Oct 24, 2010 2:30 am
Posts: 17
in linux how can i do it???


Top
 Profile  
 
 Post subject: Re: partcopy for USB
PostPosted: Sat Jan 01, 2011 8:38 am 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 8561
Location: At his keyboard!
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.


Top
 Profile  
 
 Post subject: Re: partcopy for USB
PostPosted: Sat Jan 01, 2011 9:36 pm 
Offline

Joined: Sun Oct 24, 2010 2:30 am
Posts: 17
thanks for the reply!
can't i use partcopy somehow???
i will try dd for windows and see
Thanks!


Top
 Profile  
 
 Post subject: Re: partcopy for USB
PostPosted: Sun Jan 02, 2011 3:02 am 
Offline
Member
Member

Joined: Sun Mar 07, 2010 2:12 am
Posts: 65
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


Top
 Profile  
 
 Post subject: Re: partcopy for USB
PostPosted: Sun Jan 02, 2011 9:48 am 
Offline

Joined: Sun Oct 24, 2010 2:30 am
Posts: 17
thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group