I have a vhd disk file which is bootable under qemu but not on the MiSTer (AO486). The message on the MiSTer is: "No bootable device". I don't understand why the file is bootable in qemu but not the MiSTer. Ideas?
Bootable vhd
-
- Top Contributor
- Posts: 622
- Joined: Fri Jan 22, 2021 4:36 pm
- Has thanked: 80 times
- Been thanked: 324 times
Re: Bootable vhd
Plenty, but it's probably geometry. There are many ways in which you can convert a "bunch of sectors" into a Cylinders/Heads/Sectors geometry, and there's no real standard there. The geometry itself is encoded in the form of a few bytes in the BIOS Parameter Block on the volume boot record in FAT filesystems. If that's different from what AO486 emulates, things may well go boom.
-
- Posts: 121
- Joined: Mon May 25, 2020 3:22 pm
- Has thanked: 37 times
- Been thanked: 52 times
- Contact:
Re: Bootable vhd
I had this very issue yesterday.
I resolved it by creating the VHD file on the MiSTer directly from console.
Press F9 to open the console and use these details :-
user = root
password = 1
change into your AO486 directory and run the following command :-
dd if=/dev/zero of=DOS.vhd bs=1M count=2048
you can rename the file by changing DOS.vhd to whatever.vhd
To change the size, alter the last number in the command. You need to specify the size in MB so 2GB is 2048mb
-
- Top Contributor
- Posts: 622
- Joined: Fri Jan 22, 2021 4:36 pm
- Has thanked: 80 times
- Been thanked: 324 times
Re: Bootable vhd
Another reason could be the file format. Something called 'VHD' should be a Microsoft Hyper-V disk image. Those are practically the same as a raw image, usually, except for a 512-byte footer. Unless you have a differential/sparse (whatever the term) image where only occupied sectors are allocated a part of the file itself. Those also have structures in the file header and AO486 won't like those. You could probably use qemu-img to convert to a raw image.
It's been an annoyance of mine for quite a while that this core uses 'vhd' as the extension for files that are not VHD-files at all but just raw sector images.