All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Carl Karsten <carl@personnelware.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] format=raw,readonly errors
Date: Mon, 08 May 2017 10:51:50 +0200	[thread overview]
Message-ID: <87wp9r689l.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <CADmzSSiQYXzJf0vzhyaXdncZaq9gzPrN0BRm4_OOpPv+wJ9Bjw@mail.gmail.com> (Carl Karsten's message of "Sun, 7 May 2017 23:28:52 -0500")

Carl Karsten <carl@personnelware.com> writes:

> juser@gator:~/temp$ qemu-system-x86_64 -m 256 -display curses  -drive
> file=disk.cow -drive file=boot.img
> WARNING: Image format was not specified for 'boot.img' and probing guessed
> raw.
>          Automatically detecting the format is dangerous for raw images,
> write operations on block 0 will be restricted.
>          Specify the 'raw' format explicitly to remove the restrictions.
>
> This is OK, as I don't want anything writing to that thing anyway.  So to
> get rid of the waring:
>
> juser@gator:~/temp$ qemu-system-x86_64 -drive
> file=boot.img,format=raw,readonly qemu-system-x86_64: Can't use a read-only
> drive
> qemu-system-x86_64: Initialization of device ide-hd failed: Device
> initialization failed.

-drive without if=... creates an IDE disk[*].  IDE disks can't do
read-only.  Have you tried omitting ",readonly"?

> hmm... one more try:
>
> juser@gator:~/temp$ qemu-system-x86_64 -m 256 -display curses  -drive
> file=disk.cow,readonly
> qemu-system-x86_64: Can't use a read-only drive
> qemu-system-x86_64: Initialization of device ide-hd failed: Device
> initialization failed.


[*] It actually depends on the machine, but I figure that's of no
interest to you.

  reply	other threads:[~2017-05-08  8:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08  4:28 [Qemu-devel] format=raw,readonly errors Carl Karsten
2017-05-08  8:51 ` Markus Armbruster [this message]
2017-05-08 14:15   ` Carl Karsten
2017-05-08 15:32     ` John Snow
2017-05-08 15:56       ` Carl Karsten
2017-05-08 16:29         ` Eric Blake
2017-05-08 16:33           ` Carl Karsten
2017-05-08 16:39             ` Eric Blake
2017-05-08 16:43               ` Eric Blake
2017-05-08 16:47             ` Max Reitz
2017-05-08 16:00       ` Daniel P. Berrange

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=87wp9r689l.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=carl@personnelware.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.