Page 1 of 1

partcopy and its problem with me! >:(

Posted: Sat Jun 18, 2005 12:21 am
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...

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

Posted: Sat Jun 18, 2005 3:33 am
by Warrior
Assuming you padded the second stage to 512 bytes that should work fine.

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

Posted: Sat Jun 18, 2005 3:01 pm
by vile
I did, and it didn't work. Also, you told me to not pad it... still didn't work.

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

Posted: Sat Jun 18, 2005 5:15 pm
by Warrior
...assuming you would know to put a different length..

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

Posted: Sat Jun 18, 2005 7:17 pm
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.

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

Posted: Mon Jun 20, 2005 11:10 am
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..