Card Reader

Card Reader

am 07.04.2005 22:35:47 von smertz

I have a new computer I installed Linux on Red Hat Enterprise Linux ES
release 4 (Nahant), it has one of those all-in-one card readers on it. I
have made mountpoints as root as follows for my thumb, Compact flash and
secure digital drive.

mkdir /mnt/thumb
mkdir /mnt/cf
mkdir /mnt/sd


Now when I tried to mount the Thumb (USB) drive I got an error # mount
/dev/sda2 /mnt/thumb
mount: /dev/sda2 already mounted or /mnt/thumb busy.


So what have I done wrong? I'm thinking sda2 is wrong, but don't know why?

df -h shows the following

[root localhost mnt]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
183G 2.9G 171G 2% /
/dev/sda1 99M 19M 76M 20% /boot
none 247M 0 247M 0% /dev/shm
[root localhost mnt]#


Thanks.

-
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: Card Reader

am 07.04.2005 23:29:00 von James Miller

On Thu, 7 Apr 2005, smertz wrote:

> I have a new computer I installed Linux on Red Hat Enterprise Linux ES
> release 4 (Nahant), it has one of those all-in-one card readers on it. I have
> made mountpoints as root as follows for my thumb, Compact flash and secure
> digital drive.
>
> mkdir /mnt/thumb
> mkdir /mnt/cf
> mkdir /mnt/sd
>
>
> Now when I tried to mount the Thumb (USB) drive I got an error # mount
> /dev/sda2 /mnt/thumb
> mount: /dev/sda2 already mounted or /mnt/thumb busy.
>
>
> So what have I done wrong? I'm thinking sda2 is wrong, but don't know why?
>
> df -h shows the following
>
> [root localhost mnt]# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
> 183G 2.9G 171G 2% /
> /dev/sda1 99M 19M 76M 20% /boot
> none 247M 0 247M 0% /dev/shm
> [root localhost mnt]#

I haven't used RH for a couple of years--before the days of autmounting
stuff, or at least toward the beginning of that trend. Isn't 4 the very
latest release? Distros that have come out in the last year or so,
especially those that use the 2.6.x kernel, seem to all be using some sort
of virtual filesystem and often do automounting of inserted media and mass
storage devices. Might not your RH version be one of these? Did you
recently post something indicating your distro is using LVM? I'm guessing
the system automounts that drive when you insert it. Have you searched
around the system for indications that it's already mounted and/or its
mount point? I'd kind of doubt that with such a recent distro you'd have
to do any manual mounting. But this is somewhat circumstantial: as I said,
I haven't used RH for a couple of years or so (since 7.3).

James
-
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: Card Reader

am 07.04.2005 23:30:36 von Ray Olszewski

At 02:35 PM 4/7/2005 -0600, smertz wrote:
>I have a new computer I installed Linux on Red Hat Enterprise Linux ES
>release 4 (Nahant), it has one of those all-in-one card readers on it. I
>have made mountpoints as root as follows for my thumb, Compact flash and
>secure digital drive.
>
>mkdir /mnt/thumb
>mkdir /mnt/cf
>mkdir /mnt/sd
>
>
>Now when I tried to mount the Thumb (USB) drive I got an error # mount
>/dev/sda2 /mnt/thumb
>mount: /dev/sda2 already mounted or /mnt/thumb busy.
>
>
>So what have I done wrong? I'm thinking sda2 is wrong, but don't know why?
>
>df -h shows the following
>
>[root localhost mnt]# df -h
>Filesystem Size Used Avail Use% Mounted on
>/dev/mapper/VolGroup00-LogVol00
> 183G 2.9G 171G 2% /
>/dev/sda1 99M 19M 76M 20% /boot
>none 247M 0 247M 0% /dev/shm
>[root localhost mnt]#

You don't tell us anything about your hardware, so any responses really are
largely guesses. From the df output you show above, I'd infer that sda is a
physical hard disk of some type.

The card reader, then, is more likely sdb than sda, so I'd be trying sdb1
or sdb2 for the thumbdrive. Each possible device will have a different sdb*
value, and figuring oout which is which is largely guesswork ... unless
you're lucky enough to have a kernel with the sort of USB support for
hotplugging that tells you where things connect to (in my experience,
output to the console.

See what "more /proc/scsi/scsi" tells you about what the kernel *thinks* is
connected. Please include this info if you need to post a followup.


-
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: Card Reader

am 07.04.2005 23:35:17 von chuck gelm net

smertz wrote:
> I have a new computer I installed Linux on Red Hat Enterprise Linux ES
> release 4 (Nahant), it has one of those all-in-one card readers on it. I
> have made mountpoints as root as follows for my thumb, Compact flash and
> secure digital drive.
>
> mkdir /mnt/thumb
> mkdir /mnt/cf
> mkdir /mnt/sd
>
>
> Now when I tried to mount the Thumb (USB) drive I got an error # mount
> /dev/sda2 /mnt/thumb
> mount: /dev/sda2 already mounted or /mnt/thumb busy.
>
>
> So what have I done wrong? I'm thinking sda2 is wrong, but don't know why?
>
> df -h shows the following
>
> [root localhost mnt]# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
> 183G 2.9G 171G 2% /
> /dev/sda1 99M 19M 76M 20% /boot
> none 247M 0 247M 0% /dev/shm
> [root localhost mnt]#
>
>
> Thanks.

Hi, smertz:

If /dev/sda* is already being used, try /dev/sdb*.

HTH, Chuck



-
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: Card Reader

am 07.04.2005 23:44:49 von smertz

Ray Olszewski wrote:
> At 02:35 PM 4/7/2005 -0600, smertz wrote:
>
>> I have a new computer I installed Linux on Red Hat Enterprise Linux ES
>> release 4 (Nahant), it has one of those all-in-one card readers on it.
>> I have made mountpoints as root as follows for my thumb, Compact flash
>> and secure digital drive.
>>
>> mkdir /mnt/thumb
>> mkdir /mnt/cf
>> mkdir /mnt/sd
>>
>>
>> Now when I tried to mount the Thumb (USB) drive I got an error # mount
>> /dev/sda2 /mnt/thumb
>> mount: /dev/sda2 already mounted or /mnt/thumb busy.
>>
>>
>> So what have I done wrong? I'm thinking sda2 is wrong, but don't know
>> why?
>>
>> df -h shows the following
>>
>> [root localhost mnt]# df -h
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/mapper/VolGroup00-LogVol00
>> 183G 2.9G 171G 2% /
>> /dev/sda1 99M 19M 76M 20% /boot
>> none 247M 0 247M 0% /dev/shm
>> [root localhost mnt]#
>
>
> You don't tell us anything about your hardware, so any responses really
> are largely guesses. From the df output you show above, I'd infer that
> sda is a physical hard disk of some type.
>
> The card reader, then, is more likely sdb than sda, so I'd be trying
> sdb1 or sdb2 for the thumbdrive. Each possible device will have a
> different sdb* value, and figuring oout which is which is largely
> guesswork ... unless you're lucky enough to have a kernel with the sort
> of USB support for hotplugging that tells you where things connect to
> (in my experience, output to the console.
>
> See what "more /proc/scsi/scsi" tells you about what the kernel *thinks*
> is connected. Please include this info if you need to post a followup.
>
>
> -
> 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
>
This is the last few lines from dmesg. Based on this how would one
mount if I have made the mountpoint of /mnt/thumb

SCSI device sdc: 256000 512-byte hdwr sectors (131 MB)
sdc: Write Protect is off
sdc: Mode Sense: 02 00 00 00
sdc: assuming drive cache: write through
sdc: sdc1
Attached scsi removable disk sdc at scsi3, channel 0, id 0, lun 0
USB Mass Storage device found at 4

Red Hat Enterprise Linux ES release 4 (Nahant)


$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3200822AS Rev: 3.02
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: eM Model: Bay Reader Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02



Thanks

-
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: Card Reader

am 08.04.2005 00:08:53 von Flemming Greve Skovengaard

smertz wrote:
> Ray Olszewski wrote:
>
[snip]
> This is the last few lines from dmesg. Based on this how would one
> mount if I have made the mountpoint of /mnt/thumb
>
> SCSI device sdc: 256000 512-byte hdwr sectors (131 MB)
> sdc: Write Protect is off
> sdc: Mode Sense: 02 00 00 00
> sdc: assuming drive cache: write through
> sdc: sdc1
^^^^
> Attached scsi removable disk sdc at scsi3, channel 0, id 0, lun 0
> USB Mass Storage device found at 4
>
> Red Hat Enterprise Linux ES release 4 (Nahant)
>
>
> $ cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
> Vendor: ATA Model: ST3200822AS Rev: 3.02
> Type: Direct-Access ANSI SCSI revision: 05
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
> Vendor: eM Model: Bay Reader Rev: 1.00
> Type: Direct-Access ANSI SCSI revision: 02
>
[snip]

Look at what I marked in your output from dmesg, hope it helps.

--
Flemming Greve Skovengaard The killer's breed or the Demon's seed,
a.k.a Greven, TuxPower The glamour, the fortune, the pain,
Go to war again, blood is freedom's stain,
4112.38 BogoMIPS Don't you pray for my soul anymore.

-
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: Card Reader

am 08.04.2005 00:14:30 von chuck gelm net

smertz wrote:
> Ray Olszewski wrote:
>
>> At 02:35 PM 4/7/2005 -0600, smertz wrote:
>>
>>> I have a new computer I installed Linux on Red Hat Enterprise Linux
>>> ES release 4 (Nahant), it has one of those all-in-one card readers on
>>> it. I have made mountpoints as root as follows for my thumb, Compact
>>> flash and secure digital drive.
>>>
>>> mkdir /mnt/thumb
>>> mkdir /mnt/cf
>>> mkdir /mnt/sd
>>>
>>>
>>> Now when I tried to mount the Thumb (USB) drive I got an error #
>>> mount /dev/sda2 /mnt/thumb
>>> mount: /dev/sda2 already mounted or /mnt/thumb busy.
>>>
>>>
>>> So what have I done wrong? I'm thinking sda2 is wrong, but don't know
>>> why?
>>>
>>> df -h shows the following
>>>
>>> [root localhost mnt]# df -h
>>> Filesystem Size Used Avail Use% Mounted on
>>> /dev/mapper/VolGroup00-LogVol00
>>> 183G 2.9G 171G 2% /
>>> /dev/sda1 99M 19M 76M 20% /boot
>>> none 247M 0 247M 0% /dev/shm
>>> [root localhost mnt]#
>>
>>
>>
>> You don't tell us anything about your hardware, so any responses
>> really are largely guesses. From the df output you show above, I'd
>> infer that sda is a physical hard disk of some type.
>>
>> The card reader, then, is more likely sdb than sda, so I'd be trying
>> sdb1 or sdb2 for the thumbdrive. Each possible device will have a
>> different sdb* value, and figuring oout which is which is largely
>> guesswork ... unless you're lucky enough to have a kernel with the
>> sort of USB support for hotplugging that tells you where things
>> connect to (in my experience, output to the console.
>>
>> See what "more /proc/scsi/scsi" tells you about what the kernel
>> *thinks* is connected. Please include this info if you need to post a
>> followup.
>>
>>
>> -
>> 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
>>
> This is the last few lines from dmesg. Based on this how would one
> mount if I have made the mountpoint of /mnt/thumb
>
> SCSI device sdc: 256000 512-byte hdwr sectors (131 MB)
> sdc: Write Protect is off
> sdc: Mode Sense: 02 00 00 00
> sdc: assuming drive cache: write through
> sdc: sdc1
> Attached scsi removable disk sdc at scsi3, channel 0, id 0, lun 0
> USB Mass Storage device found at 4

mount /dev/sdc1 /mnt/thumb

HTH, Chuck

> Red Hat Enterprise Linux ES release 4 (Nahant)
>
>
> $ cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
> Vendor: ATA Model: ST3200822AS Rev: 3.02
> Type: Direct-Access ANSI SCSI revision: 05
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
> Vendor: eM Model: Bay Reader Rev: 1.00
> Type: Direct-Access ANSI SCSI revision: 02
>
>
>
> Thanks


-
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: Card Reader

am 08.04.2005 00:59:13 von smertz

>
>
> mount /dev/sdc1 /mnt/thumb

Trying this gives me the error
mount: special device /dev/sdsc1 does not exist


dmesg lines again
usb 1-1: new high speed USB device using address 4
scsi3 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 1.22
Type: Direct-Access ANSI SCSI revision: 02

>
> HTH, Chuck
>
>> Red Hat Enterprise Linux ES release 4 (Nahant)
>>
>>
>> $ cat /proc/scsi/scsi
>> Attached devices:
>> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>> Vendor: ATA Model: ST3200822AS Rev: 3.02
>> Type: Direct-Access ANSI SCSI revision: 05
>> Host: scsi2 Channel: 00 Id: 00 Lun: 00
>> Vendor: eM Model: Bay Reader Rev: 1.00
>> Type: Direct-Access ANSI SCSI revision: 02
>>
>>
>>
>> Thanks
>
>
>
> -
> 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
>

-
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: Card Reader

am 08.04.2005 01:09:20 von Szonyi Sebastian Calin

On Thu, 7 Apr 2005, smertz wrote:

>
>>
>>
>> mount /dev/sdc1 /mnt/thumb
>
> Trying this gives me the error
> mount: special device /dev/sdsc1 does not exist
^^^^^^^
should be sdc1
Also you could try with
mount /dev/sdc /mnt/thumb

maybe you don't have sdc1 or sdc in your /dev/ directory.
there should be a script called MAKEDEV in /dev/ directory which can
create those devices for you



--
?


-
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: Card Reader

am 08.04.2005 01:34:45 von smertz

caszonyi@rdslink.ro wrote:
> On Thu, 7 Apr 2005, smertz wrote:
>
>>
>>>
>>>
>>> mount /dev/sdc1 /mnt/thumb
>>
>>
>> Trying this gives me the error
>> mount: special device /dev/sdsc1 does not exist
>
> ^^^^^^^

Same error message below
[root@RHServer01 ~]# mount /dev/sdc /mnt/thumb
mount: special device /dev/sdc does not exist
[root@RHServer01 ~]# mount /dev/sdc1 /mnt/thumb
mount: special device /dev/sdc1 does not exist
[root@RHServer01 ~]#

> should be sdc1
> Also you could try with
> mount /dev/sdc /mnt/thumb
>
> maybe you don't have sdc1 or sdc in your /dev/ directory.
> there should be a script called MAKEDEV in /dev/ directory which can
> create those devices for you

There seems to be no man pages on MAKEDEV is the syntax just MAKEDEV sdc

I did that and it made a lot of files that started with sdc,sdc1 to
sdc100 etc. They disappered when I rebooted however. Is this normal
>
>
>
> --
> ?
>
>
> -
> 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
>

-
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: Card Reader

am 08.04.2005 04:24:42 von chuck gelm net

Mounting thumb drive.

On my two Slackware 9.1 (kernel 2.4.22) systems
each mounted my thumbdrive (Sandisk microcruzer 128 MB) with

mount /dev/sda1 /mnt/hd

df -T indicated that it was a 'umsdos' filesystem.

Slackware v10.0 & 10.1's kernel (2.4.26 & 2.4.29) found a
/dev/sda1 device and I could

mount /dev/sda1 /mnt/hd
and
df -T indicated that it was a 'msdos' filesystem.


tail /var/log/messages indicated that the kernel found a
/dev/sda1 USB device.

Does your kernel find your USB device and put information into
/var/log/messages?

....
Apr 7 21:59:40 g2000 kernel: hub.c: new USB device 00:10.3-1, assigned
address 2
Apr 7 21:59:43 g2000 kernel: Initializing USB Mass Storage driver...
Apr 7 21:59:43 g2000 kernel: usb.c: registered new driver usb-storage
Apr 7 21:59:43 g2000 kernel: scsi1 : SCSI emulation for USB Mass
Storage devices
Apr 7 21:59:43 g2000 kernel: sda: sda1
Apr 7 21:59:43 g2000 kernel: USB Mass Storage support registered.
....

HTH, Chuck

-
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: Card Reader

am 09.04.2005 00:02:11 von smertz

On Thu, 2005-04-07 at 22:24 -0400, chuck gelm wrote:
> Mounting thumb drive.
>
> On my two Slackware 9.1 (kernel 2.4.22) systems
> each mounted my thumbdrive (Sandisk microcruzer 128 MB) with
>
> mount /dev/sda1 /mnt/hd
>
> df -T indicated that it was a 'umsdos' filesystem.
>
> Slackware v10.0 & 10.1's kernel (2.4.26 & 2.4.29) found a
> /dev/sda1 device and I could
>
> mount /dev/sda1 /mnt/hd
> and
> df -T indicated that it was a 'msdos' filesystem.
>
>
> tail /var/log/messages indicated that the kernel found a
> /dev/sda1 USB device.
>
> Does your kernel find your USB device and put information into
> /var/log/messages?

Here is the last few lines from /var/log/message as I was tailing it
when I plugged in the USB thumb drive

Apr 8 15:56:09 localhost kernel: usb 1-1: new high speed USB device
using addre ss 4
Apr 8 15:56:09 localhost kernel: scsi3 : SCSI emulation for USB Mass
Storage de vices
Apr 8 15:56:09 localhost kernel: Vendor: Generic Model: STORAGE
DEVICE R ev: 1.22
Apr 8 15:56:09 localhost kernel: Type: Direct-Access
A NSI SCSI revision: 02
Apr 8 15:56:14 localhost kernel: usb 1-1: control timeout on ep0in
Apr 8 15:56:19 localhost kernel: usb 1-1: control timeout on ep0in
Apr 8 15:56:24 localhost hal.hotplug[5712]: timout(10000 ms) waiting
for /devic es/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0
Apr 8 15:56:24 localhost hal.hotplug[5716]: timout(10000 ms) waiting
for /devic
es/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host3/target3:0: 0/3:0:0:0
Apr 8 15:56:24 localhost kernel: usb 1-1: control timeout on ep0in
Apr 8 15:56:29 localhost kernel: usb 1-1: control timeout on ep0in
Apr 8 15:56:34 localhost scsi.agent[5732]:
Attribute /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host3/ target3:0:0/3:0:0:0/type does not exist


>
> ...
> Apr 7 21:59:40 g2000 kernel: hub.c: new USB device 00:10.3-1, assigned
> address 2
> Apr 7 21:59:43 g2000 kernel: Initializing USB Mass Storage driver...
> Apr 7 21:59:43 g2000 kernel: usb.c: registered new driver usb-storage
> Apr 7 21:59:43 g2000 kernel: scsi1 : SCSI emulation for USB Mass
> Storage devices
> Apr 7 21:59:43 g2000 kernel: sda: sda1
> Apr 7 21:59:43 g2000 kernel: USB Mass Storage support registered.
> ...
>
> HTH, Chuck
>
> -
> 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
>


-
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