bdpart and qemu

Simon Perreault simon.perreault at
Thu Dec 2 21:38:04 UTC 2010


I'm trying to mount a filesystem from inside qemu. I run qemu exactly as
described on the wiki [1]:

	$ qemu -hda fat:/home/simon/qemu/hd ...

In my code I do this:

static void *
POSIX_Init(void *arg UNUSED)
        rtems_status_code        status;

        if ((status = rtems_bdpart_register_from_disk("/dev/ide0"))
            != RTEMS_SUCCESSFUL) {
                printf("cannot read partition table from /dev/ide0\n");


And I see this when I execute:

Initialized console on port COM1 9600-8-N-1

IDE0:master:QEMU HARDDISK, 516.0M (16/1152/56), max blk size:8192
cannot read partition table from /dev/ide0

I verified that the /dev/ide0 device exists.

Any idea what might be going on? Does qemu create a partition table with
these flags?


DTN made easy, lean, and smart -->
NAT64/DNS64 open-source        -->
STUN/TURN server               -->

More information about the users mailing list