kernel's PHP^Wpnp subsystem is broken

Bug #32599 reported by fly_man
80
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Fix Released
High
Unassigned
util-linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

The latest dapper kernel doesn't seem to be friends with PnP, on most machines /sys/bus/pnp/devices is either empty or contains only one or two devices instead of the dozen or so that it used to have.

I have patched the new kernel 2.6.15-16-386 instead of 2.6.15-15-386 and now when I try to mount a floppy on any way it says:
mount: i could not determine the filesystem type, and none was specified

In /etc/fstab I have for floppy:
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
Also when I try to mount the floppy manual it says that the device /dev/fd0 is not exist or allready mounted. So I tryed to find this device manually, and now with ls /dev/f* I get:
/dev/fb0 /dev/full

/dev/fd:
0 1 2 3
So I noticed that fd0 is gone and I am confused!?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Upgraded to linux-image-2.6.15-16-386 (2.6.15-16.23) from a clean dapper flight 4 install. There is no /dev/fd0.

With the original kernel there is a /dev/fd0 and /sys/block/fd0/ entries. The floppy works (I have to mount it manually, because my test floppy needs "-t msdos", and does not work with "auto".)

Revision history for this message
Tormod Volden (tormodvolden) wrote : Re: Problem with mounting floppy

With linux-image-2.6.15-16-386, I have to do "sudo modprobe floppy". Then the floppy works ok. Except for some other floppy bugs like bug #28783. And I have a "Floppy Drive" and a "Floppy 1" in my Nautilus "Computer" view.

Changed in linux-meta:
status: Unconfirmed → Confirmed
Revision history for this message
Matti Lindell (mlind) wrote :

seems like kernel upgrade 2.6.15-16-386 broke something.

I had to create /dev/fd0 manually using 'mknod' -command.
(tried MAKEDEV script too, but it didn't work)

Revision history for this message
Matti Lindell (mlind) wrote :

uh, I just had to modprobe floppy.
Has floppy been on /etc/modules before?

Revision history for this message
Martin Pitt (pitti) wrote :

Rejecting the task in util-linux, that's either an udev or kernel fault.

Changed in util-linux:
status: Unconfirmed → Rejected
Revision history for this message
Martin Pitt (pitti) wrote : Re: floppy module not loaded automatically after kernel upgrade

Scott, is the module 'floppy' supposed to be loaded automatically? Is that really a kernel bug, or something udevish?

(I do not have any floppy any more, I can't try)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Me neither.

It doesn't declare any aliases ... that in itsself could be considered a "kernel bug" I guess - but then I don't think floppy drives show up under any bus I'm aware of

It's probably a good example of "load it if you have one", with no way of finding out whether you have one except by loading the module.

It's not a udev bug anyway; nothing for udev to get involved with here. Either we stick "floppy" in /etc/modules, or we build it in.

I'm almost wondering why it's a module at all.. Ben?

Revision history for this message
Ben Collins (ben-collins) wrote :

I don't want to build it into the kernel, because then there's no real way to disable it on buggy hardware.

Let's just stick it in /etc/modules

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Colin, can you add floppy to whatever writes /etc/modules for the appropriate platforms

Revision history for this message
Colin Watson (cjwatson) wrote :

hw-detect already adds floppy to /etc/modules for everything other than NewWorld PowerMacs, and has done so since Warty.

Is this happening on a live CD or something like that?

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Are you sure?

floppy isn't in /etc/modules on my fresh Dapper install.

Revision history for this message
Colin Watson (cjwatson) wrote :

My bad; I misread the code. It was loading floppy during installation but wasn't registering it for addition to /etc/modules.

hw-detect (1.32ubuntu4) dapper; urgency=low

  * Add floppy to /etc/modules (closes: Malone #32599).

 -- Colin Watson <email address hidden> Tue, 28 Feb 2006 11:03:44 +0000

This won't take effect until the next rebuild of debian-installer.

Changed in linux-meta:
assignee: nobody → kamion
status: Confirmed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

I've reverted this hw-detect change in version 1.32ubuntu5; Scott says the kernel's PnP subsystem is in fact broken and that's where the fix should go.

Changed in hw-detect:
status: Fix Released → Confirmed
Changed in linux-source-2.6.15:
assignee: kamion → nobody
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Aye.

Ben, ls /sys/bus/pnp/devices ... there's supposed to be a dozen things in there, not nothing :)

summary: + The latest dapper kernel doesn't seem to be friends with PnP, on most
+ machines /sys/bus/pnp/devices is either empty or contains only one or
+ two devices instead of the dozen or so that it used to have.
Revision history for this message
Matti Lindell (mlind) wrote :

Hi, what's the current status of this bug?
on flight5 floppy must be still modprobed separately.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Is this related?

[4294671.598000] pnp: PnP ACPI init
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c01
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c02
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0200
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0b00
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0800
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c04
[4294671.598000] pnp: PnPACPI: unknown resource type 7
[4294671.598000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0700
[4294671.599000] pnp: PnPACPI: unknown resource type 7
[4294671.599000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0501
[4294671.600000] pnp: PnPACPI: unknown resource type 7
[4294671.600000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0401
[4294671.600000] pnp: PnPACPI: unknown resource type 7
[4294671.600000] pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0303
[4294671.600000] pnp: PnP ACPI: found 0 devices
[4294671.600000] PnPBIOS: Disabled by ACPI PNP

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The "floppy" module still has to be loaded manually in Flight-6. A msdos floppy is also not recognised, because the "msdos" module is not loaded.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

After recent updates, notably kernel 2.6.15-20, the "floppy" module is automatically loaded. However "msdos" is not.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

msdos will be automatically loaded should you try and mount a filesystem of that type

chances are that "vfat" will be loaded instead, of course

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Yes, if I manually do mount -t msdos /dev/fd0 /mnt it works. My point is that double clicking on the floppy icon in gnome won't work, neither would using mount without specifying fs (autodetection). After loading the module, autodetection works.

$ sudo mount /dev/fd0 /mnt
mount: you must specify the filesystem type
$ sudo modprobe msdos
$ sudo mount /dev/fd0 /mnt
$

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This is a known bug, and there are ways to fix it; HAL has recently gained support for knowing the type of a filesystem before it's mounted so the right arguments can be passed to mount.

Revision history for this message
Ben Collins (ben-collins) wrote :

PNP stuff should be working again, for the kernel at least.

Changed in linux-source-2.6.15:
status: Confirmed → Fix Released
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Just want to confirm that the msdos floppies now are recognized automatically. (dapper beta 2)

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The msdos floppies are not recognised any longer, it's like in comment #20. Must be a regression from beta-2. Obviously, I don't use floppies that often :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.