Are you sure to use udisk? I have actually never heard about this.
I would recommend udev to query it (Don't believe blindly in me, I have pretty much less idea)
$ udevadm info -a -p $(udevadm info -q path -n /dev/sdb)
You get
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.
Are you sure to use udisk? I have actually never heard about this.
I would recommend udev to query it (Don't believe blindly in me, I have pretty much less idea)
$ udevadm info -a -p $(udevadm info -q path -n /dev/sdb)
You get
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:1d.7/ usb1/1- 1/1-1:1. 0/host6/ target6: 0:0/6:0: 0:0/block/ sdb': ="block" range}= ="16" ext_range} =="256" removable} =="0" size}== "976773168" alignment_ offset} =="0" discard_ alignment} =="0" capability} =="50" inflight} ==" 0 0"
KERNEL=="sdb"
SUBSYSTEM=
DRIVER==""
ATTR{
ATTR{
ATTR{
ATTR{ro}=="0"
ATTR{
ATTR{
ATTR{
ATTR{
ATTR{stat}==" 3369 73783 402729 83260 0 0 0 0 0 35968 83252"
ATTR{
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 1/1-1:1. 0/host6/ target6: 0:0/6:0: 0:0': ="6:0:0: 0" ="scsi" device_ blocked} =="0" type}== "0" scsi_level} =="3" vendor} =="Seagate " model}= ="Portable " rev}==" 0130" state}= ="running" timeout} =="30" iocounterbits} =="32" iorequest_ cnt}==" 0xd5a" iodone_ cnt}==" 0xd5a" ioerr_cnt} =="0x20" modalias} =="scsi: t-0x00" evt_media_ change} =="0" dh_state} =="detached" queue_depth} =="1" queue_type} =="none" max_sectors} =="240"
KERNELS=
SUBSYSTEMS=
DRIVERS=="sd"
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 1/1-1:1. 0/host6/ target6: 0:0': ="target6: 0:0" ="scsi"
KERNELS=
SUBSYSTEMS=
DRIVERS==""
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 1/1-1:1. 0/host6' : ="host6" ="scsi"
KERNELS=
SUBSYSTEMS=
DRIVERS==""
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 1/1-1:1. 0': ="1-1:1. 0" ="usb" ="usb-storage" bInterfaceNumbe r}=="00" bAlternateSetti ng}==" 0" bNumEndpoints} =="02" bInterfaceClass }=="08" bInterfaceSubCl ass}==" 06" bInterfaceProto col}==" 50" modalias} =="usb: v0BC2p2300d0130 dc00dsc00dp00ic 08isc06ip50" supports_ autosuspend} =="0"
KERNELS=
SUBSYSTEMS=
DRIVERS=
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 1': ="usb" configuration} =="" bNumInterfaces} ==" 1" bConfigurationV alue}== "1" bmAttributes} =="80" bMaxPower} =="100mA" urbnum} =="10360" idVendor} =="0bc2" idProduct} =="2300" bcdDevice} =="0130" bDeviceClass} =="00" bDeviceSubClass }=="00" bDeviceProtocol }=="00" bNumConfigurati ons}==" 1" bMaxPacketSize0 }=="64" speed}= ="480" busnum} =="1" devnum} =="13" devpath} =="1" version} ==" 2.00" maxchild} =="0" quirks} =="0x0" avoid_reset_ quirk}= ="0" authorized} =="1" manufacturer} =="Seagate " product} =="Portable " serial} =="2GH23D39 "
KERNELS=="1-1"
SUBSYSTEMS=
DRIVERS=="usb"
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7/ usb1': ="usb" configuration} =="" bNumInterfaces} ==" 1" bConfigurationV alue}== "1" bmAttributes} =="e0" bMaxPower} ==" 0mA" urbnum} =="430" idVendor} =="1d6b" idProduct} =="0002" bcdDevice} =="0206" bDeviceClass} =="09" bDeviceSubClass }=="00" bDeviceProtocol }=="00" bNumConfigurati ons}==" 1" bMaxPacketSize0 }=="64" speed}= ="480" busnum} =="1" devnum} =="1" devpath} =="0" version} ==" 2.00" maxchild} =="8" quirks} =="0x0" avoid_reset_ quirk}= ="0" authorized} =="1" manufacturer} =="Linux 2.6.35-22-generic ehci_hcd" product} =="EHCI Host Controller" serial} =="0000: 00:1d.7" authorized_ default} =="1"
KERNELS=="usb1"
SUBSYSTEMS=
DRIVERS=="usb"
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
looking at parent device '/devices/ pci0000: 00/0000: 00:1d.7' : ="0000: 00:1d.7" ="pci" ="ehci_ hcd" vendor} =="0x8086" device} =="0x27cc" subsystem_ vendor} =="0x103c" subsystem_ device} =="0x30b2" class}= ="0x0c0320" irq}==" 23" local_cpus} =="ff" local_cpulist} =="0-7" modalias} =="pci: v00008086d00002 7CCsv0000103Csd 000030B2bc0Csc0 3i20" dma_mask_ bits}== "32" consistent_ dma_mask_ bits}== "32" broken_ parity_ status} =="0" msi_bus} =="" companion} ==""
KERNELS=
SUBSYSTEMS=
DRIVERS=
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
ATTRS{
looking at parent device '/devices/ pci0000: 00': ="pci0000: 00"
KERNELS=
SUBSYSTEMS==""
DRIVERS==""
------- ------- ------- ------- ------- ------- ------- ------- ------- ---
This is what I get on my external seagate HDD.
Some good info available
ATTRS{manufactu rer}==" Seagate" =="Portable" =="2GH23D39"
ATTRS{product}
ATTRS{serial}