Leap 42.3 KDE
Originally used dd to write the Leap 42.3 iso image for a clean install on a system. After installing the system the USB has been reformatted now automounting that USB fails (? udev rules have been created that it matches but are no longer applicable)
When hot plugging the USB dolphin throws the following error:An error occurred while accessing ‘openSUSE-Leap-42.3-DVD-x86_64033’, the system responded: The requested operation has failed: Error mounting /dev/sdc1 at /run/media/anne/openSUSE-Leap-42.3-DVD-x86_64033: Command-line `mount -t “iso9660” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=100,iocharset=utf8,mode=0400,dmode=0500” “/dev/sdc1” “/run/media/anne/openSUSE-Leap-42.3-DVD-x86_64033”’ exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
disk is no longer formatted as iso. current
anne@linux:~> dmesg | grep -i usb 571.197767] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
571.214691] usb 2-4: New USB device found, idVendor=0781, idProduct=5580
571.214708] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
571.214710] usb 2-4: Product: Extreme
571.214711] usb 2-4: Manufacturer: SanDisk
571.214713] usb 2-4: SerialNumber: AA026214140615522535
571.232308] usb-storage 2-4:1.0: USB Mass Storage device detected
571.232673] scsi host6: usb-storage 2-4:1.0
571.232839] usbcore: registered new interface driver usb-storage
571.234691] usbcore: registered new interface driver uas
If I look in /dev/disk/by-id I can see entries, that are no longer applicable
anne@linux:/dev/disk/by-id> ls
usb-SanDisk_Extreme_AA026214140615522535-0:0
usb-SanDisk_Extreme_AA026214140615522535-0:0-part1
I used udevadm monitor to find the the device then test
anne@linux:/dev/disk/by-id> udevadm test /devices/pci0000:00/0000:00:14.0/usb2/2-4/IMPORT builtin ‘usb_id’ /usr/lib/udev/rules.d/40-libgphoto2.rules:9
IMPORT builtin skip ‘usb_id’ /usr/lib/udev/rules.d/50-udev-default.rules:13
IMPORT builtin ‘hwdb’ /usr/lib/udev/rules.d/50-udev-default.rules:13
MODE 0664 /usr/lib/udev/rules.d/50-udev-default.rules:41
PROGRAM ‘/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4 2 3’ /usr/lib/udev/rules.d/69-libmtp.rules:2283
starting ‘/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4 2 3’
‘/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4 2 3’(out) ‘0’
Process ‘/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4 2 3’ succeeded.
handling device node ‘/dev/bus/usb/002/003’, devnum=c189:130, mode=0664, uid=0, gid=0
preserve permissions /dev/bus/usb/002/003, 020664, uid=0, gid=0
preserve already existing symlink ‘/dev/char/189:130’ to ‘…/bus/usb/002/003’
ACTION=add
BUSNUM=002
DEVNAME=/dev/bus/usb/002/003
DEVNUM=003
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-4
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_MODEL=Extreme
ID_MODEL_ENC=Extreme
ID_MODEL_FROM_DATABASE=SDCZ80 Flash Drive
ID_MODEL_ID=5580
ID_REVISION=0010
ID_SERIAL=SanDisk_Extreme_AA026214140615522535
ID_SERIAL_SHORT=AA026214140615522535
ID_USB_INTERFACES=:080650:
ID_VENDOR=SanDisk
ID_VENDOR_ENC=SanDisk
ID_VENDOR_FROM_DATABASE=SanDisk Corp.
ID_VENDOR_ID=0781
MAJOR=189
MINOR=130
PRODUCT=781/5580/10
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=4617899681
Unload module index
Unloaded link configuration context.
If I look in Removable Devices - System Settings Module
openSUSE-Leap-42.3-DVD-x86_64033 is listed as “attached” twice, and also in disconnected.
What is the easiest way to purge the udev rules that are no longer applicable? ie how can I automount this usb without suse mounting the USB as iso. More generally how can I rid udev of the generated rules that no longer apply?
Thanks