Feature Request: Allow the use of real partitions
Hi,
I don't know if this is the correct place for feature requests, so sorry if it isn't...
Since Qemu allows the use of a real cdrom, why doesn't it support the use of a real hard drive partition (-hdb /dev/hda1 for instance)? Is it hard to make it work? I think this would be a great feature as it allows an easy way to share files without having to configure samba.
Keep up the good work :)
Regards,
Ricardo Almeida
Hi,
Quoted 3 lines · Ricardo Almeida
Since Qemu allows the use of a real cdrom, why doesn't it support the use of a real hard drive partition (-hdb
/dev/hda1for instance)? Is it hard to make it work?
It would be doable. You'd have to fake a real disk around it, but it's easier than the fake vfat support. You could probably pay Fabrice to do it for you.
Quoted 2 lines
I think this would be a great feature as it allows an easy way to share files without having to configure samba.
Well, that is not true. You would run into all kind of problems, because OSes do not like to share control over a hard disk. They just don't expect that something changed, and make inconsitent changes themselves.
Hth,
Dscho
Quoted 4 lines · Ricardo Almeida
Hi,
Since Qemu allows the use of a real cdrom, why doesn't it support the use of a real hard drive partition (-hdb
/dev/hda1for instance)?
It does. You have to use -hdb /dev/hda though, since a full MBR and partition table is required.
I'm actually working on faking the header so qemu -hda /dev/hda1 will work. The issue here is getting the right cylinder/head/track numbers and then making up a suitable partition table entry with the right start and end numbers. There is also the minor issue of what to put in the MBR.
Changes to the partition table will not be remembered in this mode, so turning the one parition into several in the guest would be a VERY BAD idea. In fact, repartitoning at all would be a VERY BAD idea.
Quoted 3 lines
Is it hard to
make it work? I think this would be a great feature as it allows an easy way to share files without having to configure samba.
vvfat is a much easier way. Alas it is only readonly.
Using hard disks, or even just partitions, can be a bad idea. Especially if the host also has them mounted.
Quoted 9 lines
Keep up the good work :)
Regards,
Ricardo Almeida_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Quoted 4 lines · Jim C. Brown
I'm actually working on faking the header so qemu -hda
/dev/hda1will work. The issue here is getting the right cylinder/head/track numbers and then making up a suitable partition table entry with the right start and end numbers. There is also the minor issue of what to put in the MBR.
And the other minor issue that some applications (mainly bootloaders) looks at absolute block numbers on the drive, not just the partition..
Regards
Henrik