Hi, [As indicated in the Reply-To, please CC me on any replies]
I got a Toshiba USB stick recently. It exposes two devices; a normal writable USB mass storage device, and a faked USB optical drive. The optical drive contains some windows apps for what seems to be a management application for portable applications. Since I run only Debian GNU/Linux on my laptop and have no use for the Windows app, I'd like GNOME automount to ignore the fake optical drive that the USB stick exposes. Does anyone know how to make GNOME not mount specific devices? This is what lsusb tells me: Bus 005 Device 005: ID 0930:6540 Toshiba Corp. TransMemory USB Flash Memory This is what hwinfo tells me: 2: udi = '/org/freedesktop/Hal/devices/volume_label_U3_System' block.minor = 1 (0x1) volume.label = 'U3 System' volume.disc.has_data = true volume.ignore = false org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 'Eject' } info.capabilities = { 'volume.disc', 'volume', 'block' } volume.is_partition = false volume.disc.is_blurayvideo = false volume.mount_point = '/media/U3 System' info.category = 'volume' volume.disc.is_appendable = false volume.is_disc = true info.product = 'U3 System' volume.disc.is_videodvd = false volume.is_mounted = true block.is_volume = true volume.linux.is_device_mapper = false volume.disc.is_svcd = false block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_TransMemory_0F31587051213B48_0_1' info.parent = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_TransMemory_0F31587051213B48_0_1' volume.disc.has_audio = false volume.block_size = 2048 (0x800) volume.num_blocks = 33852 (0x843c) volume.fsversion = 'Joliet Extension' block.device = '/dev/scd1' volume.uuid = '' volume.disc.is_rewritable = false volume.fsusage = 'filesystem' volume.is_mounted_read_only = true volume.disc.is_blank = false org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype extra_options', 'extra_options', 'extra_options' } info.interfaces = { 'org.freedesktop.Hal.Device.Volume' } storage.model = '' volume.size = 17332224ull (0x1087800ull) info.udi = '/org/freedesktop/Hal/devices/volume_label_U3_System' volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'uid=', 'mode=', 'iocharset=' } org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' } block.major = 11 (0xb) volume.disc.is_vcd = false volume.fstype = 'iso9660' org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject' } volume.unmount.valid_options = { 'lazy' } volume.disc.type = 'unknown' linux.hotplug_type = 3 (0x3) linux.sysfs_path = '/sys/block/sr1/fakevolume' 3: udi = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_TransMemory_0F31587051213B48_0_1' block.minor = 1 (0x1) storage.requires_eject = true info.capabilities = { 'storage', 'block', 'storage.cdrom' } storage.bus = 'usb' storage.cdrom.support_media_changed = true storage.cdrom.support_multisession = true storage.removable.media_available = true storage.cdrom.hddvdr = false storage.cdrom.mrw_w = true info.category = 'storage' info.product = 'TransMemory' storage.drive_type = 'cdrom' storage.hotpluggable = true storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_930_6540_0F31587051213B48_2_if0' storage.cdrom.mrw = true storage.vendor = 'TOSHIBA' storage.media_check_enabled = true storage.cdrom.read_speed = 7040 (0x1b80) org.freedesktop.Hal.Device.Storage.method_names = { 'Eject', 'CloseTray' } storage.cdrom.dvd = false storage.removable.media_size = 17332224ull (0x1087800ull) block.is_volume = false storage.firmware_version = '6.50' storage.cdrom.bdre = false storage.cdrom.mo = false block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_TransMemory_0F31587051213B48_0_1' info.addons = { 'hald-addon-storage' } storage.serial = 'TOSHIBA_TransMemory_0F31587051213B48-0:1' info.parent = '/org/freedesktop/Hal/devices/usb_device_930_6540_0F31587051213B48_2_if0_scsi_host_scsi_device_lun1' storage.cdrom.dvdplusr = false storage.size = 0ull (0x0ull) storage.cdrom.write_speed = 0 (0x0) org.freedesktop.Hal.Device.Storage.method_signatures = { 'as', 'as' } block.device = '/dev/scd1' org.freedesktop.Hal.Device.Storage.method_argnames = { 'extra_options', 'extra_options' } storage.cdrom.cdr = true storage.no_partitions_hint = true storage.cdrom.bdr = false storage.removable = true storage.lun = 1 (0x1) info.vendor = 'TOSHIBA' storage.cdrom.dvdram = false storage.cdrom.dvdplusrwdl = false storage.cdrom.write_speeds = { } storage.cdrom.dvdr = false info.interfaces = { 'org.freedesktop.Hal.Device.Storage', 'org.freedesktop.Hal.Device.Storage' } org.freedesktop.Hal.Device.Storage.method_execpaths = { 'hal-storage-eject', 'hal-storage-closetray' } storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_930_6540_0F31587051213B48_2_if0' storage.model = 'TransMemory' info.udi = '/org/freedesktop/Hal/devices/storage_serial_TOSHIBA_TransMemory_0F31587051213B48_0_1' storage.cdrom.dvdplusrdl = false storage.cdrom.bd = false storage.cdrom.hddvdrw = false block.major = 11 (0xb) storage.removable.support_async_notification = false linux.hotplug_type = 3 (0x3) storage.cdrom.cdrw = false storage.cdrom.dvdplusrw = false linux.sysfs_path = '/sys/block/sr1' storage.cdrom.dvdrw = false storage.automount_enabled_hint = true storage.cdrom.hddvd = false PS: If anyone from Toshiba is reading, I'd love to be able alter the stick so that it doesn't expose this bogus USB optical drive, so send me some specs please :) -- bye, pabs http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part