Mailinglist Archive: opensuse (963 mails)
| < Previous | Next > |
Re: [opensuse] Re: Using more than 1 USB port
- From: Anton Aylward <anton.aylward@xxxxxxxxxx>
- Date: Thu, 21 Apr 2011 18:56:55 -0400
- Message-id: <4DB0B637.3060103@rogers.com>
Wolfgang Mueller said the following on 04/21/2011 06:22 PM:
That is because it has nothing to do with autofs.
There is an automounter in HAL.
If you run 'ps' you will find something like
root 2682 2193 0 16:07 ? 00:00:02 hald-addon-storage: polling /dev/sr0
This is going to be depreciated and replaced with udisk, so you might
instead see
root 3852 3846 0 16:08 ? 00:00:01 udisks-daemon: polling /dev/sr0
Take a look at the udev rules in /etc/udev/rules.d
What happens?
Well watch the system logs when you insert/remove a usb stick
tail -f /var/log/messages
Apr 21 18:46:03 BigBoy kernel: [ 9575.720034] usb 1-8: new high speed
USB device using ehci_hcd and address 3
Apr 21 18:46:03 BigBoy kernel: [ 9575.856890] usb 1-8: New USB device
found, idVendor=0204, idProduct=6025
Apr 21 18:46:03 BigBoy kernel: [ 9575.856897] usb 1-8: New USB device
strings: Mfr=1, Product=2, SerialNumber=3
Apr 21 18:46:03 BigBoy kernel: [ 9575.856902] usb 1-8: Product: Flash Disk
Apr 21 18:46:03 BigBoy kernel: [ 9575.856906] usb 1-8: SerialNumber:
000CCCBB9999
Apr 21 18:46:06 BigBoy kernel: [ 9579.074221] Initializing USB Mass
Storage driver...
Apr 21 18:46:06 BigBoy kernel: [ 9579.074550] scsi2 : usb-storage 1-8:1.0
Apr 21 18:46:06 BigBoy kernel: [ 9579.074727] usbcore: registered new
interface driver usb-storage
Apr 21 18:46:06 BigBoy kernel: [ 9579.074732] USB Mass Storage support
registered.
Apr 21 18:46:07 BigBoy kernel: [ 9580.072769] scsi 2:0:0:0:
Direct-Access Flash Disk 5.00 PQ: 0 ANSI: 2
Apr 21 18:46:07 BigBoy kernel: [ 9580.073138] sd 2:0:0:0: Attached scsi
generic sg2 type 0
Apr 21 18:46:07 BigBoy kernel: [ 9580.077366] sd 2:0:0:0: [sdb] 129024
512-byte logical blocks: (66.0 MB/63.0 MiB)
Apr 21 18:46:07 BigBoy kernel: [ 9580.077854] sd 2:0:0:0: [sdb] Write
Protect is off
Apr 21 18:46:07 BigBoy kernel: [ 9580.077860] sd 2:0:0:0: [sdb] Mode
Sense: 0b 00 00 08
Apr 21 18:46:07 BigBoy kernel: [ 9580.077865] sd 2:0:0:0: [sdb] Assuming
drive cache: write through
Apr 21 18:46:07 BigBoy kernel: [ 9580.082022] sd 2:0:0:0: [sdb] Assuming
drive cache: write through
Apr 21 18:46:07 BigBoy kernel: [ 9580.082031] sdb: sdb1
Apr 21 18:46:07 BigBoy kernel: [ 9580.086754] sd 2:0:0:0: [sdb] Assuming
drive cache: write through
Apr 21 18:46:07 BigBoy kernel: [ 9580.086764] sd 2:0:0:0: [sdb] Attached
SCSI removable disk
Apr 21 18:46:09 BigBoy hald: mounted /dev/sdb1 on behalf of uid 501
Of curse it helps that I have a line in /etc/fstab that reads
usbfs /proc/bus/usb usbfs user,noauto,defaults 0 0
The "user" is a key part of what makes the magic work.
See the manual page :-)
Nothing what so ever to do with autofs!
If you go back over the archives you'll find this has come up a few
times in the last year.
--
If you are using Windows 2000, there is no chance that DES is your
weak link. The only justification for using 3DES is that it is cheap.
-- William Hugh Murray, CISSP
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
But that means that autofs must be running. So far it is not in myOne, easiest, is rely on the automounter and just look in:
/media/<volume name>
That will be the already-mounted filesystem, not a device or link
to a device.
system. By the way, it is interesting that the cdrom is mounted
automatically but the usb devices are not.
That is because it has nothing to do with autofs.
There is an automounter in HAL.
If you run 'ps' you will find something like
root 2682 2193 0 16:07 ? 00:00:02 hald-addon-storage: polling /dev/sr0
This is going to be depreciated and replaced with udisk, so you might
instead see
root 3852 3846 0 16:08 ? 00:00:01 udisks-daemon: polling /dev/sr0
Take a look at the udev rules in /etc/udev/rules.d
What happens?
Well watch the system logs when you insert/remove a usb stick
tail -f /var/log/messages
Apr 21 18:46:03 BigBoy kernel: [ 9575.720034] usb 1-8: new high speed
USB device using ehci_hcd and address 3
Apr 21 18:46:03 BigBoy kernel: [ 9575.856890] usb 1-8: New USB device
found, idVendor=0204, idProduct=6025
Apr 21 18:46:03 BigBoy kernel: [ 9575.856897] usb 1-8: New USB device
strings: Mfr=1, Product=2, SerialNumber=3
Apr 21 18:46:03 BigBoy kernel: [ 9575.856902] usb 1-8: Product: Flash Disk
Apr 21 18:46:03 BigBoy kernel: [ 9575.856906] usb 1-8: SerialNumber:
000CCCBB9999
Apr 21 18:46:06 BigBoy kernel: [ 9579.074221] Initializing USB Mass
Storage driver...
Apr 21 18:46:06 BigBoy kernel: [ 9579.074550] scsi2 : usb-storage 1-8:1.0
Apr 21 18:46:06 BigBoy kernel: [ 9579.074727] usbcore: registered new
interface driver usb-storage
Apr 21 18:46:06 BigBoy kernel: [ 9579.074732] USB Mass Storage support
registered.
Apr 21 18:46:07 BigBoy kernel: [ 9580.072769] scsi 2:0:0:0:
Direct-Access Flash Disk 5.00 PQ: 0 ANSI: 2
Apr 21 18:46:07 BigBoy kernel: [ 9580.073138] sd 2:0:0:0: Attached scsi
generic sg2 type 0
Apr 21 18:46:07 BigBoy kernel: [ 9580.077366] sd 2:0:0:0: [sdb] 129024
512-byte logical blocks: (66.0 MB/63.0 MiB)
Apr 21 18:46:07 BigBoy kernel: [ 9580.077854] sd 2:0:0:0: [sdb] Write
Protect is off
Apr 21 18:46:07 BigBoy kernel: [ 9580.077860] sd 2:0:0:0: [sdb] Mode
Sense: 0b 00 00 08
Apr 21 18:46:07 BigBoy kernel: [ 9580.077865] sd 2:0:0:0: [sdb] Assuming
drive cache: write through
Apr 21 18:46:07 BigBoy kernel: [ 9580.082022] sd 2:0:0:0: [sdb] Assuming
drive cache: write through
Apr 21 18:46:07 BigBoy kernel: [ 9580.082031] sdb: sdb1
Apr 21 18:46:07 BigBoy kernel: [ 9580.086754] sd 2:0:0:0: [sdb] Assuming
drive cache: write through
Apr 21 18:46:07 BigBoy kernel: [ 9580.086764] sd 2:0:0:0: [sdb] Attached
SCSI removable disk
Apr 21 18:46:09 BigBoy hald: mounted /dev/sdb1 on behalf of uid 501
Of curse it helps that I have a line in /etc/fstab that reads
usbfs /proc/bus/usb usbfs user,noauto,defaults 0 0
The "user" is a key part of what makes the magic work.
See the manual page :-)
Nothing what so ever to do with autofs!
If you go back over the archives you'll find this has come up a few
times in the last year.
--
If you are using Windows 2000, there is no chance that DES is your
weak link. The only justification for using 3DES is that it is cheap.
-- William Hugh Murray, CISSP
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |