Après quelques recherche sur internet, j'ai acheté un appareil photo numérique de marque Olympus (type 750 UZ).
Dès l'achat de ce genre de matériel, la première chose à faire, c'est? De faire une photo, bien sur, mais pour
tester la récupération sous linux. Ceci est toujours, pour moi, source d'une certaine appréhension...
Bon, allons y! Je branche l'appareil sur le bus usb, et je regarde les log:
Cela à l'air de bien se présenter. Il reste à monter la chose. Mais avant tout, un petit tour du coté de /proc?
$ tail -30 /var/log/syslog
...
Feb 17 21:18:20 localhost kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
Feb 17 21:18:20 localhost kernel: hub.c: port 1 connection change
Feb 17 21:18:20 localhost kernel: hub.c: port 1, portstatus 101, change 1, 12 Mb/s
Feb 17 21:18:20 localhost kernel: hub.c: port 1, portstatus 101, change 0, 12 Mb/s
Feb 17 21:18:21 localhost last message repeated 3 times
Feb 17 21:18:21 localhost kernel: hub.c: port 1, portstatus 103, change 0, 12 Mb/s
Feb 17 21:18:21 localhost kernel: hub.c: new USB device 00:1d.0-1, assigned address 3
Feb 17 21:18:21 localhost kernel: usb.c: kmalloc IF c9fd2cc0, numif 1
Feb 17 21:18:21 localhost kernel: usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
Feb 17 21:18:21 localhost kernel: usb.c: USB device number 3 default language ID 0x409
Feb 17 21:18:21 localhost kernel: Manufacturer: OLYMPUS
Feb 17 21:18:21 localhost kernel: Product: C750UZ
Feb 17 21:18:21 localhost kernel: SerialNumber: 000262061794
Feb 17 21:18:21 localhost kernel: usb-storage: act_altsettting is 0
Feb 17 21:18:21 localhost kernel: usb-storage: id_index calculated to be: 80
Feb 17 21:18:21 localhost kernel: usb-storage: Array length appears to be: 82
Feb 17 21:18:21 localhost kernel: usb-storage: USB Mass Storage device detected
Feb 17 21:18:21 localhost kernel: usb-storage: Endpoints: In: 0xd2763f14 Out: 0xd2763f00 Int: 0x00000000 (Period 0)
Feb 17 21:18:21 localhost kernel: usb-storage: Found existing GUID 07b401050000000262061794
Feb 17 21:18:21 localhost kernel: WARNING: USB Mass Storage data integrity not assured
Feb 17 21:18:21 localhost kernel: USB Mass Storage device found at 3
Feb 17 21:18:21 localhost kernel: usb.c: usb-storage driver claimed interface c9fd2cc0
Feb 17 21:18:21 localhost kernel: usb.c: kusbd: /sbin/hotplug add 3
Feb 17 21:18:21 localhost kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s
Feb 17 21:18:21 localhost kernel: hub.c: port 1, portstatus 103, change 0, 12 Mb/s
Feb 17 21:18:21 localhost kernel: hub.c: port 2, portstatus 100, change 0, 12 Mb/s
Feb 17 21:18:21 localhost default.hotplug[20675]: arguments (usb) env (DEVFS=/proc/bus/usb OLDPWD=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEVICE=/proc/bus/usb/001/003 INTERFACE=8/6/80 PRODUCT=7b4/105/1 TYPE=0/0/0 DEBUG=kernel _=/usr/bin/env)
Feb 17 21:18:21 localhost default.hotplug[20675]: invoke /etc/hotplug/usb.agent ()
Super, ça marche! Allez, on monte le tout:
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: HL-DT-ST Model: RW/DVD GCC-4240N Rev: D110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: OLYMPUS Model: C750UZ Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Et voilà, ça marche! Les mons des fichiers images sont un rien étrange, mais ce n'est pas grave!
# sudo mount /dev/sda1 /disk
# ls -l /disk/
total 16
drwxr--r-- 3 root root 16384 2000-10-23 01:00 dcim
# ls -l /disk/dcim/
total 16
drwxr--r-- 2 root root 16384 2003-01-01 00:00 100olymp
# ls -l /disk/dcim/100olymp/
total 2432
-rwxr--r-- 1 root root 804216 2004-02-17 13:49 p2170003.jpg
-rwxr--r-- 1 root root 835766 2004-02-17 16:02 p2170004.jpg
-rwxr--r-- 1 root root 812886 2004-02-17 16:02 p2170005.jpg
Je vous l'avais dit, c'est cours, comme doc. L'appareil s'utilise comme un disque dur externe de type usb,
via le module usb-storage, un point c'est tout :)
Merci de m'avoir lu jusqu'ici.