qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] format=raw,readonly errors


From: Markus Armbruster
Subject: Re: [Qemu-devel] format=raw,readonly errors
Date: Mon, 08 May 2017 10:51:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Carl Karsten <address@hidden> writes:

> address@hidden:~/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:
>
> address@hidden:~/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:
>
> address@hidden:~/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 via email to

[Prev in Thread] Current Thread [Next in Thread]