Page 1 of 1
Need to make a disk image
Posted: Tue Nov 28, 2006 4:42 am
by Lprogster
I have 2 seperate files, my boot sector and my kernel. The disk image layout needs to be:
1st sector: bootsector
2nd and 3rd sector: kernel
How can I concatenate my bootsector and kernel into 1 image, that I can put on a disk or run in Bochs?
Thankyou guys,
Lprogster
Posted: Tue Nov 28, 2006 5:29 am
by kataklinger
Floppy disk or hard disk image, for bochs or VMware, under windows or linux?
Under Windows you can merge bootsector file and kernel file:
copy boot.bin + kernel.bin image1.img
and then use partcopy to put it on fdd or hdd (infact partcopy doesn't work on NT/2k/XP...)
Posted: Tue Nov 28, 2006 5:48 am
by Lprogster
Thankyou Kataklinger... that is exactly what I needed!
Is there any difference between disk and hard-disk images?
Thankyou lots
Lprogster
Posted: Tue Nov 28, 2006 6:38 am
by kataklinger
In size
HDD image sholud at least have MBR.
Posted: Tue Nov 28, 2006 1:36 pm
by bubach
partcopy works fine on xp, atleast when copying to fdd.
Posted: Tue Nov 28, 2006 2:17 pm
by kataklinger
Yes it works with FDDs, but doesn't work for HDDs. AFAIK partcopy usese direct IO to access HDD which is forbidden under Windows.
Posted: Wed Nov 29, 2006 6:19 am
by Lprogster
...
Thanks,
Lprogster