* Memory stick
@ 2004-03-20 22:44 gilles
2004-03-20 23:32 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gilles @ 2004-03-20 22:44 UTC (permalink / raw)
To: linux-hotplug
Hello.
I used to access the memory stick of a Sony DCR-PC110E camera via '/dev/sda1' thanks to the
'usb-storage' module, and mounted with the command:
# mount -o ro -o umask\07 /dev/sda1 /mnt/stick
But now, with kernel 2.6 and 'udev' installed, this device node doesn't exist anymore in my
current configuration.
When booting, with the camera connected and switched on, the (hopefully) relevant lines from
'syslog' are the following:
[...]
Mar 20 22:15:39 dawn kernel: usb 2-1.4: new full speed USB device using address 5
Mar 20 22:15:39 dawn kernel: usb 2-1.4: new device strings: Mfr=1, Product=2, SerialNumber=0
Mar 20 22:15:39 dawn kernel: drivers/usb/core/message.c: USB device number 5 default language ID 0x409
Mar 20 22:15:39 dawn kernel: usb 2-1.4: Product: Sony Handycam
Mar 20 22:15:39 dawn kernel: usb 2-1.4: Manufacturer: Sony
Mar 20 22:15:39 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
Mar 20 22:15:39 dawn kernel: usb 2-1.4: registering 2-1.4:1.0 (config #1, interface 0)
Mar 20 22:15:39 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
Mar 20 22:15:39 dawn kernel: hub 1-0:1.0: port 1 enable change, status 300
Mar 20 22:15:39 dawn kernel: hub 1-0:1.0: port 2 enable change, status 300
Mar 20 22:15:39 dawn kernel: drivers/usb/host/uhci-hcd.c: d400: suspend_hc
[...]
Mar 20 22:15:41 dawn usb.agent[756]: ... no modules for USB product 0/0/206
Mar 20 22:15:41 dawn usb.agent[774]: ... no modules for USB product 0/0/206
Mar 20 22:15:42 dawn usb.agent[839]: ... no modules for USB product 4e1/201/110
Mar 20 22:15:42 dawn usb.agent[925]: ... no modules for USB product 58f/9254/100
Mar 20 22:15:43 dawn usb.agent[957]: ... no modules for USB product 3f0/701/1
Mar 20 22:15:43 dawn kernel: Initializing USB Mass Storage driver...
Mar 20 22:15:43 dawn kernel: usb-storage 2-1.4:1.0: usb_probe_interface
Mar 20 22:15:43 dawn kernel: usb-storage 2-1.4:1.0: usb_probe_interface - got id
Mar 20 22:15:43 dawn kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Mar 20 22:15:43 dawn kernel: Vendor: Sony Model: Sony DSC Rev: 3.00
Mar 20 22:15:43 dawn kernel: Type: Direct-Access ANSI SCSI revision: 02
Mar 20 22:15:43 dawn kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
Mar 20 22:15:43 dawn kernel: WARNING: USB Mass Storage data integrity not assured
Mar 20 22:15:43 dawn kernel: USB Mass Storage device found at 5
Mar 20 22:15:43 dawn kernel: drivers/usb/core/usb.c: registered new driver usb-storage
Mar 20 22:15:43 dawn kernel: USB Mass Storage support registered.
Mar 20 22:15:43 dawn scsi.agent[1451]: disk at /devices/pci0000:00/0000:00:04.3/usb2/2-1/2-1.4/2-1.4:1.0/host0/0:0:0:0
Mar 20 22:15:43 dawn udev[1482]: configured rule in '/etc/udev/udev.rules' at line 22 applied, added symlink '%k %c{2}'
Mar 20 22:15:43 dawn udev[1482]: configured rule in '/etc/udev/udev.rules' at line 22 applied, 'sg0' becomes '%c{1}'
Mar 20 22:15:43 dawn udev[1482]: creating device node '/dev/scsi/host0/bus0/target0/lun0/generic'
[...]
Also, when the camera is switched off, the following lines are recorded is 'syslog':
[...]
Mar 20 22:55:08 dawn kernel: hub 2-1:1.0: port 4, status 100, change 1, 12 Mb/s
Mar 20 22:55:08 dawn kernel: usb 2-1.4: USB disconnect, address 5
Mar 20 22:55:08 dawn kernel: usb 2-1.4: usb_disable_device nuking all URBs
Mar 20 22:55:08 dawn kernel: usb 2-1.4: unregistering interface 2-1.4:1.0
Mar 20 22:55:08 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
Mar 20 22:55:08 dawn kernel: usb 2-1.4: unregistering device
Mar 20 22:55:08 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
Mar 20 22:55:08 dawn udev[3451]: removing device node '/dev/scsi/host0/bus0/target0/lun0/generic'
Is there something wrong with this? What piece am I missing to access the memory stick?
Thanks for your help and best regards,
Gilles
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Memory stick
2004-03-20 22:44 Memory stick gilles
@ 2004-03-20 23:32 ` Greg KH
2004-03-21 6:17 ` Bob Barry
2004-03-23 5:34 ` Niko Sauer
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2004-03-20 23:32 UTC (permalink / raw)
To: linux-hotplug
On Sat, Mar 20, 2004 at 11:44:17PM +0100, gilles@harfang.homelinux.org wrote:
>
> Is there something wrong with this? What piece am I missing to access
> the memory stick?
Odds are you don't have the sd_mod driver loaded or CONFIG_BLK_DEV_SD
enabled in your kernel, right?
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Memory stick
2004-03-20 22:44 Memory stick gilles
2004-03-20 23:32 ` Greg KH
@ 2004-03-21 6:17 ` Bob Barry
2004-03-23 5:34 ` Niko Sauer
2 siblings, 0 replies; 4+ messages in thread
From: Bob Barry @ 2004-03-21 6:17 UTC (permalink / raw)
To: linux-hotplug
On Sat 20 March 2004, Gilles wrote:
> I used to access the memory stick of a Sony DCR-PC110E camera via '/dev/sda1' thanks to the
> 'usb-storage' module, and mounted with the command:
> # mount -o ro -o umask\07 /dev/sda1 /mnt/stick
> But now, with kernel 2.6 and 'udev' installed, this device node doesn't exist anymore in my
> current configuration.
I use:
# USB storage of Sony DSC-31 camera
BUS="usb", KERNEL="sd??", SYSFS{product}="Sony DSC" NAME="%k" SYMLINK="camera"
Without the KERNEL qualifier, it tries three times (sda, sda1, and sg2) and the last one wins.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÌk
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Memory stick
2004-03-20 22:44 Memory stick gilles
2004-03-20 23:32 ` Greg KH
2004-03-21 6:17 ` Bob Barry
@ 2004-03-23 5:34 ` Niko Sauer
2 siblings, 0 replies; 4+ messages in thread
From: Niko Sauer @ 2004-03-23 5:34 UTC (permalink / raw)
To: linux-hotplug
On Sat, 20 Mar 2004 gilles@harfang.homelinux.org wrote:
> Date: Sat, 20 Mar 2004 23:44:17 +0100
> From: gilles@harfang.homelinux.org
> To: linux-hotplug-devel@lists.sourceforge.net
> Subject: Memory stick
>
> Hello.
>
>
> I used to access the memory stick of a Sony DCR-PC110E camera via '/dev/sda1' thanks to the
> 'usb-storage' module, and mounted with the command:
> # mount -o ro -o umask\07 /dev/sda1 /mnt/stick
> But now, with kernel 2.6 and 'udev' installed, this device node doesn't exist anymore in my
> current configuration.
>
> When booting, with the camera connected and switched on, the (hopefully) relevant lines from
> 'syslog' are the following:
> [...]
> Mar 20 22:15:39 dawn kernel: usb 2-1.4: new full speed USB device using address 5
> Mar 20 22:15:39 dawn kernel: usb 2-1.4: new device strings: Mfr=1, Product=2, SerialNumber=0
> Mar 20 22:15:39 dawn kernel: drivers/usb/core/message.c: USB device number 5 default language ID 0x409
> Mar 20 22:15:39 dawn kernel: usb 2-1.4: Product: Sony Handycam
> Mar 20 22:15:39 dawn kernel: usb 2-1.4: Manufacturer: Sony
> Mar 20 22:15:39 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
> Mar 20 22:15:39 dawn kernel: usb 2-1.4: registering 2-1.4:1.0 (config #1, interface 0)
> Mar 20 22:15:39 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
> Mar 20 22:15:39 dawn kernel: hub 1-0:1.0: port 1 enable change, status 300
> Mar 20 22:15:39 dawn kernel: hub 1-0:1.0: port 2 enable change, status 300
> Mar 20 22:15:39 dawn kernel: drivers/usb/host/uhci-hcd.c: d400: suspend_hc
> [...]
> Mar 20 22:15:41 dawn usb.agent[756]: ... no modules for USB product 0/0/206
> Mar 20 22:15:41 dawn usb.agent[774]: ... no modules for USB product 0/0/206
> Mar 20 22:15:42 dawn usb.agent[839]: ... no modules for USB product 4e1/201/110
> Mar 20 22:15:42 dawn usb.agent[925]: ... no modules for USB product 58f/9254/100
> Mar 20 22:15:43 dawn usb.agent[957]: ... no modules for USB product 3f0/701/1
> Mar 20 22:15:43 dawn kernel: Initializing USB Mass Storage driver...
> Mar 20 22:15:43 dawn kernel: usb-storage 2-1.4:1.0: usb_probe_interface
> Mar 20 22:15:43 dawn kernel: usb-storage 2-1.4:1.0: usb_probe_interface - got id
> Mar 20 22:15:43 dawn kernel: scsi0 : SCSI emulation for USB Mass Storage devices
> Mar 20 22:15:43 dawn kernel: Vendor: Sony Model: Sony DSC Rev: 3.00
> Mar 20 22:15:43 dawn kernel: Type: Direct-Access ANSI SCSI revision: 02
> Mar 20 22:15:43 dawn kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
> Mar 20 22:15:43 dawn kernel: WARNING: USB Mass Storage data integrity not assured
> Mar 20 22:15:43 dawn kernel: USB Mass Storage device found at 5
> Mar 20 22:15:43 dawn kernel: drivers/usb/core/usb.c: registered new driver usb-storage
> Mar 20 22:15:43 dawn kernel: USB Mass Storage support registered.
> Mar 20 22:15:43 dawn scsi.agent[1451]: disk at /devices/pci0000:00/0000:00:04.3/usb2/2-1/2-1.4/2-1.4:1.0/host0/0:0:0:0
> Mar 20 22:15:43 dawn udev[1482]: configured rule in '/etc/udev/udev.rules' at line 22 applied, added symlink '%k %c{2}'
> Mar 20 22:15:43 dawn udev[1482]: configured rule in '/etc/udev/udev.rules' at line 22 applied, 'sg0' becomes '%c{1}'
> Mar 20 22:15:43 dawn udev[1482]: creating device node '/dev/scsi/host0/bus0/target0/lun0/generic'
> [...]
>
> Also, when the camera is switched off, the following lines are recorded is 'syslog':
> [...]
> Mar 20 22:55:08 dawn kernel: hub 2-1:1.0: port 4, status 100, change 1, 12 Mb/s
> Mar 20 22:55:08 dawn kernel: usb 2-1.4: USB disconnect, address 5
> Mar 20 22:55:08 dawn kernel: usb 2-1.4: usb_disable_device nuking all URBs
> Mar 20 22:55:08 dawn kernel: usb 2-1.4: unregistering interface 2-1.4:1.0
> Mar 20 22:55:08 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
> Mar 20 22:55:08 dawn kernel: usb 2-1.4: unregistering device
> Mar 20 22:55:08 dawn kernel: drivers/usb/core/usb.c: usb_hotplug
> Mar 20 22:55:08 dawn udev[3451]: removing device node '/dev/scsi/host0/bus0/target0/lun0/generic'
>
>
> Is there something wrong with this? What piece am I missing to access the memory stick?
>
>
> Thanks for your help and best regards,
>
> Gilles
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
> _______________________________________________
> Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
Try to read the USB FLASH MEMORY HOWTO:
http://www.tldp.org/sorted_howtos.html
There is a good deal of explanation in there and some notes on
implementation with Linux-2.6.x (Section 12). For me it worked perfectly
even with earlier editions of udev.
Niko Sauer
______________________
Unit of Advanced Study
University of Pretoria
Pretoria 0002
South Africa
Tel: [27][12] 420 3558
Fax: [27][12] 420 3904
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-03-23 5:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-20 22:44 Memory stick gilles
2004-03-20 23:32 ` Greg KH
2004-03-21 6:17 ` Bob Barry
2004-03-23 5:34 ` Niko Sauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).