Help - Search - Members - Calendar
Full Version: Getting Linux To See A Usb Multi Card Reader
Linuxhelp > Support > Technical Support
GiZiM
I have a USB Multi Card reader for my Camera any way to get it to read it?
Jim
Linux has suprisingly good plug and play for how efficient it is. Have you tried just plugging it in and trying to mount it? Since its USB it will probably show up somewhere on /dev/sda or sdb. Try plugging it in and running
mount -t auto /dev/sda1 /mnt/card
Make sure you make the directory you're going to mount it to first.

If that doesn't work, run dmesg or dmesg | less if you can't scroll and see if you can see it in there somewhere. Its gonna be a lot of lines, but it might be in there somewhere. If that doesn't work, come back and we will try some other stuff.
GiZiM
Ok tried that didnt find it so i tried to mount it
yes i am a hella n00b

[root@localhost gizim]# mount -t auto /dev/sda1 /mnt/cardreader
mount: you must specify the filesystem type
[root@localhost gizim]# dmesg
Linux version 2.6.8-1.521 (bhcompile@tweety.build.redhat.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Mon Aug 16 09:01:18 EDT 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000002fff0000 (usable)
BIOS-e820: 000000002fff0000 - 000000002fff3000 (ACPI NVS)
BIOS-e820: 000000002fff3000 - 0000000030000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
767MB LOWMEM available.
zapping low mappings.
On node 0 totalpages: 196592
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 192496 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI: RSDP (v000 VIA694 ) @ 0x000f78b0
ACPI: RSDT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x2fff3000
ACPI: FADT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x2fff3040
ACPI: MADT (v001 VIA694 MSI ACPI 0x42302e31 AWRD 0x00000000) @ 0x2fff5880
ACPI: DSDT (v001 VIA694 AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x4008
Built 1 zonelists
Kernel command line: ro root=LABEL=/ rhgb quiet
mapped 4G/4G trampoline to ffff3000.
Initializing CPU#0
CPU 0 irqstacks, hard=023c7000 soft=023c6000
PID hash table entries: 4096 (order 12: 32768 bytes)
Detected 1394.663 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 775120k/786368k available (2012k kernel code, 10456k reserved, 651k data, 140k init, 0k highmem)
Calibrating delay loop... 2736.12 BogoMIPS
Security Scaffold v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
There is already a security framework initialized, register_security failed.
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: After vendor identify, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0183f3ff c1c7fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Athlon™ processor stepping 04
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 188k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb180, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: IRQ11 SCI: Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
Linux Plug and Play Support v0.97 © Adam Belay
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
ACPI: PCI interrupt 0000:00:07.2[D] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI interrupt 0000:00:07.3[D] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI interrupt 0000:00:07.5[C] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:0c.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:0c.2[B] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:0d.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:0d.1[B] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:0d.2[C] -> GSI 5 (level, low) -> IRQ 5
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 5 (level, low) -> IRQ 5
vesafb: probe of vesafb0 failed with error -6
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1093294729.265:0): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 9488DB81FF525AA3
- User ID: Red Hat, Inc. (Kernel Module GPG key)
ksign: invalid packet (ctb=00)
Unable to load default keyring: error=74
Applying VIA southbridge workaround.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: Processor [CPU0] (supports C1)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 © Dave Jones
agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
agpgart: Maximum main memory to use for agp memory: 690M
agpgart: AGP aperture is 256M @ 0xc0000000
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:DMA, hdd:pio
hda: ST330621A, ATA DISK drive
hdb: WDC WD800BB-00CAA1, ATA DISK drive
Using cfq io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: CD-ROM 56X/AKH, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 58633344 sectors (30020 MB) w/512KiB Cache, CHS=58168/16/63, UDMA(100)
hda: hda1 hda2
hdb: max request size: 128KiB
hdb: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hdb: hdb1
hdc: ATAPI 52X CD-ROM drive, 192kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 37449)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S4 S5)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 140k freed
SELinux: Disabled at runtime.
SELinux: Unregistering netfilter hooks
NET: Registered protocol family 10
Disabled Privacy Extensions on device 0235c2a0(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: PCI interrupt 0000:00:0d.2[C] -> GSI 5 (level, low) -> IRQ 5
ehci_hcd 0000:00:0d.2: EHCI Host Controller
ehci_hcd 0000:00:0d.2: irq 5, pci mem 32868000
ehci_hcd 0000:00:0d.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0d.2: USB 2.0 enabled, EHCI 0.95, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v2.2
ACPI: PCI interrupt 0000:00:07.2[D] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: irq 5, io base 0000c400
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:07.3[D] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:00:07.3: UHCI Host Controller
usb 1-2: new high speed USB device using address 2
uhci_hcd 0000:00:07.3: irq 5, io base 0000c800
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:0d.0[A] -> GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:0d.0: UHCI Host Controller
uhci_hcd 0000:00:0d.0: irq 10, io base 0000e800
uhci_hcd 0000:00:0d.0: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:0d.1[B] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:0d.1: UHCI Host Controller
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
uhci_hcd 0000:00:0d.1: irq 11, io base 0000ec00
uhci_hcd 0000:00:0d.1: new USB bus registered, assigned bus number 5
Vendor: Generic Model: STORAGE DEVICE Rev: 0113
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 2-2: new low speed USB device using address 2
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
input: USB HID v1.00 Mouse [Microsoft Microsoft IntelliMouse� Explorer] on usb-0000:00:07.2-2
EXT3 FS on hda1, internal journal
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
cdrom: open failed.
Adding 818992k swap on /dev/hda2. Priority:-1 extents:1
parport0: PC-style at 0x378 [PCSPP,EPP]
parport_pc: Via 686A parallel port: io=0x378
Device not ready. Make sure there is a disc in the drive.
Device not ready. Make sure there is a disc in the drive.
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
kudzu: Using deprecated /dev/sg mechanism instead of SG_IO on the actual device
inserting floppy driver for 2.6.8-1.521
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
ohci1394: $Rev: 1223 $ Ben Collins <bcollins@debian.org>
ACPI: PCI interrupt 0000:00:0c.2[B] -> GSI 10 (level, low) -> IRQ 10
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[10] MMIO=[db006000-db0067ff] Max Packet=[2048]
Linux Tulip driver version 1.1.13 (May 11, 2002)
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 10 (level, low) -> IRQ 10
tulip0: MII transceiver #1 config 1000 status 786d advertising 01e1.
divert: allocating divert_blk for eth0
eth0: ADMtek Comet rev 17 at 0x32885000, 00:04:E2:06:33:F0, IRQ 10.
divert: freeing divert_blk for eth0
ip_tables: © 2000-2002 Netfilter core team
Linux Tulip driver version 1.1.13 (May 11, 2002)
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 10 (level, low) -> IRQ 10
tulip0: MII transceiver #1 config 1000 status 786d advertising 01e1.
divert: allocating divert_blk for eth0
eth0: ADMtek Comet rev 17 at 0x32885000, 00:04:E2:06:33:F0, IRQ 10.
ip_tables: © 2000-2002 Netfilter core team
eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
eth0: no IPv6 routers present
parport0: PC-style at 0x378 [PCSPP,EPP]
parport_pc: Via 686A parallel port: io=0x378
lp0: using parport0 (polling).
lp0: console ready
ACPI: PCI interrupt 0000:00:0c.0[A] -> GSI 10 (level, low) -> IRQ 10
ACPI: PCI interrupt 0000:00:07.5[C] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:07.5 to 64
NTFS driver 2.1.15 [Flags: R/W MODULE].
NTFS-fs warning (device hdb1): ntfs_fill_super(): Atime updates are not implemented yet. Disabling them.
NTFS volume version 3.1.
NTFS-fs error (device hdb1): ntfs_check_logfile(): The two restart pages in $LogFile do not match.
NTFS-fs error (device hdb1): load_system_files(): Failed to load $LogFile. Mounting read-only. Mount in Windows.
NTFS-fs warning (device hdb1): ntfs_fill_super(): Atime updates are not implemented yet. Disabling them.
NTFS-fs error (device hdb1): parse_options(): Unrecognized mount option umask-0027.
NTFS-fs warning (device hdb1): ntfs_fill_super(): Atime updates are not implemented yet. Disabling them.
NTFS volume version 3.1.
NTFS-fs error (device hdb1): ntfs_check_logfile(): The two restart pages in $LogFile do not match.
NTFS-fs error (device hdb1): load_system_files(): Failed to load $LogFile. Mounting read-only. Mount in Windows.
application firefox-bin uses obsolete OSS audio interface
application mozilla-bin uses obsolete OSS audio interface
application firefox-bin uses obsolete OSS audio interface
application mplayer uses obsolete OSS audio interface
application firefox-bin uses obsolete OSS audio interface
[root@localhost gizim]# cd /dev/sdb1
bash: cd: /dev/sdb1: Not a directory
[root@localhost gizim]# cd /dev/sdb
bash: cd: /dev/sdb: Not a directory
[root@localhost gizim]# cd /dev/sda
bash: cd: /dev/sda: Not a directory
[root@localhost gizim]# cd /dev/sdb
bash: cd: /dev/sdb: Not a directory
[root@localhost gizim]# cd /dev/sda
bash: cd: /dev/sda: Not a directory
[root@localhost gizim]# mount -t auto /dev/sdb1 /mnt/cardreader
mount: you must specify the filesystem type
[root@localhost gizim]# MOTHER!!!
Jim
MOTHER is not a command. Ok, try mount -t vfat /dev/sda1 /mnt/cardreader that might do it.

Your system sees it.
CODE
...
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
...


So its just a matter of getting it mounted. Try using vfat instead of auto. And you had the right idea with switching up the numbers and letters. You can't change into the /dev/device folders because they aren't really folders, at least not the type you can navigate into.
GiZiM
QUOTE (Jim @ Aug 24 2004, 02:36 PM)
MOTHER is not a command. Ok, try mount -t vfat /dev/sda1 /mnt/cardreader that might do it.

Your system sees it.
CODE
...
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
...


So its just a matter of getting it mounted. Try using vfat instead of auto. And you had the right idea with switching up the numbers and letters. You can't change into the /dev/device folders because they aren't really folders, at least not the type you can navigate into.

Hey that got it sweet thanks man
Any way to make a script i can just run like ./cardreader that will run that for me when i put the card in?
Also a way to make a ICON on the Desktop or in the Computer area?
Jim
Making the icon is pretty easy, though I can't exactly remember how to do it.

What you want to do is add a line to /etc/fstab that has all the info in it. The line should look something like this.

/dev/sda1 /mnt/cardreader auto rw,noauto,users 0 0

that will mount the device /dev/sda1 to /mnt/cardreader with auto determined filesystem (you could put in vfat if it gives you trouble) as a read write system, not automatically at boot (as it won't always be there) and allow users to mount and unmount it. Don't worry about the 0 0, just leave it there.

If you add that you should just me able to type mount /mnt/cardreader as a user and get your files.

As for creating a desk top icon, I know you can, but I am not at a linux box right now, fidle around with it. It should be under the right click menu in KDE and GNOME.
GiZiM
QUOTE (Jim @ Aug 25 2004, 08:14 AM)
Making the icon is pretty easy, though I can't exactly remember how to do it.

What you want to do is add a line to /etc/fstab that has all the info in it. The line should look something like this.

/dev/sda1 /mnt/cardreader auto rw,noauto,users 0 0

that will mount the device /dev/sda1 to /mnt/cardreader with auto determined filesystem (you could put in vfat if it gives you trouble) as a read write system, not automatically at boot (as it won't always be there) and allow users to mount and unmount it. Don't worry about the 0 0, just leave it there.

If you add that you should just me able to type mount /mnt/cardreader as a user and get your files.

As for creating a desk top icon, I know you can, but I am not at a linux box right now, fidle around with it. It should be under the right click menu in KDE and GNOME.

Thanks you are great
Jim
Ya let me know how it goes. And thanks for the compliment.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.