LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-11-2007, 10:39 PM   #1
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Smile Portable USB SD Card Reader


I've got a portable USB SD card reader that I use for my Nikon digital camera, it plugs into a free USB port on my Slackware 11.0 box. I know it is Linux compliant as I've used it in Debian and Ubuntu.
It doesn't seem to show up when I plug it in to my Slack box.
Do I need to mount it at a shell prompt? I mount my cd rom drive with
#mount /mnt/cdrom

Any ideas what command I'd use to mount it and view my SD pictures?
Thank you for any and all replies:-)
 
Old 02-11-2007, 11:13 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
try one or all of the following:

this will show all connected usb devices (as root)
Code:
lsusb
usually all drives available for mounting are listed in '/dev/disk/by-id' (with udev at least):
Code:
ls /dev/disk/by-id
it will be scsi so is listed here: (as root)
Code:
ls /proc/scsi/scsi
 
Old 02-12-2007, 03:39 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Which kernel are you using? And does the card reader have more than one slot?
 
Old 02-12-2007, 07:32 AM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Smile

Quote:
Originally Posted by gnashley
Which kernel are you using? And does the card reader have more than one slot?
I'm running the 2.6.18 kernel in slackware 11.0. The SD reader reads a variety of formats, nine types. But, I just use the SD slot for my camera.
 
Old 02-12-2007, 07:33 AM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Smile

Quote:
Originally Posted by H_TeXMeX_H
try one or all of the following:

this will show all connected usb devices (as root)
Code:
lsusb
usually all drives available for mounting are listed in '/dev/disk/by-id' (with udev at least):
Code:
ls /dev/disk/by-id
it will be scsi so is listed here: (as root)
Code:
ls /proc/scsi/scsi
Thanks, H_TexMeX_H:-)

I'll give your commands a shot:-)
 
Old 02-12-2007, 07:53 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Okay,

Thanks guys:-) Here is as far as I've got. I may need to add my reader to my fstab, maybe. I can see the reader at the shell prompt:-)

Quote:
hitest@slackbox:~$ su
Password:
root@slackbox:/home/hitest# lsusb
Bus 2 Device 1: ID 0000:0000
Bus 2 Device 2: ID 05e3:0710 Genesys Logic, Inc. USB 2.0 33-in-1 Card Reader
Bus 1 Device 1: ID 0000:0000
root@slackbox:/home/hitest# ls /dev/disk/by-id
ata-CRD-8481B_20000229 scsi-35005076104d1e2a7 scsi-35005076104d1e2a7-part2
scsi-35005076104d1d4f7 scsi-35005076104d1e2a7-part1 usb-Generic_STORAGE_DEVICE_136916
root@slackbox:/home/hitest# cd /dev/disk
root@slackbox:/dev/disk# ls
by-id by-path by-uuid
root@slackbox:/dev/disk# cd by-id
root@slackbox:/dev/disk/by-id# ls
ata-CRD-8481B_20000229 scsi-35005076104d1e2a7 scsi-35005076104d1e2a7-part2
scsi-35005076104d1d4f7 scsi-35005076104d1e2a7-part1 usb-Generic_STORAGE_DEVICE_136916
root@slackbox:/dev/disk/by-id# mount usb-Generic_STORAGE_DEVICE_136916
mount: can't find /dev/sdf in /etc/fstab or /etc/mtab
root@slackbox:/dev/disk/by-id#
 
Old 02-12-2007, 08:43 AM   #7
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
My PNY USB card reader didn't work in Slack 10.2. It does now with Slack 11...but only if my pc boots with the card reader pluged into my old Compaq laptop. When it boots it finds LUNS and finds my card reader. I then have to mount it....fdisk -l will show if it's recognized and mount /dev/sda1 /mnt/sda1 will mount sda1 (need to be root).

I haven't put it into /etc/fstab...not sure how it would boot if the reader wasn't there.

Last edited by linuxhippy; 02-12-2007 at 08:46 AM.
 
Old 02-12-2007, 09:48 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You need to run rescan-scsi-bus after plugging it in. This is because multi-card readers are not usually on the first lun or use more than one. The slot you want to use is probably /dev/sd(b,c,d) instead of /dev/sda.
 
Old 02-12-2007, 09:55 AM   #9
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Smile

Quote:
Originally Posted by gnashley
You need to run rescan-scsi-bus after plugging it in. This is because multi-card readers are not usually on the first lun or use more than one. The slot you want to use is probably /dev/sd(b,c,d) instead of /dev/sda.
Okay, thanks, gnashley:-) I'm leaving for work now I'll give it a try tonight:-) After I've run rescan-scsi-bus would I run this?

#mount /dev/sd(b,c,d)

Thanks, man!
 
Old 02-12-2007, 10:07 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
After running rescan-scsi-bus, you should be able to mount on any existing mount-point, like /media/usb.
The basic form is:
mount /dev/sdc1 /media/usb

Note that the partition number may or may not be needed, depending on the sd card itself. Most will have a partition table and you should give the number, but there are some which have no partition table, where you'd mount the completet device without partition number.
 
Old 02-12-2007, 11:53 AM   #11
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Smile

Quote:
Originally Posted by gnashley
After running rescan-scsi-bus, you should be able to mount on any existing mount-point, like /media/usb.
The basic form is:
mount /dev/sdc1 /media/usb

Note that the partition number may or may not be needed, depending on the sd card itself. Most will have a partition table and you should give the number, but there are some which have no partition table, where you'd mount the completet device without partition number.
Thanks, man:-) I'll try this tonight.
 
Old 02-12-2007, 06:10 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Code:
root@slackbox:/home/hitest# ls /dev/disk/by-id
...
usb-Generic_STORAGE_DEVICE_136916
This is the one ... I should have said 'ls -l /dev/disk/by-id', cuz it's a symlink to the real name of the drive.
 
Old 02-12-2007, 07:39 PM   #13
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Okay, I've run a few commands:-) Here's as far as I've got.

Quote:
hitest@slackbox:~$ su
Password:
root@slackbox:/home/hitest# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 2007-02-12 17:27 ata-CRD-8481B_20000229 -> ../../hdc
lrwxrwxrwx 1 root root 9 2007-02-12 17:27 scsi-35005076104d1d4f7 -> ../../sdb
lrwxrwxrwx 1 root root 9 2007-02-12 17:27 scsi-35005076104d1e2a7 -> ../../sda
lrwxrwxrwx 1 root root 10 2007-02-12 17:27 scsi-35005076104d1e2a7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2007-02-12 17:27 scsi-35005076104d1e2a7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 2007-02-12 17:27 usb-Generic_STORAGE_DEVICE_136916 -> ../../sdf
lrwxrwxrwx 1 root root 10 2007-02-12 17:27 usb-Generic_STORAGE_DEVICE_136916-part1 -> ../../sde1
root@slackbox:/home/hitest# rescan-scsi-bus
Host adapter 2 (aic7xxx) found.
Host adapter 3 (usb-storage) found.
Scanning hosts 2 3 channels 0 for
SCSI target IDs 0 1 2 3 4 5 6 7 , LUNs 0
Scanning for device 2 0 5 0 ...
OLD: Host: scsi2 Channel: 00 Id: 05 Lun: 00
Vendor: IBM-PSG Model: DPSS-318350N M Rev: S9AA
Type: Direct-Access ANSI SCSI revision: 03
Scanning for device 3 0 0 0 ...
OLD: Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: Generic Model: STORAGE DEVICE Rev: 9144
Type: Direct-Access ANSI SCSI revision: 02
0 new device(s) found.
0 device(s) removed.
root@slackbox:/home/hitest# cd /
root@slackbox:/# mount /dev/sdc1 /media/usb
mount: mount point /media/usb does not exist
root@slackbox:/# mount /dev/sdc /media/usb
mount: mount point /media/usb does not exist
root@slackbox:/#
 
Old 02-12-2007, 07:57 PM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Code:
lrwxrwxrwx 1 root root 9 2007-02-12 17:27 usb-Generic_STORAGE_DEVICE_136916 -> ../../sdf
it's sdf, so mount it ...

Code:
mount /dev/sdf /mnt/tmp
make sure there is a disk in there ... then you'll be able to write to /mnt/tmp all the files you want to go to disk. Oh, and read files from there too.

Last edited by H_TeXMeX_H; 02-12-2007 at 07:58 PM.
 
Old 02-12-2007, 09:04 PM   #15
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Debian, Slackware, VM: OpenBSD, FreeBSD, Void
Posts: 7,252

Original Poster
Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
Smile

Quote:
Originally Posted by H_TeXMeX_H
Code:
lrwxrwxrwx 1 root root 9 2007-02-12 17:27 usb-Generic_STORAGE_DEVICE_136916 -> ../../sdf
it's sdf, so mount it ...

Code:
mount /dev/sdf /mnt/tmp
make sure there is a disk in there ... then you'll be able to write to /mnt/tmp all the files you want to go to disk. Oh, and read files from there too.
Okay, there's a disk in there, here's the output I get:

Code:
hitest@slackbox:~$ su
Password:
root@slackbox:/home/hitest# mount /dev/sdf /mnt/tmp
mount: No medium found
root@slackbox:/home/hitest# cd /
root@slackbox:/# mount /dev/sdf /mnt/tmp
mount: No medium found
root@slackbox:/#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB jumpdrive/ USB hud-card reader issues o0gnubee0o Linux - Hardware 4 07-03-2005 06:12 PM
USB card reader doctorwebbox Linux - Hardware 1 03-04-2005 11:09 PM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 07:24 PM
Recognizing USB card reader when card is inserted hqo201 Fedora 0 08-02-2004 05:08 PM
USB card reader bitpicker Linux - Hardware 2 10-20-2003 07:40 AM

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

All times are GMT -5. The time now is 10:17 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