Page 1 of 1
Bochs ; virtuel harddisk
Posted: Thu Oct 09, 2008 11:19 am
by kmtdk
well
using bochs, i cant get the "harddisk" function to work (have tried with images, and prebuild images); the error is simple : "ata0-0 disk size doesn't match specified geometry"
well
even if i cange the CHS, it does not help
so does anybody know what to do.
secound: does anybody know a good harddisk emuligater ???(like the VFD )
KMt dk
Re: Bochs ; virtuel harddisk
Posted: Thu Oct 09, 2008 12:26 pm
by 01000101
this belongs in the OS Development forum.
Also, have you tried QEMU, VirtualBox, or VirtualPC (assuming you're in Windows)?
Re: Bochs ; virtuel harddisk
Posted: Thu Oct 09, 2008 2:22 pm
by ru2aqare
Use the bximage application bundled with Bochs.
Re: Bochs ; virtuel harddisk
Posted: Thu Oct 09, 2008 11:08 pm
by kmtdk
well
i have tryed Virtuel pc, but when i write data to the file (raw) it does not work. ( what do i have to do)
Bochs got already that configuation, so it is not that reason..
KMT dk
Re: Bochs ; virtuel harddisk
Posted: Fri Oct 10, 2008 1:35 am
by Combuster
Most VMs don't use a flat binary as a harddisk file, but instead hold some extra details on the size and what is stored where.
Bochs can work with flat images but you need to tell it to do it that way. For starters, will you post the relevant lines from the bochsrc and the exact size of the image file in bytes (assuming you're using a flat binary)?
Re: Bochs ; virtuel harddisk
Posted: Fri Oct 10, 2008 12:24 pm
by kmtdk
1424
it is the fist ata drive
and it is the boot drive ..
the other data, seems to be the reason ...
Re: Bochs ; virtuel harddisk
Posted: Sat Oct 11, 2008 4:03 pm
by Combuster
Well obviously it will complain when you use an image that is *not* the size of any sensible disk. Its not even a multiple of 512
Re: Bochs ; virtuel harddisk
Posted: Sun Oct 12, 2008 5:43 am
by kmtdk
so im supossed to make it divebel with 512 , even if i say that the CHS is
1024
16
63
i thought it would cout the rest as "space" .
okay ...
i will just test it, when i have the Hdd driver working ( i testing on RHW, very funny )
KMT dk
Re: Bochs ; virtuel harddisk
Posted: Mon Oct 13, 2008 3:42 am
by Combuster
so im supossed to make it divebel with 512 , even if i say that the CHS is
1024
16
63
No, the image must be the same size as the disk itself. I.e. 1024 * 16 * (63+1) * 512 bytes