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.
Lprogster
Member
Posts: 174 Joined: Tue Nov 14, 2006 11:59 am
Post
by Lprogster » Tue Nov 28, 2006 4:42 am
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
kataklinger
Member
Posts: 381 Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia
Post
by kataklinger » Tue Nov 28, 2006 5:29 am
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...)
Lprogster
Member
Posts: 174 Joined: Tue Nov 14, 2006 11:59 am
Post
by Lprogster » Tue Nov 28, 2006 5:48 am
Thankyou Kataklinger... that is exactly what I needed!
Is there any difference between disk and hard-disk images?
Thankyou lots
Lprogster
kataklinger
Member
Posts: 381 Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia
Post
by kataklinger » Tue Nov 28, 2006 6:38 am
In size
HDD image sholud at least have MBR.
bubach
Member
Posts: 1223 Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:
Post
by bubach » Tue Nov 28, 2006 1:36 pm
partcopy works fine on xp, atleast when copying to fdd.
kataklinger
Member
Posts: 381 Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia
Post
by kataklinger » Tue Nov 28, 2006 2:17 pm
Yes it works with FDDs, but doesn't work for HDDs. AFAIK partcopy usese direct IO to access HDD which is forbidden under Windows.
Lprogster
Member
Posts: 174 Joined: Tue Nov 14, 2006 11:59 am
Post
by Lprogster » Wed Nov 29, 2006 6:19 am
...
Thanks,
Lprogster