Project

General

Profile

Actions

Bug #1452

closed

/dev/fd0 + devfs = panic

Added by swildner over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Accessing a floppy drive reliably panics the system, at least in the
Parallels Workstation and (as others reported) VirtualBox VMs.

See this screenshot: http://yoyodyne.ath.cx/tmp/2009.08.15-21.43.22.bmp

I can easily test fixes here, if needed.

Sascha

Actions #1

Updated by swildner over 14 years ago

Sascha Wildner schrieb:

See this screenshot: http://yoyodyne.ath.cx/tmp/2009.08.15-21.43.22.bmp

Shorter jpeg here: http://yoyodyne.ath.cx/tmp/2009.08.15-21.43.22.jpg

Sascha

Actions #2

Updated by dillon over 14 years ago

Try this:

fetch http://apollo.backplane.com/DFlyMisc/fd01.patch
It will be a little wonky but it should work.  /dev/fd0 and /dev/fd0a
should show up permanently. Other partitions/slices may show up
if you fdisk/disklabel it, but only after you open() /dev/fd0 because
the device driver does not detect floppy insertion and thus does not
auto probe on floppy insertion.
-Matt
Matthew Dillon
<>
Actions #3

Updated by swildner over 14 years ago

Matthew Dillon schrieb:

Try this:

fetch http://apollo.backplane.com/DFlyMisc/fd01.patch

It will be a little wonky but it should work. /dev/fd0 and /dev/fd0a
should show up permanently. Other partitions/slices may show up
if you fdisk/disklabel it, but only after you open() /dev/fd0 because
the device driver does not detect floppy insertion and thus does not
auto probe on floppy insertion.

Thanks, it fixes the panic and a quick test of tar'ing to/from the VM's
floppy works.

It does output "fd0: slice starts beyond end of the disk: rejecting it"
(4 times) and "fd0: Seek to cyl 0, but not really there (ST3 =
80<fault>)" messages.

If that can't be helped, I'd say commit it anyways.

Sascha

Actions

Also available in: Atom PDF