You are not logged in.

#1 2006-10-01 22:01:06

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

No /dev/fd0 after upgrade

I read the udev readme after the upgrade and have no problems with CDROM, CDRW and USB Key. I do not have a /dev/fd0 though. The default entry in /etc/udev/rules.d/udev.rules is:

# floppy devices
KERNEL=="fd[0-9]*", NAME="fd%n", SYMLINK+="floppy/%n fd%nu1440 fd%nu720 fd%nh120
0 fd%nu360", GROUP="floppy"

And my /etc/fstab has remained unchanged:

/dev/fd0               /mnt/fl   vfat      users,noauto             0      0

What do I need to do to get my floppy back?

Thanks.

Offline

#2 2006-10-02 00:31:22

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: No /dev/fd0 after upgrade

Is the module loaded? I think it's ide-floppy.

Offline

#3 2006-10-02 11:10:45

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: No /dev/fd0 after upgrade

Snowman wrote:

Is the module loaded? I think it's ide-floppy.

I will take a look this evening. Any ideas why it might not be loaded after the upgrade?

Offline

#4 2006-10-02 18:14:47

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: No /dev/fd0 after upgrade

ide_floppy was not loaded. I have added it to the /etc/rc.conf file and rebooted and it is now loaded. Now the bad news - /dev/fd0 is still not being created sad I assume it is a udev rules thing?

Offline

#5 2006-10-03 01:36:26

jourdan
Member
From: Canada
Registered: 2006-01-22
Posts: 40

Re: No /dev/fd0 after upgrade

same problem here.

I couldn't access the floppy through Gnome for the longest time, though prior to this latest upgrade I could still Autofs to it.  Now it just plain doesn't exist.

A similar, possibly related problem is accessing my Zip100 drive.  With the UDEV defaults, Gnome detects but won't mount.  Writing a custom UDEV rule for hdd that creates a symlink to "hdd4" causes Gnome to be able to mount the drive, but it's then registered as a USB disk and I get two icons in Gnome - one for the ZIP and one for the USB.  I can mount/unmount by right-clicking the ZIP icon, and I can access the zip disk by double-clicking the USB disk icon (but I can't unmount using the USB icon).  It's quite a confusing experience!  Autofs works fine on the ZIP drive.

I suspect the floppy problem is a kernel thing, but with my schedule digging into that isn't something I can do right now.  Anyone know anything?

Maybe we could kill Gnome's dependency on HAL and just use AutoFS-controlled directories?    wink

Offline

#6 2006-10-03 01:49:28

jourdan
Member
From: Canada
Registered: 2006-01-22
Posts: 40

Re: No /dev/fd0 after upgrade

:shock:

Just noticed that the light on my ide floppy is permanently ON, like it's trying to read something.  Persists across reboots.  This started after the last

pacman -Syu

I've added ide_floppy to the modules array to see what that'll do.  The fact that the drive is in a constant "read" state can't be good!

Offline

#7 2006-10-03 02:47:08

jourdan
Member
From: Canada
Registered: 2006-01-22
Posts: 40

Re: No /dev/fd0 after upgrade

Update:  Adding the 'ide_floppy' module to the modules array in rc.conf caused the light to go out on my ide_floppy drive, which is a good thing to be sure, but otherwise /dev/fd0 still does not appear.

Offline

#8 2006-10-03 12:06:15

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: No /dev/fd0 after upgrade

jourdan wrote:

Update:  Adding the 'ide_floppy' module to the modules array in rc.conf caused the light to go out on my ide_floppy drive, which is a good thing to be sure, but otherwise /dev/fd0 still does not appear.

I think we are pretty much in the same position now. I am running KDE, though do have Gnome installed. I don't actually know anything about HAL (does that mean that I am not using it?) and do not use Autofs. I usually mount the floppy either via the icon or via the shell.

Offline

#9 2006-10-03 12:53:17

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: No /dev/fd0 after upgrade

I don't have a floppy drive so I can't test but I think that  /dev/fd0 is a symlink pointing to the actual floppy device. You could look in /dev to see if there's a device that looks like a floppy device (from udev rules it should be  /dev/floppy/0 or similar). Maybe for some reason udev doesn't create the symlink anymore. Recently udev has changed the way it handles CD/DVD symlinks so perhaps symlinks for floppy was broken.

Offline

#10 2006-10-03 14:22:23

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: No /dev/fd0 after upgrade

After upgrade, the only thing in /dev that looks (by its filename) something like floppy to me is /dev/fd

# ls -lhd /dev/fd
lrwxrwxrwx 1 root root 13 2006-10-03 13:43 /dev/fd -> /proc/self/fd
# ls -l /dev/fd/
total 4
lrwx------ 1 root root 64 2006-10-03 16:14 0 -> /dev/pts/0
lrwx------ 1 root root 64 2006-10-03 16:14 1 -> /dev/pts/0
lrwx------ 1 root root 64 2006-10-03 16:14 2 -> /dev/pts/0
lr-x------ 1 root root 64 2006-10-03 16:14 3 -> /proc/3879/fd

which is obviously not the floppy device.

As others have noticed, the ide_floppy module is not autoloaded. But even modprobing ide_floppy does not add any file to /dev.

Offline

#11 2006-10-03 16:37:17

m123
Member
Registered: 2006-03-16
Posts: 29

Re: No /dev/fd0 after upgrade

Is the module loaded? I think it's ide-floppy.

I think it is only "floppy" (see http://www.archlinux.org/news/259/).

I generated my mkinitcpio images with that and it works fine under kde and almost fine with the new gnome (although there is a strange behaviour there for which I filed a bug).

Offline

#12 2006-10-03 17:53:52

CavalierBob
Member
From: San Francisco Bay Area
Registered: 2006-07-20
Posts: 110

Re: No /dev/fd0 after upgrade

Michel F wrote:

Is the module loaded? I think it's ide-floppy.

I think it is only "floppy" (see http://www.archlinux.org/news/259/).

I generated my mkinitcpio images with that and it works fine under kde and almost fine with the new gnome (although there is a strange behaviour there for which I filed a bug).

Thanks for pointing us to the solution Michel F!

I just added 'floppy' to MODULES in rc.conf, reboot, and now my floppy mountable.  The floppy doesn't seem to want to automount in Gnome, which I thought would be normal behavior. I have the Preferences set to 'mount removable media when inserted'. Is that related ti the bug you filed?

Bob

Offline

#13 2006-10-05 21:27:30

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: No /dev/fd0 after upgrade

Thanks from me too. I have my floppy back smile

Offline

#14 2006-10-11 21:48:16

Slash
Member
Registered: 2005-04-19
Posts: 66
Website

Re: No /dev/fd0 after upgrade

CavalierBob wrote:

The floppy doesn't seem to want to automount in Gnome, which I thought would be normal behavior. I have the Preferences set to 'mount removable media when inserted'. Is that related ti the bug you filed?

Bob

I don't use Gnome, but I noticed that the permissions of fd0 by default are this:

brw-rw---- 1 root floppy 2, 0 2006-10-11 17:31 /dev/fd0

So your user should probably be added to the "floppy" group (or any user that wants to use the floppy).

gpasswd -a yourusername floppy

Then logout and log back in (which requires you to restart X). I did this and I was able to write to /dev/hd0 (with "dd"... I was writing a floppy image).

Offline

Board footer

Powered by FluxBB