Page 1 of 1
Qemu: Want to mount a directory as HD
Posted: Mon Sep 21, 2020 7:24 am
by PeterX
I have a Qemu problem. I already searched the man page.
I have a HD image file (called ReactOS.img) and
want a directory (called ros-hd) to be used as second HD.
I envoke:
Code: Select all
qemu-system-x86_64 -L . -m 1024 -hda ReactOS.img -hdb ros-hd
But it expects a file for "-hdb", not a directory.
Any help?
Greetings and thanks in advance
Peter
Re: Qemu: Want to mount a directory as HD
Posted: Mon Sep 21, 2020 7:48 am
by iansjack
Any reason why it has to be a directory and not another image file?
Re: Qemu: Want to mount a directory as HD
Posted: Mon Sep 21, 2020 7:51 am
by PeterX
iansjack wrote:Any reason why it has to be a directory and not another image file?
I want to try to run Windows programs I download (which don't work with Wine). For example games.
I could create an image file every time I download a program but I would like to avoid that.
Greetings
Peter
Re: Qemu: Want to mount a directory as HD
Posted: Mon Sep 21, 2020 8:42 am
by iansjack
If you only need read access you can use a virtual FAT filesystem:
https://en.wikibooks.org/wiki/QEMU/Devices/Storage
Re: Qemu: Want to mount a directory as HD
Posted: Mon Sep 21, 2020 4:37 pm
by zaval
create a small .vhd file and use it as a second hard drive. but if you want to use ReactOS for running "some games", I think, you are gonna get a lot of adventures.
Re: Qemu: Want to mount a directory as HD
Posted: Tue Sep 22, 2020 3:20 pm
by nexos
zaval wrote:but if you want to use ReactOS for running "some games", I think, you are gonna get a lot of adventures.
Someone's got to test them. PeterX just wants to see what it'll be like.
Re: Qemu: Want to mount a directory as HD
Posted: Tue Sep 22, 2020 11:57 pm
by linuxyne
If it is the contents of the directory that's actually important, try 9pfs. But, guest (ReactOS here, I suppose) needs to support the particular devices that are involved.
[1]https://www.linux-kvm.org/page/9p_virtio
Re: Qemu: Want to mount a directory as HD
Posted: Fri Oct 23, 2020 10:30 am
by FranchuFranchu
Re: Qemu: Want to mount a directory as HD
Posted: Fri Oct 23, 2020 11:05 am
by bloodline
I've been looking for something like this, many thanks for posting!!