Skip to contentSkip to conversation

qemu broke booting of old RedHat floppies

DISCUSSION Michael Tokarev 1 participant 2 messages Jan 20, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

20.01.2021 18:11, Michael Tokarev wrote:
..

Quoted 6 lines

Now, I don't even know where to put that "type=144/288/auto" thing, I tried this:

 -drive file=RedHatLinuxBootDisk521998.disk1of1.img,if=floppy,format=raw,type=144

but it says that format=raw does not support "type=144" option.

So I found this:

 $ qemu-system-x86_64 \
  -drive file=RedHatLinuxBootDisk521998.disk1of1.img,if=none,id=d,format=raw \
  -device floppy,drive=d,type=144

But it fails:

qemu-system-x86_64: -device floppy,drive=d,type=144: Insufficient permission to perform this operation

Umm?

/mjt

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

And one more followup to my own email.
As I didn't remember what's the std size of 144M floppy image I weren't able to check, but the file size looked suspectably for me at the very beginning. And indeed, std 144M floppy is smaller than that. After truncating the file to 1440*1024 bytes it works fine. The extra content seem not to belong to the image itself and were added by something on the way to the archive page. So this issue ended up as being a non-issue.

One thing still bothers me:

Quoted 7 lines
  $ qemu-system-x86_64 \
   -drive file=RedHatLinuxBootDisk521998.disk1of1.img,if=none,id=d,format=raw \
   -device floppy,drive=d,type=144

But it fails:

 qemu-system-x86_64: -device floppy,drive=d,type=144: Insufficient permission to perform this operation

This same error message is returned after truncating the image to 1440*1024 bytes. By current qemu 5.2. Why?

Thanks,

/mjt