Mailing List Archive

mounting a compactflash reader with kernel2.6
this was stupidly easy with kernel 2.4:

# tail -f /var/log/messages
[plug in reader]
[watch for device assignment]
# mount -t vfat /dev/x/y/z /mnt/cf

but on 2.6, the following output doesn't give me a /dev/ location:

kernel: usb 1-2.3: new full speed USB device using address 8
kernel: usb 1-2.3: Product: eUSB CompactFlash Adapter
kernel: usb 1-2.3: Manufacturer: SCM Microsystems Inc.
kernel: usb 1-2.3: SerialNumber: FFFFFFFF
kernel: scsi3 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: eUSB Model: Compact Flash Rev:
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0
scsi.agent[25404]: disk
at /devices/pci0000:00/0000:00:04.2/usb1/1-2/1-2.3/1-2.3:1.0/host3/3:0:0:0

the only thing that appeared useful was the reference to "sg0" which did seem
only to be available when the cf reader was plugged in, but there's only one
problem:

# mount -t vfat /dev/sg0 /mnt/cf/
mount: /dev/sg0 is not a block device

and so i'm stuck. /dev/sg0 seems to be the only thing "new" that appears when
i plug something in, so what am i missing here?

--
there is a time, when the operation of the machine becomes so odious, makes
you so sick at heart, that you can't take part; and you've got to put your
bodies upon the gears and upon the wheels, upon the levers, upon all the
apparatus and you've got to make it stop. and you've got to indicate to the
people who run it, to the people who own it, that unless you're free, the
machine will be prevented from working at all.
- mario savio

--
gentoo-user@gentoo.org mailing list
Re: mounting a compactflash reader with kernel2.6 [ In reply to ]
On Tue, 26 Oct 2004 00:35:53 -0400, daniel
<danstemporaryaccount@yahoo.ca> wrote:
> this was stupidly easy with kernel 2.4:
>
> # tail -f /var/log/messages
> [plug in reader]
> [watch for device assignment]
> # mount -t vfat /dev/x/y/z /mnt/cf
>
> but on 2.6, the following output doesn't give me a /dev/ location:
>
> kernel: usb 1-2.3: new full speed USB device using address 8
> kernel: usb 1-2.3: Product: eUSB CompactFlash Adapter
> kernel: usb 1-2.3: Manufacturer: SCM Microsystems Inc.
> kernel: usb 1-2.3: SerialNumber: FFFFFFFF
> kernel: scsi3 : SCSI emulation for USB Mass Storage devices
> kernel: Vendor: eUSB Model: Compact Flash Rev:
> kernel: Type: Direct-Access ANSI SCSI revision: 02
> kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0
> scsi.agent[25404]: disk
> at /devices/pci0000:00/0000:00:04.2/usb1/1-2/1-2.3/1-2.3:1.0/host3/3:0:0:0
>
> the only thing that appeared useful was the reference to "sg0" which did seem
> only to be available when the cf reader was plugged in, but there's only one
> problem:
>
> # mount -t vfat /dev/sg0 /mnt/cf/
> mount: /dev/sg0 is not a block device
>
> and so i'm stuck. /dev/sg0 seems to be the only thing "new" that appears when
> i plug something in, so what am i missing here?

You have the sd_mod module load? I think that you need that one.
--
Canek Peláez Valdés
Facultad de Ciencias, UNAM

--
gentoo-user@gentoo.org mailing list
Re: mounting a compactflash reader with kernel2.6 [ In reply to ]
Canek Peláez wrote:

> On Tue, 26 Oct 2004 00:35:53 -0400, daniel
> <danstemporaryaccount@yahoo.ca> wrote:
>> this was stupidly easy with kernel 2.4:
>>
>> # tail -f /var/log/messages
>> [plug in reader]
>> [watch for device assignment]
>> # mount -t vfat /dev/x/y/z /mnt/cf
>>
>> but on 2.6, the following output doesn't give me a /dev/ location:
>>
>> kernel: usb 1-2.3: new full speed USB device using address 8
>> kernel: usb 1-2.3: Product: eUSB CompactFlash Adapter
>> kernel: usb 1-2.3: Manufacturer: SCM Microsystems Inc.
>> kernel: usb 1-2.3: SerialNumber: FFFFFFFF
>> kernel: scsi3 : SCSI emulation for USB Mass Storage devices
>> kernel: Vendor: eUSB Model: Compact Flash Rev:
>> kernel: Type: Direct-Access ANSI SCSI revision:
>> 02
>> kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0,
>> type 0
>> scsi.agent[25404]: disk
>> at
>> /devices/pci0000:00/0000:00:04.2/usb1/1-2/1-2.3/1-2.3:1.0/host3/3:0:0:0
>>
>> the only thing that appeared useful was the reference to "sg0" which did
>> seem only to be available when the cf reader was plugged in, but there's
>> only one problem:
>>
>> # mount -t vfat /dev/sg0 /mnt/cf/
>> mount: /dev/sg0 is not a block device
>>
>> and so i'm stuck. /dev/sg0 seems to be the only thing "new" that appears
>> when i plug something in, so what am i missing here?
>
> You have the sd_mod module load? I think that you need that one.

and then, when support is compiled in, there is no need to look
at /var/log/messages. I have the follwing
line at /etc/fstab:
/dev/sda /mnt/flash1 vfat defaults,user,noauto
0 0

and my wife remembers how to use mount /mnt/flash1 and umount /mnt/flash1
commands to use it for office documents

Alex



--
gentoo-user@gentoo.org mailing list
Re: Re: mounting a compactflash reader with kernel2.6 [ In reply to ]
On October 26, 2004 03:02 pm, Alex V. Koval wrote:
> and then, when support is compiled in, there is no need to look
> at /var/log/messages. I have the follwing
> line at /etc/fstab:
> /dev/sda /mnt/flash1 vfat
> defaults,user,noauto 0 0

turns out, /dev/sda was never getting created because i didn't have scsi disk
support compiled into my kernel. once i put that in, everything worked as it
should.

--
we are linked, ta'lon, our fate is like an image caught in a mirror.
if we deny the other, we deny ourselves
and we will cease to exist
- g'kar, babylon 5 "point of no return"

--
gentoo-user@gentoo.org mailing list