fedora and how to get mass storage devices (memory card readers) to work

fedora and how to get mass storage devices (memory card readers) to work

am 13.04.2004 04:59:03 von Rei Shinozuka

also, /var/log/messages reports:

[root@tuxedo shino]# tail -f /var/log/messages
Apr 12 22:36:57 tuxedo kernel: cdrom: This disc doesn't have any tracks I recognize!
Apr 12 22:37:01 tuxedo kernel: cdrom: This disc doesn't have any tracks I recognize!
Apr 12 22:48:44 tuxedo kernel: spurious 8259A interrupt: IRQ7.
Apr 12 22:50:54 tuxedo kernel: usb.c: USB disconnect on device 00:02.2-6 address 2
Apr 12 22:50:54 tuxedo devlabel: devlabel service started/restarted
Apr 12 22:50:56 tuxedo kernel: hub.c: new USB device 00:02.2-6, assigned address 3
Apr 12 22:50:56 tuxedo kernel: usb.c: USB device not accepting new address=3 (error=-71)
Apr 12 22:50:56 tuxedo kernel: hub.c: new USB device 00:02.2-6, assigned address 4
Apr 12 22:50:59 tuxedo usb.agent[25333]: missing kernel or user mode driver usb-storage
Apr 12 22:51:00 tuxedo devlabel: devlabel service started/restarted

----- Forwarded message from Rei Shinozuka -----

Subject: fedira and how to get mass storage devices (memory card readers) to work
From: Rei Shinozuka
Date: Mon, 12 Apr 2004 22:54:02 -0400
To: Newbie Linux Users

a real newbie-type question.

in my 2.4.7-10 RH7.2 i just put in my /etc/fstab
/dev/sda1 /mnt/camera auto noauto,owner,kudzu 0 0

then i could just mount my cameras and cards (in a lexar reader)
nad they were just files on /mnt/camera.

but now i get mount: /dev/sda1 is not a valid block device
brw-rw---- 1 root disk 8, 1 Sep 15 2003 /dev/sda1

anything i am doing wrong? BTW, i do also have a USB HP printer
on the machine, which works fine.

thanks,

-rei
--
Rei Shinozuka shino@panix.com
Ridgewood, New Jersey

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

----- End forwarded message -----

--
Rei Shinozuka shino@panix.com
Ridgewood, New Jersey

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: fedora and how to get mass storage devices (memory card readers) to work

am 13.04.2004 07:54:03 von Richard Adams

On Tuesday 13 April 2004 04:59, Rei Shinozuka wrote:
> Apr 12 22:50:59 tuxedo usb.agent[25333]: missing kernel or user mode driver
> usb-storage

missing support for usb-storage, possably its a module and its not getting
loaded.

modprobe usb-storage

before plugging in the device.

--
If the Linux community is a bunch of theives because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: fedora and how to get mass storage devices (memory card readers) to work

am 13.04.2004 18:16:59 von John Kelly

On Mon, 12 Apr 2004 22:59:03 -0400
Rei Shinozuka wrote:

> also, /var/log/messages reports:
>
> [root@tuxedo shino]# tail -f /var/log/messages
> Apr 12 22:36:57 tuxedo kernel: cdrom: This disc doesn't have any
> tracks I recognize! Apr 12 22:37:01 tuxedo kernel: cdrom: This disc
> doesn't have any tracks I recognize! Apr 12 22:48:44 tuxedo kernel:
> spurious 8259A interrupt: IRQ7. Apr 12 22:50:54 tuxedo kernel:
> usb.c: USB disconnect on device 00:02.2-6 address 2 Apr 12 22:50:54
> tuxedo devlabel: devlabel service started/restarted Apr 12 22:50:56
> tuxedo kernel: hub.c: new USB device 00:02.2-6, assigned address 3
> Apr 12 22:50:56 tuxedo kernel: usb.c: USB device not accepting new
> address=3 (error=-71) Apr 12 22:50:56 tuxedo kernel: hub.c: new USB
> device 00:02.2-6, assigned address 4 Apr 12 22:50:59 tuxedo
> usb.agent[25333]: missing kernel or user mode driver usb-storage Apr
> 12 22:51:00 tuxedo devlabel: devlabel service started/restarted
>
< Rest deleted....>

Hi,
Here are the commands I use to view files on my camera. I have
problems remembering how to do things so the commands are in a file.
:-)


jpk@debian:~$ cat mounting_a_usb_tingy.txt
# usbview
# lsmod
# modprobe usb-storage
# mount -t usbdevfs 0 /proc/bus/usb
# mount -t vfat /dev/sda1 /mnt/usb/

usbview shows what usb devices are connected to the machine.
lsmod
shows what modules are loaded.
You need the usb-storage modules (or have it compiled into the
kernel), so modprobe usb-storage loads the usb storage module.
I think you might also need the generic SCCI module too. If so you may
have to do: modprobe sg
I can't remember the details about the next command but it is
necessary on my machine mount -t usbdevfs 0 /proc/bus/usb
And finally, I mount the filesystem manually with
mount -t vfat /dev/sda1 /mnt/usb/

Hope this helps.

reagards,

John Kelly



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

fedora and how to get mass storage devices (memory card readers) to work

am 14.04.2004 04:34:55 von Rei Shinozuka

well, lsmod did show:


Module Size Used by Tainted: P
usb-storage 75136 0
.....

and interestingly, usbview
showed the the card reader is recognized:

http://www.shinozuka-family.com/USBViewer.jpg

but the last 2 commands return errors:

[root@tuxedo root]# mount -t usbdevfs 0 /proc/bus/usb
mount: 0 already mounted or /proc/bus/usb busy
mount: according to mtab, usbdevfs is already mounted on /proc/bus/usb
[root@tuxedo root]# mount -t vfat /dev/sda1 /mnt/usb/
mount: /dev/sda1 is not a valid block device
[root@tuxedo root]#

i feel we are getting closer!!

thanks,

-rei


On Apr13 17:16, John Kelly wrote:
> On Mon, 12 Apr 2004 22:59:03 -0400
> Rei Shinozuka wrote:
>
> > also, /var/log/messages reports:
> >
> > [root@tuxedo shino]# tail -f /var/log/messages
> > Apr 12 22:36:57 tuxedo kernel: cdrom: This disc doesn't have any
> > tracks I recognize! Apr 12 22:37:01 tuxedo kernel: cdrom: This disc
> > doesn't have any tracks I recognize! Apr 12 22:48:44 tuxedo kernel:
> > spurious 8259A interrupt: IRQ7. Apr 12 22:50:54 tuxedo kernel:
> > usb.c: USB disconnect on device 00:02.2-6 address 2 Apr 12 22:50:54
> > tuxedo devlabel: devlabel service started/restarted Apr 12 22:50:56
> > tuxedo kernel: hub.c: new USB device 00:02.2-6, assigned address 3
> > Apr 12 22:50:56 tuxedo kernel: usb.c: USB device not accepting new
> > address=3 (error=-71) Apr 12 22:50:56 tuxedo kernel: hub.c: new USB
> > device 00:02.2-6, assigned address 4 Apr 12 22:50:59 tuxedo
> > usb.agent[25333]: missing kernel or user mode driver usb-storage Apr
> > 12 22:51:00 tuxedo devlabel: devlabel service started/restarted
> >
> < Rest deleted....>
>
> Hi,
> Here are the commands I use to view files on my camera. I have
> problems remembering how to do things so the commands are in a file.
> :-)
>
>
> jpk@debian:~$ cat mounting_a_usb_tingy.txt
> # usbview
> # lsmod
> # modprobe usb-storage
> # mount -t usbdevfs 0 /proc/bus/usb
> # mount -t vfat /dev/sda1 /mnt/usb/
>
> usbview shows what usb devices are connected to the machine.
> lsmod
> shows what modules are loaded.
> You need the usb-storage modules (or have it compiled into the
> kernel), so modprobe usb-storage loads the usb storage module.
> I think you might also need the generic SCCI module too. If so you may
> have to do: modprobe sg
> I can't remember the details about the next command but it is
> necessary on my machine mount -t usbdevfs 0 /proc/bus/usb
> And finally, I mount the filesystem manually with
> mount -t vfat /dev/sda1 /mnt/usb/
>
> Hope this helps.
>
> reagards,
>
> John Kelly
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

--
Rei Shinozuka shino@panix.com
Ridgewood, New Jersey

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: fedora and how to get mass storage devices (memory card readers) to work

am 14.04.2004 19:16:41 von John Kelly

Hi,

On Tue, 13 Apr 2004 22:34:55 -0400
Rei Shinozuka wrote:

> well, lsmod did show:
>
>
> Module Size Used by Tainted: P
> usb-storage 75136 0
> ....
>
> and interestingly, usbview
> showed the the card reader is recognized:
>
> http://www.shinozuka-family.com/USBViewer.jpg
>
> but the last 2 commands return errors:
>
> [root@tuxedo root]# mount -t usbdevfs 0 /proc/bus/usb
> mount: 0 already mounted or /proc/bus/usb busy
> mount: according to mtab, usbdevfs is already mounted on
> /proc/bus/usb[root@tuxedo root]# mount -t vfat /dev/sda1 /mnt/usb/
> mount: /dev/sda1 is not a valid block device
> [root@tuxedo root]#
>
> i feel we are getting closer!!
>
> thanks,
>
The error you get while trying to mount usbdevfs is a good thing - it
shows ussbdevfs is already mounted. Well there is one other thing, is
generic SCCI support enabled? This can be compiled into the kernel or
loaded as a module. lsmod should show the generic SCCI module as sg.
For example on my system, I get:

jpk@debian:~$ /sbin/lsmod | grep sg
sg 24420 0 (unused)

And if SCCI support is in the kernel (either as a module or compiled
in) and you still get an error trying to mount /dev/sda1, then I would
suggest trying to mount another SCCI drive. ie. Try
mount -t vfat /dev/sda2 /mnt/usb/
or
mount -t vfat /dev/sdb1 /mnt/usb/

I am not sure but I seem to recall that with generic scci, the first
'thingy' to use it gets the first scci device ie /dev/sda and the next
'thingy' gets the next scci device. So if something is using /dev/sda1
- for example a cd writer - then the usb device will be the next
available scci device.

regards,

John Kelly
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs