LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-16-2005, 05:43 AM   #1
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
USB Floppy Drive -- need help


Hi, I have a usb floppy drive that I am unable to mount. I am using kernel version 2.6.11, so need to play with udev to get it to work.

On plugging in the floppy drive it's assigned /dev/sda. Using the output from
Code:
udevinfo -a -p $(udevinfo -q path -n /dev/sda)|less
I use the rule

Code:
SYSFS{manufacturer}="TEAC"
.

So using this I add the following rule to /etc/udev/rules.d/udev.rules:
Code:
BUS="usb", KERNEL="sd[a-z]*", SYSFS{manufacturer}="TEAC",       NAME="%k", SYMLINK="usb/floppy"
udevtest confirms that this rule correctly assigns the link /dev/usb/floppy. So I unplug and replugin the flopppy drive, the link /dev/usb/floppy pointing correctly to /dev/sda.


The problem is that I cannot figure out how to mount a floppy disk. Using a msdos formatted disk I added the following line to /etc/fstab:
Code:
/dev/usb/floppy   /mnt/floppy    msdos    noauto,users,rw  0  0
When I try to mount the floppy I recieve the following output (after sitting idle for a few seconds):
Code:
mount: /dev/fd0 is not a valid block device
How do I fix this problem? Any help would be appreciated. If you need anymore information please let me now. Thanks.

The complete output from
Code:
udevinfo -a -p $(udevinfo -q path -n /dev/sda)|less
is:

Code:
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

device '/sys/block/sda' has major:minor 8:0
  looking at class device '/sys/block/sda':
    SUBSYSTEM="block"
    SYSFS{dev}="8:0"
    SYSFS{range}="16"
    SYSFS{removable}="1"
    SYSFS{size}="0"
    SYSFS{stat}="       0        0        0        0        0        0        0        0        0        0        0"

follow the class device's "device"
  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1/usb3/3-2/3-2:1.0/host0/target0:0:0/0:0:0:0':
    BUS="scsi"
    ID="0:0:0:0"
    DRIVER="sd"
    SYSFS{detach_state}="0"
    SYSFS{device_blocked}="0"
    SYSFS{max_sectors}="240"
    SYSFS{model}="FD-05PUW        "
    SYSFS{queue_depth}="1"
    SYSFS{queue_type}="none"
    SYSFS{rev}="2000"
    SYSFS{scsi_level}="3"
    SYSFS{state}="running"
    SYSFS{timeout}="30"
    SYSFS{type}="0"
    SYSFS{vendor}="TEAC    "

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1/usb3/3-2/3-2:1.0/host0/target0:0:0':
    BUS=""
    ID="target0:0:0"
    DRIVER="unknown"
    SYSFS{detach_state}="0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1/usb3/3-2/3-2:1.0/host0':
    BUS=""
    ID="host0"
    DRIVER="unknown"
    SYSFS{detach_state}="0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1/usb3/3-2/3-2:1.0':
    BUS="usb"
    ID="3-2:1.0"
    DRIVER="usb-storage"
    SYSFS{bAlternateSetting}=" 0"
    SYSFS{bInterfaceClass}="08"
    SYSFS{bInterfaceNumber}="00"
    SYSFS{bInterfaceProtocol}="00"
    SYSFS{bInterfaceSubClass}="04"
    SYSFS{bNumEndpoints}="03"
    SYSFS{detach_state}="0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1/usb3/3-2':
    BUS="usb"
    ID="3-2"
    DRIVER="usb"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bDeviceClass}="00"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bMaxPower}="500mA"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bcdDevice}="0000"
    SYSFS{bmAttributes}="80"
    SYSFS{detach_state}="0"
    SYSFS{devnum}="2"
    SYSFS{idProduct}="0000"
    SYSFS{idVendor}="0644"
    SYSFS{manufacturer}="TEAC    "
    SYSFS{maxchild}="0"
    SYSFS{product}="TEAC FD-05PUW   "
    SYSFS{speed}="12"
    SYSFS{version}=" 2.00"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1/usb3':
    BUS="usb"
    ID="usb3"
    DRIVER="usb"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bDeviceClass}="09"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bMaxPower}="  0mA"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bcdDevice}="0206"
    SYSFS{bmAttributes}="c0"
    SYSFS{detach_state}="0"
    SYSFS{devnum}="1"
    SYSFS{idProduct}="0000"
    SYSFS{idVendor}="0000"
    SYSFS{manufacturer}="Linux 2.6.11-nitro2 uhci_hcd"
    SYSFS{maxchild}="2"
    SYSFS{product}="VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)"
    SYSFS{serial}="0000:00:0b.1"
    SYSFS{speed}="12"
    SYSFS{version}=" 1.10"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0b.1':
    BUS="pci"
    ID="0000:00:0b.1"
    DRIVER="uhci_hcd"
    SYSFS{class}="0x0c0300"
    SYSFS{detach_state}="0"
    SYSFS{device}="0x3038"
    SYSFS{irq}="10"
    SYSFS{local_cpus}="1"
    SYSFS{subsystem_device}="0x0850"
    SYSFS{subsystem_vendor}="0x103c"
    SYSFS{vendor}="0x1106"

  looking at the device chain at '/sys/devices/pci0000:00':
    BUS=""
    ID="pci0000:00"
    DRIVER="unknown"
    SYSFS{detach_state}="0"
 
Old 05-16-2005, 06:00 AM   #2
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Quote:
mount: /dev/fd0 is not a valid block device
An odd error message for a device on /dev/sda!

What happens when you try (as root):

mount -t vfat /dev/sda /mnt/floppy

?
 
Old 05-17-2005, 05:26 AM   #3
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Nobber
An odd error message for a device on /dev/sda!

What happens when you try (as root):

mount -t vfat /dev/sda /mnt/floppy

?
it works, thanks nobber.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using USB Floppy Drive on KNOPPIX3.7 x NiVeK x Linux - Newbie 1 03-02-2005 12:01 AM
USB floppy drive linuxnoobhelp Linux - Hardware 1 12-07-2004 08:22 PM
ZipSlack on USB drive--Need a USB-enabled floppy? Adrohak Linux - Hardware 0 11-15-2004 09:14 AM
USB Floppy Drive Craigwd Debian 1 06-20-2004 10:52 AM
usb floppy drive taizhu Linux - Hardware 16 11-02-2003 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration