LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB Floppy Drive -- need help (https://www.linuxquestions.org/questions/slackware-14/usb-floppy-drive-need-help-323957/)

KMcD 05-16-2005 05:43 AM

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"


Nobber 05-16-2005 06:00 AM

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

?

KMcD 05-17-2005 05:26 AM

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.


All times are GMT -5. The time now is 07:27 AM.