separate components of my raid arrays being visible via gnome nautilus.

tom tom at t0mb.net
Thu Feb 8 16:04:00 PST 2007


Things i forgot to mention in last post

distro = archlinux based on 0.7.2 and fairly up to date
udev = 104
kernel = 2.6.19 with ck patchset
hal = 0.5.8.1

and the three devices i see in nautilus are /dev/sda1 /dev/sda3 and 
/dev/sdb2.  I can't actually mount or browse any of them .,..  anyway.. 
original messsage below

Greetings,

I was looking for a way to exclude devices which i had noticed appearing
in nautilus, and which were constituent parts of my 2 linux software
RAID arrays.  I have a striped partition and a mirror.


the striped raid is /dev/sda1 and /dev/sdb1 both a bit less than 20GB,
this is /dev/md1

The mirror is /dev/sda3 and /dev/sdb2, both @120GB and making up /dev/md0

=============================================
=============================================

Basically, on all devices apart from /dev/sdb1, the volume.fstype and
volume.fsusage are 'filesystem' and 'ext3' respectively, whereas
/dev/sdb1, the second part of the striped array has empty quotes for
both aforementioned values.  this is the issue which i have been advised
to raise on this list, and is the root cause of my issue with these
devices being seen through nautilus (via gnome-volume-manager).
apparently, hal should be seeing the volume.fstype = 'raid'

=============================================
/proc/mdstat
=============================================

Personalities : [raid0] [linear] [multipath] [raid1] [raid6] [raid5]
[raid4] [raid10]
md1 : active raid0 sdb1[1] sda1[0]
      39085952 blocks 64k chunks

md0 : active raid1 sdb2[1] sda3[0]
      132897600 blocks [2/2] [UU]

unused devices: <none>


=============================================
fdisk -l
=============================================

Disk /dev/sda: 200.0 GB, 200048565760 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2433    19543041   fd  Linux raid
autodetect
/dev/sda2   *        2434        7532    40957717+   7  HPFS/NTFS
/dev/sda3            7777       24321   132897712+  fd  Linux raid
autodetect

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        2433    19543041   fd  Linux raid
autodetect
/dev/sdb2            2434       18978   132897712+  fd  Linux raid
autodetect
/dev/sdb3   *       18979       19457     3847567+  83  Linux

Disk /dev/hdc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1        9964    80035798+  83  Linux

Disk /dev/md0: 136.0 GB, 136087142400 bytes
2 heads, 4 sectors/track, 33224400 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 40.0 GB, 40024014848 bytes
2 heads, 4 sectors/track, 9771488 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table


=============================================
=============================================

[voidy at deathsdoor:~]$ mount
/dev/md1 on / type ext2 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sdb3 on /boot type ext2 (rw)
/dev/md0 on /media type ext2 (rw)
/dev/sda2 on /media/disk type ntfs (rw,noexec,nosuid,nodev,umask=222)
/dev/hdd on /media/BF2 DVD type udf (ro,noexec,nosuid,nodev,uid=666)
/dev/hdc1 on /slashback type ext2 (rw)

=============================================
/dev/sda1 from lshal
=============================================

udi =
'/org/freedesktop/Hal/devices/volume_uuid_5124b238_6066_4581_a365_e3be59ad
a05b'
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime',
'nodiratime'
, 'noexec', 'quiet', 'remount', 'exec', 'data='} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =
{'hal-storage-mount', 'ha
l-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point
fstype extra
_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as',
'as'} (st
ring list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount',
'Eject'}
(string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  volume.ignore = false  (bool)
  info.udi =
'/org/freedesktop/Hal/devices/volume_uuid_5124b238_6066_4581_a365_e
3be59ada05b'  (string)
  volume.partition.flags = {} (string list)
  volume.partition.uuid = ''  (string)
  volume.partition.label = ''  (string)
  volume.partition.type = '0xfd'  (string)
  volume.partition.scheme = 'mbr'  (string)
  info.product = 'Volume (ext3)'  (string)
  volume.partition.media_size = 200048565760  (0x2e93d2de00)  (uint64)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.size = 20012073984  (0x4a8d00400)  (uint64)
  volume.num_blocks = 39086082  (0x2546802)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.partition.number = 1  (0x1)  (int)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.linux.is_device_mapper = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = ''  (string)
  volume.uuid = '5124b238-6066-4581-a365-e3be59ada05b'  (string)
  volume.fsversion = '1.0'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'ext3'  (string)
  storage.model = ''  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SATA_ST320
0822AS_5LJ1TLEK'  (string)
  block.is_volume = true  (bool)
  block.minor = 1  (0x1)  (int)
  block.major = 8  (0x8)  (int)
  block.device = '/dev/sda1'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/storage_serial_SATA_ST3200822AS_5L
J1TLEK'  (string)
  linux.sysfs_path_device = '/sys/block/sda/sda1'  (string)
  linux.sysfs_path = '/sys/block/sda/sda1'  (string)

=============================================
/dev/sdb1 from lshal
=============================================

udi = '/org/freedesktop/Hal/devices/volume_part1_size_20012073984'
  info.udi =
'/org/freedesktop/Hal/devices/volume_part1_size_20012073984'  (stri
ng)
  volume.partition.flags = {} (string list)
  volume.partition.uuid = ''  (string)
  volume.partition.label = ''  (string)
  volume.partition.type = '0xfd'  (string)
  volume.partition.scheme = 'mbr'  (string)
  info.product = 'Volume'  (string)
  volume.partition.media_size = 160041885696  (0x25433d6000)  (uint64)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.size = 20012073984  (0x4a8d00400)  (uint64)
  volume.num_blocks = 39086082  (0x2546802)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.partition.number = 1  (0x1)  (int)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.linux.is_device_mapper = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = ''  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = ''  (string)
  volume.fstype = ''  (string)
  storage.model = ''  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SATA_Maxto
r_6G160E0_G20WTPDG'  (string)
  block.is_volume = true  (bool)
  block.minor = 17  (0x11)  (int)
  block.major = 8  (0x8)  (int)
  block.device = '/dev/sdb1'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/storage_serial_SATA_Maxtor_6G160E0
_G20WTPDG'  (string)
  linux.sysfs_path_device = '/sys/block/sdb/sdb1'  (string)
  linux.sysfs_path = '/sys/block/sdb/sdb1'  (string)

=============================================
/dev/sda3 from lshal
=============================================

udi =
'/org/freedesktop/Hal/devices/volume_uuid_827642be_e022_40ab_9e37_6ad56cb0
930e_0'
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime',
'nodiratime'
, 'noexec', 'quiet', 'remount', 'exec', 'data='} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =
{'hal-storage-mount', 'ha
l-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point
fstype extra
_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as',
'as'} (st
ring list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount',
'Eject'}
(string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  volume.ignore = false  (bool)
  info.udi =
'/org/freedesktop/Hal/devices/volume_uuid_827642be_e022_40ab_9e37_6
ad56cb0930e_0'  (string)
  volume.partition.flags = {} (string list)
  volume.partition.uuid = ''  (string)
  volume.partition.label = ''  (string)
  volume.partition.type = '0xfd'  (string)
  volume.partition.scheme = 'mbr'  (string)
  info.product = 'Volume (ext3)'  (string)
  volume.partition.media_size = 200048565760  (0x2e93d2de00)  (uint64)
  volume.partition.start = 63959777280  (0xee44cc000)  (uint64)
  volume.size = 136087257600  (0x1faf6ec200)  (uint64)
  volume.num_blocks = 265795425  (0xfd7b761)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.partition.number = 3  (0x3)  (int)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.linux.is_device_mapper = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = ''  (string)
  volume.uuid = '827642be-e022-40ab-9e37-6ad56cb0930e'  (string)
  volume.fsversion = '1.0'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'ext3'  (string)
  storage.model = ''  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SATA_ST320
0822AS_5LJ1TLEK'  (string)
  block.is_volume = true  (bool)
  block.minor = 3  (0x3)  (int)
  block.major = 8  (0x8)  (int)
  block.device = '/dev/sda3'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/storage_serial_SATA_ST3200822AS_5L
J1TLEK'  (string)
  linux.sysfs_path_device = '/sys/block/sda/sda3'  (string)
  linux.sysfs_path = '/sys/block/sda/sda3'  (string)

=============================================
/dev/sdb2 from lshal
=============================================

udi =
'/org/freedesktop/Hal/devices/volume_uuid_827642be_e022_40ab_9e37_6ad56cb0
930e'
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime',
'nodiratime'
, 'noexec', 'quiet', 'remount', 'exec', 'data='} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =
{'hal-storage-mount', 'ha
l-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point
fstype extra
_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as',
'as'} (st
ring list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount',
'Eject'}
(string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  volume.ignore = false  (bool)
  info.udi =
'/org/freedesktop/Hal/devices/volume_uuid_827642be_e022_40ab_9e37_6
ad56cb0930e'  (string)
  volume.partition.flags = {} (string list)
  volume.partition.uuid = ''  (string)
  volume.partition.label = ''  (string)
  volume.partition.type = '0xfd'  (string)
  volume.partition.scheme = 'mbr'  (string)
  info.product = 'Volume (ext3)'  (string)
  volume.partition.media_size = 160041885696  (0x25433d6000)  (uint64)
  volume.partition.start = 20012106240  (0x4a8d08200)  (uint64)
  volume.size = 136087257600  (0x1faf6ec200)  (uint64)
  volume.num_blocks = 265795425  (0xfd7b761)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.partition.number = 2  (0x2)  (int)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.linux.is_device_mapper = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = ''  (string)
  volume.uuid = '827642be-e022-40ab-9e37-6ad56cb0930e'  (string)
  volume.fsversion = '1.0'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'ext3'  (string)
  storage.model = ''  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SATA_Maxto
r_6G160E0_G20WTPDG'  (string)
  block.is_volume = true  (bool)
  block.minor = 18  (0x12)  (int)
  block.major = 8  (0x8)  (int)
  block.device = '/dev/sdb2'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/storage_serial_SATA_Maxtor_6G160E0
_G20WTPDG'  (string)
  linux.sysfs_path_device = '/sys/block/sdb/sdb2'  (string)
  linux.sysfs_path = '/sys/block/sdb/sdb2'  (string)




More information about the hal mailing list