On my desktop pc running leap 42.3 how can I avoid that permanently mounted sata disks be shown in device notifier??
In >system settings>removable storage>removable devices the ones (cantina, capanno, garage, fienile) that are shown in device notifier have a different icon (the same as device notifier icon), the ones that are not shown in device notifier have an icon something like a screen.
I noted that in fstab the disks with one partition (not considering /, swap, /home, /suse3.1, that are partitions of the same disk) that are shown in device notifier are mounted by UUID, the other by label.
is this the why becouse they are shown in device notifier??
if this, how can I have disks mounted by UUID not shown in device notifier??
or it is a bug??
manythanks , but they are internal disks attached to a board ( Syba SATA III 4 Port PCI-e X1 Controller Card) attached to the motherboard.
And on which parameters the system identify these disks as external?? and how can I modify this wrong behaviour and have my disks identified as internal??
You can use ‘udevinfo’ to report the attributes for a given partition. For example
udevinfo info -b /dev/sda2
Attributes such as ‘HintAuto’, ‘HintSystem’, ‘MediaRemovable’ can define how udisks then treats the drives/partitions. I’ve read somewhere that it may be configurable in the UEFI BIOS to inhibit ‘Hot Plug’ (or similar) behaviour for given devices if necessary, so you might want to see if this is a possibility with your system.
The other option is to create a custom udev rule eg /etc/udev/rules.d/60-system-disk.rules
# don't notify partitions of disk sda or sdb
KERNEL=="sd[a-b]*",ENV{UDISKS_IGNORE}="1"
^ Adjust the rule as necessary to suit your system.
and seems that the equivalent of udevinfo be udevadm info --attribute-walk
server3TW:/home/procuste # udevadm info --attribute-walk /dev/sdg
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/ata7/host6/target6:0:0/6:0:0:0/block/sdg':
KERNEL=="sdg"
SUBSYSTEM=="block"
DRIVER==""
ATTR{alignment_offset}=="0"
ATTR{badblocks}==""
ATTR{capability}=="51"
ATTR{discard_alignment}=="0"
ATTR{events}=="media_change"
ATTR{events_async}==""
ATTR{events_poll_msecs}=="-1"
ATTR{ext_range}=="256"
ATTR{inflight}==" 0 0"
ATTR{make-it-fail}=="0"
ATTR{range}=="16"
ATTR{removable}=="1"
ATTR{ro}=="0"
ATTR{size}=="3907029168"
ATTR{stat}==" 821 0 34826 44428 42 123 1248 1252 0 4612 45680"
looking at parent device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/ata7/host6/target6:0:0/6:0:0:0':
KERNELS=="6:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sd"
ATTRS{device_blocked}=="0"
ATTRS{device_busy}=="0"
ATTRS{dh_state}=="detached"
ATTRS{eh_timeout}=="10"
ATTRS{evt_capacity_change_reported}=="0"
ATTRS{evt_inquiry_change_reported}=="0"
ATTRS{evt_lun_change_reported}=="0"
ATTRS{evt_media_change}=="0"
ATTRS{evt_mode_parameter_change_reported}=="0"
ATTRS{evt_soft_threshold_reached}=="0"
ATTRS{inquiry}==""
ATTRS{iocounterbits}=="32"
ATTRS{iodone_cnt}=="0x8050b"
ATTRS{ioerr_cnt}=="0x241a"
ATTRS{iorequest_cnt}=="0x8050c"
ATTRS{model}=="WDC WD20EARX-00A"
ATTRS{ncq_prio_enable}=="0"
ATTRS{queue_depth}=="31"
ATTRS{queue_ramp_up_period}=="120000"
ATTRS{queue_type}=="simple"
ATTRS{rev}=="0A80"
ATTRS{scsi_level}=="6"
ATTRS{state}=="running"
ATTRS{timeout}=="30"
ATTRS{type}=="0"
ATTRS{vendor}=="ATA "
ATTRS{vpd_pg80}==""
ATTRS{vpd_pg83}==""
ATTRS{wwid}=="t10.ATA WDC WD20EARX-00AZ6B0 WD-WCC070219152"
looking at parent device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/ata7/host6/target6:0:0':
KERNELS=="target6:0:0"
SUBSYSTEMS=="scsi"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/ata7/host6':
KERNELS=="host6"
SUBSYSTEMS=="scsi"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/ata7':
KERNELS=="ata7"
SUBSYSTEMS==""
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1c.0/0000:01:00.0':
KERNELS=="0000:01:00.0"
SUBSYSTEMS=="pci"
DRIVERS=="ahci"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x010601"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{d3cold_allowed}=="1"
ATTRS{device}=="0x9215"
ATTRS{dma_mask_bits}=="64"
ATTRS{driver_override}=="(null)"
ATTRS{enable}=="1"
ATTRS{irq}=="123"
ATTRS{local_cpulist}=="0-3"
ATTRS{local_cpus}=="f"
ATTRS{msi_bus}=="1"
ATTRS{numa_node}=="-1"
ATTRS{resource1}==""
ATTRS{resource3}==""
ATTRS{subsystem_device}=="0x9215"
ATTRS{subsystem_vendor}=="0x1b4b"
ATTRS{vendor}=="0x1b4b"
looking at parent device '/devices/pci0000:00/0000:00:1c.0':
KERNELS=="0000:00:1c.0"
SUBSYSTEMS=="pci"
DRIVERS=="pcieport"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x060400"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{d3cold_allowed}=="0"
ATTRS{device}=="0xa295"
ATTRS{dma_mask_bits}=="32"
ATTRS{driver_override}=="(null)"
ATTRS{enable}=="1"
ATTRS{irq}=="17"
ATTRS{local_cpulist}=="0-3"
ATTRS{local_cpus}=="f"
ATTRS{msi_bus}=="1"
ATTRS{numa_node}=="-1"
ATTRS{subsystem_device}=="0x7a70"
ATTRS{subsystem_vendor}=="0x1462"
ATTRS{vendor}=="0x8086"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
server3TW:/home/procuste #
and I found what could be what you intend,
ATTR{removable}=="1"
I did not investigate about bios, so I propended for custom udev rule
my disks are /dev/sdg, sdh, sdi, sdj.
so I create a text file called /etc/udev/rules.d/60-system-disk.rules and in it I inserted:
KERNEL=="sd[g-j]*",ENV{UDISKS_IGNORE}="1"
and it worked, now the disks are non more visible in device notifier, but are always shown with device notifier icon in >system settings>removable storage>removable devices, I can live with this :-).
I don’t know how to write udev rules but I wander if it is possible to use the
ATTR{removable}=="1"
in an udev rule to have also the icon in >system settings>removable storage>removable devices coherent wit the other non removable disks…
manythanks again, ciao, pier
my disks are /dev/sdg, sdh, sdi, sdj.
so I create a text file called /etc/udev/rules.d/60-system-disk.rules and in it I inserted:
KERNEL=="sd[g-j]*",ENV{UDISKS_IGNORE}="1"
and it worked, now the disks are non more visible in device notifier, but are always shown with device notifier icon in >system settings>removable storage>removable devices, I can live with this :-).
I don’t know how to write udev rules but I wander if it is possible to use the
ATTR{removable}=="1"
in an udev rule to have also the icon in >system settings>removable storage>removable devices coherent wit the other non removable disks…
manythanks again, ciao, pier
Writing udev rules isn’t generally too hard given the appropriate attributes for matching, but I don’t understand what you’re trying to achieve beyond what you’ve already done already done.