partcopy and its problem with me! >:(

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
vile

partcopy and its problem with me! >:(

Post by vile »

Hello,

Whenever I use partcopy to write the second stage to it using
partcopy psych2.bin 0 200 -f0 1, it gives me the error message:

"Failed to write destination at offset 1"

Putting the boot sector in works fine using:
partcopy psych.bin 0 200 -f0

Am I writing it wrong if I want the second stage to start at offset 0x1000 on the next sector?

My friend Nelson has it working fine using that way, btw...
Warrior

Re:partcopy and its problem with me! >:(

Post by Warrior »

Assuming you padded the second stage to 512 bytes that should work fine.
vile

Re:partcopy and its problem with me! >:(

Post by vile »

I did, and it didn't work. Also, you told me to not pad it... still didn't work.
Warrior

Re:partcopy and its problem with me! >:(

Post by Warrior »

...assuming you would know to put a different length..
vile

Re:partcopy and its problem with me! >:(

Post by vile »

I have put in the correct lengths, too... it still doesn't work. I have no idea why it's giving me that message no matter what offset I put in :(. Can somebody help? I really need to get my second stage put on the disk so I can actually make some progress. Thanks.
User avatar
bubach
Member
Member
Posts: 1224
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:partcopy and its problem with me! >:(

Post by bubach »

PARTCOPY source source_offset length destination {destination_offset}

Only destination_offset is optional. The other parameters are always
required. The offsets and length are always in HEX.
So it whould be: partcopy filnamne 0 200 -f0 200, if you want to write a second sector right after the bootsector..
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Post Reply