How to show mounted partitions in the "Computer" window?

Mark markg85 at gmail.com
Tue Mar 27 19:13:57 UTC 2007


oke, i have it working now.
the line i used:

hal-set-property --udi
/org/freedesktop/Hal/devices/volume_uuid_BCFCDE7DFCDE30FE --key
volume.ignore --bool false

but now a more permenent solution? something that is still working after a
computer reboots..

2007/3/27, Mark <markg85 at gmail.com>:
>
> hmm.. i`m not getting this stuff.. is there a guide or tutorial for this
> somewhere?
>
> the is what i get with lshal:
>
> > udi = '/org/freedesktop/Hal/devices/volume_uuid_14FCC953FCC93032'
> >   block.device = '/dev/sda1'  (string)
> >   block.is_volume = true  (bool)
> >   block.major = 8  (0x8)  (int)
> >   block.minor = 1  (0x1)  (int)
> >   block.storage_device =
> > '/org/freedesktop/Hal/devices/storage_serial_SATA_Maxtor_6L300S0_L60JVAQH'
> > (string)
> >   info.capabilities = {'volume', 'block'} (string list)
> >   info.category = 'volume'  (string)
> >   info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
> >   info.parent =
> > '/org/freedesktop/Hal/devices/storage_serial_SATA_Maxtor_6L300S0_L60JVAQH'
> > (string)
> >   info.product = 'Volume (ntfs)'  (string)
> >   info.udi =
> > '/org/freedesktop/Hal/devices/volume_uuid_14FCC953FCC93032'  (string)
> >   linux.hotplug_type = 3  (0x3)  (int)
> >   linux.sysfs_path = '/sys/block/sda/sda1'  (string)
> >   org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point
> > fstype extra_options', 'extra_options', 'extra_options'} (string list)
> >   org.freedesktop.Hal.Device.Volume.method_execpaths =
> > {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string
> > list)
> >   org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount',
> > 'Eject'} (string list)
> >   org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as',
> > 'as'} (string list)
> >   storage.model = ''  (string)
> >   volume.block_size = 512  (0x200)  (int)
> >   volume.fstype = 'ntfs'  (string)
> >   volume.fsusage = 'filesystem'  (string)
> >   volume.fsversion = '3.1'  (string)
> >   volume.ignore = true  (bool)
> >   volume.is_disc = false  (bool)
> >   volume.is_mounted = true  (bool)
> >   volume.is_mounted_read_only = false  (bool)
> >   volume.is_partition = true  (bool)
> >   volume.label = ''  (string)
> >   volume.linux.is_device_mapper = false  (bool)
> >   volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime',
> > 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'uid=', 'gid=',
> > 'umask=', 'locale='}$
> >   volume.mount_point = '/media/c'  (string)
> >   volume.num_blocks = 307210932  (0x124faab4)  (int)
> >   volume.partition.flags = {'boot'} (string list)
> >   volume.partition.label = ''  (string)
> >   volume.partition.media_size = 300090728448  (0x45decd2000)  (uint64)
> >   volume.partition.number = 1  (0x1)  (int)
> >   volume.partition.scheme = 'mbr'  (string)
> >   volume.partition.start = 32256  (0x7e00)  (uint64)
> >   volume.partition.type = '0x07'  (string)
> >   volume.partition.uuid = ''  (string)
> >   volume.size = 157291997184  (0x249f556800)  (uint64)
> >   volume.unmount.valid_options = {'lazy'} (string list)
> >   volume.uuid = '14FCC953FCC93032'  (string)
>
>
> so what property do i need to change in there to let it show in the
> computers window? and  how?
>
> thanx
>
>
> 2007/3/27, Oldman <talbotscott at cox.net>:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Mark wrote:
> > > it must work in gnome aswell.
> > > ther must be a solution for this.
> > >
> > > 2007/3/27, Chris Jones < jonesc at hep.phy.cam.ac.uk>:
> > >>
> > >>
> > >> > and i want to show them there.
> > >> > i know it`s possible. they way they are currently mounted is
> > working
> > >> just
> > >> > fine in KDE but gnome seems to have a problem with it.
> > >> >
> > >> > So does anyone know how i can get this working?
> >
> > Mark:
> >
> > It seems a bit tricky right now, but there are a few commands that will
> > accomplish this for you:
> >
> > hal-device              hal-find-by-property
> > hal-get-property
> > hal-find-by-capability  hal-set-property
> >
> > pretty much you need to discover the uid of the device (partition) you
> > want displayed, by using one of the find-by programs or lshal if you
> > prefer) then run the hal-set-property --<uid --<key> --<bool>
> >
> > IIRC the key is something akin to device-ignore which is default true
> >
> > You will need to restart X (unfortunately) to make the device appear in
> > the Computer drawer and unfortunately (again) this will reset upon
> > reboot.
> >
> > Looks like for F7 this will change with a hal-device-manager (hopefully
> > this will be more permanent settings, but right now it is broken, so I
> > can't tell much about it.
> >
> > HTH
> >
> > Scott
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.7 (GNU/Linux)
> > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
> >
> > iD8DBQFGCUI65mBKdb7VQEcRAuJxAJ4jn/zxSbCoU+Xqg1zHadmMXIixcACgrdiy
> > Hd5jsmwuUzaymKQTYu2WXbM=
> > =qamg
> > -----END PGP SIGNATURE-----
> >
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070327/c141b651/attachment-0001.htm>


More information about the fedora-list mailing list