Ik gebruik expres geen hotplug, omdat dat zo lang duurt met opstarten. Ik weet dat veel mensen dat niet boeit, maar ik vind het gewoon ook een beetje stom dat de pc elke dag dezelfde hardware staat te proben terwijl er nooit wat verandert in de configuratie.... doe alles met een modprobe constructie in rc.conf.
Ik zal even wat preciezer vertellen wat er gebeurt:
Mijn dmesg als de camera nog aan staat:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
...
usb 2-1: new full speed USB device using uhci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: MINOLTA Model: DiMAGE Z1 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 494080 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 18 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 494080 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 18 00 00 08
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
usb-storage: device scan complete |
en nadat de camera uit is gegaan:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
...
usb 2-1: new full speed USB device using uhci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: MINOLTA Model: DiMAGE Z1 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 494080 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 18 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 494080 512-byte hdwr sectors (253 MB)
sda: Write Protect is off
sda: Mode Sense: 18 00 00 08
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
usb-storage: device scan complete
usb 2-1: USB disconnect, address 2 |
Als ik dan (als de camera al uit is)
type, krijg ik dit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| /dev/ide/host0/bus0/target1/lun0/part1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw,size=400M)
tmpfs on /tmp type tmpfs (rw,size=400M)
/dev/ide/host0/bus0/target1/lun0/part6 on /home type ext3 (rw)
/dev/ide/host0/bus0/target0/lun0/part6 on /mnt/WINAPPS type vfat (rw,noexec,nosuid,nodev,umask=000,iocharset=iso8859-1)
/dev/ide/host0/bus0/target0/lun0/part7 on /mnt/WININST type vfat (rw,noexec,nosuid,nodev,umask=000,iocharset=iso8859-1)
/dev/ide/host0/bus0/target0/lun0/part8 on /mnt/backup type ext3 (rw)
/dev/ide/host0/bus0/target1/lun0/part7 on /mnt/storage type vfat (rw,noexec,nosuid,nodev,umask=000,iocharset=iso8859-1)
none on /proc/bus/usb type usbfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/usb type vfat (rw,noexec,nosuid,nodev,umask=000) |
Dus hij staat nog wel gemount. Het commando ls geeft wel een lege directory in /mnt/usb.
Nog wat acties van mij en reacties van de kernel:
code:
1
2
| [gdt@Wombat tmp]$ umount /mnt/usb
umount: /mnt/usb mount disagrees with the fstab |
-- in fstab staat:
code:
1
| /dev/sda1 /mnt/usb vfat users,umask=000,noauto 0 0 |
// zet de camera aan
code:
1
2
| [gdt@Wombat tmp]$ mount /mnt/usb
mount: special device /dev/sda1 does not exist |
// als root :
code:
1
| [root@Wombat tmp]# umount -f /mnt/usb |
code:
1
2
| [gdt@Wombat tmp]$ mount /mnt/usb
mount: special device /dev/sda1 does not exist |
code:
1
2
3
4
5
| [root@Wombat tmp]# mount -t vfat /dev/scsi/host1/bus0/target0/lun0/disc /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/scsi/host1/bus0/target0/lun0/disc,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so |
Iemand een idee ?