From: Kevin Wolf <kwolf@redhat.com>
To: Atlas Khan <atlaskhan90@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Qcow file does not mount
Date: Wed, 19 Mar 2014 10:08:08 +0100 [thread overview]
Message-ID: <20140319090808.GB3263@noname.str.redhat.com> (raw)
In-Reply-To: <CAN7x1o6LqB_MYM9Rez3t1QP1d88bkxMnHdArmCBnLOP5Da-=xw@mail.gmail.com>
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
prev parent reply other threads:[~2014-03-19 9:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 6:06 [Qemu-devel] Qcow file does not mount Atlas Khan
2014-03-19 9:08 ` Kevin Wolf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140319090808.GB3263@noname.str.redhat.com \
--to=kwolf@redhat.com \
--cc=atlaskhan90@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).