OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Sep 17, 2021 6:44 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Qemu: Want to mount a directory as HD
PostPosted: Mon Sep 21, 2020 7:24 am 
Offline
Member
Member

Joined: Fri Nov 22, 2019 5:46 am
Posts: 590
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:
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


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Mon Sep 21, 2020 7:48 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4236
Location: Chichester, UK
Any reason why it has to be a directory and not another image file?


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Mon Sep 21, 2020 7:51 am 
Offline
Member
Member

Joined: Fri Nov 22, 2019 5:46 am
Posts: 590
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


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Mon Sep 21, 2020 8:42 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4236
Location: Chichester, UK
If you only need read access you can use a virtual FAT filesystem: https://en.wikibooks.org/wiki/QEMU/Devices/Storage


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Mon Sep 21, 2020 4:37 pm 
Offline
Member
Member
User avatar

Joined: Fri Feb 17, 2017 4:01 pm
Posts: 601
Location: Ukraine, Bachmut
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. :mrgreen:

_________________
future big goal: ANT - NT-like OS for mips, arm and x86.
current smaller goal: efify - UEFI for a couple of boards (mips and arm).


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Tue Sep 22, 2020 3:20 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 846
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.

_________________
Working on NexNix, which is an attempt to reimagine Unix as much as possible


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Tue Sep 22, 2020 11:57 pm 
Offline
Member
Member

Joined: Sat Jul 02, 2016 7:02 am
Posts: 152
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


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Fri Oct 23, 2020 10:30 am 
Offline

Joined: Fri Jan 31, 2020 7:28 pm
Posts: 8
This StackExchange link might be useful for you

_________________
My public domain NASM OS


Top
 Profile  
 
 Post subject: Re: Qemu: Want to mount a directory as HD
PostPosted: Fri Oct 23, 2020 11:05 am 
Offline
Member
Member
User avatar

Joined: Tue Sep 15, 2020 8:07 am
Posts: 263
Location: London, UK
iansjack wrote:
If you only need read access you can use a virtual FAT filesystem: https://en.wikibooks.org/wiki/QEMU/Devices/Storage


I've been looking for something like this, many thanks for posting!!

_________________
CuriOS: A single address space GUI based operating system built upon a fairly pure Microkernel/Nanokernel. Download latest bootable x86 Disk Image: https://github.com/h5n1xp/CuriOS/blob/main/disk.img.zip
Discord:https://discord.gg/zn2vV2Su


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: aoesiwuyhog and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group