Page 1 of 1

How to copy three files onto a disk

Posted: Fri Oct 04, 2002 10:49 am
by beyondsociety
I know how to copy two files to a disk using partcopy. How would I add a third file to the disk?

I have a bootsector that loads the kernel and I am going to have another program that the kernel switches to for protected mode. I know how to set up the files.

Re:How to copy three files onto a disk

Posted: Fri Oct 04, 2002 2:54 pm
by beyondsociety
Is there a way to link two files into one?. So that I would be able to copy the two files to the floppy.

Because with partcopy , you can only copy two files and not three.

Re:How to copy three files onto a disk

Posted: Sun Oct 06, 2002 9:03 pm
by beyondsociety
Would copying the three files to a floppy disk and create a .img file using partcopy and then copy it using rawrite?

Re:How to copy three files onto a disk

Posted: Mon Oct 07, 2002 12:13 am
by Whatever5k
I don't know if this is what you mean, but try:

cat file1 file2 file3 > endfile

Re:How to copy three files onto a disk

Posted: Mon Oct 07, 2002 12:34 am
by Pype.Clicker
the dos/win equivalent : copy -b file1 +file2 +file3 allfiles

note that your files will have to be sector-sized (i.e. no 500 bytes file allowed here : only 0,512,1024 ...)