Bochs ; virtuel harddisk

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.
Post Reply
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

Bochs ; virtuel harddisk

Post 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
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: Bochs ; virtuel harddisk

Post by 01000101 »

this belongs in the OS Development forum.

Also, have you tried QEMU, VirtualBox, or VirtualPC (assuming you're in Windows)?
ru2aqare
Member
Member
Posts: 342
Joined: Fri Jul 11, 2008 5:15 am
Location: Hungary

Re: Bochs ; virtuel harddisk

Post by ru2aqare »

Use the bximage application bundled with Bochs.
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

Re: Bochs ; virtuel harddisk

Post 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
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Bochs ; virtuel harddisk

Post 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)?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

Re: Bochs ; virtuel harddisk

Post by kmtdk »

1424
it is the fist ata drive
and it is the boot drive ..

the other data, seems to be the reason ...
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Bochs ; virtuel harddisk

Post 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 :shock:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

Re: Bochs ; virtuel harddisk

Post 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
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Bochs ; virtuel harddisk

Post 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
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply