* [Qemu-devel] Qcow file does not mount
@ 2014-03-19 6:06 Atlas Khan
2014-03-19 9:08 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Atlas Khan @ 2014-03-19 6:06 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
I am doing a task in which I have to enter some data which is in a
directory in qcow/qcow2 file. The thing I want to ask is that how can I do
this if I have boot looder or guest system in a directory rather than in
iso file. I try to make a qcow image and mount it on my file system.
Process for mounting which i m following is
$ modprobe nbd max_part=63
$ qemu-nbd -c /dev/nbd0 image.img
$ mount /dev/nbd0p1 /mnt/image
I have a qcow file of malta mips. If run these commands on malta mips qcow
file, It mount it. But if i try to mount a qcow file created by following
command
qemu-img create -f qcow2 test.qcow2 10G
it give following error
mount: special device /dev/nbd0p1 does not exist
can any one help me how can I write some data in qcow or mount my qcow file.
[-- Attachment #2: Type: text/html, Size: 1046 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Qcow file does not mount
2014-03-19 6:06 [Qemu-devel] Qcow file does not mount Atlas Khan
@ 2014-03-19 9:08 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2014-03-19 9:08 UTC (permalink / raw)
To: Atlas Khan; +Cc: qemu-devel
Am 19.03.2014 um 07:06 hat Atlas Khan geschrieben:
> I am doing a task in which I have to enter some data which is in a directory in
> qcow/qcow2 file. The thing I want to ask is that how can I do this if I have
> boot looder or guest system in a directory rather than in iso file. I try to
> make a qcow image and mount it on my file system.
> Process for mounting which i m following is
>
> $ modprobe nbd max_part=63
> $ qemu-nbd -c /dev/nbd0 image.img
> $ mount /dev/nbd0p1 /mnt/image
>
> I have a qcow file of malta mips. If run these commands on malta mips qcow
> file, It mount it. But if i try to mount a qcow file created by following
> command
>
> qemu-img create -f qcow2 test.qcow2 10G
>
> it give following error
>
> mount: special device /dev/nbd0p1 does not exist
>
> can any one help me how can I write some data in qcow or mount my qcow file.
A new image is unpartitioned. You need to use something like fdisk on
/dev/nbd0 first in order to create the partitions. After that, you may
or may not need to restart qemu-nbd, not completely sure.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-19 9:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-19 6:06 [Qemu-devel] Qcow file does not mount Atlas Khan
2014-03-19 9:08 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).