Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 01:28:22 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Kevin Oberman <oberman@es.net>
Cc:        gnome@freebsd.org
Subject:   Re: Problems with HAL, gnome-mount and removable ATA GELI disk
Message-ID:  <1232260102.51752.20.camel@shumai.marcuscom.com>
In-Reply-To: <20090118042316.5C6D31CC0B@ptavv.es.net>
References:  <20090118042316.5C6D31CC0B@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-e0gyofxjJYl+ztNF22Ko
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2009-01-17 at 20:23 -0800, Kevin Oberman wrote:
> I have a problem with hald and a removable ATA disk. This is complicated
> because the fact that the partition is geli encrypted.
>=20
> I think one issue is that this is not treated as removable. Is the any
> way to make hald treat an ATA disk as removable?

The device's ata_params struct support command1 should indicate that the
device is removable.  I'm not sure how else to tell a device is
removable.

>=20
> But there may be another issue as lshal does not even show the
> partition. It does see the drive, /dev/ad2, the slice, /dev/ad2a1, and
> the encrypted partition, /dev/ad2a1d, but not the decrypted partition,
> /dev/ad2s1d.eli. I assume it should show up.
>=20
> I have other disks (USB) where the slice is encrypted and it works just
> fine (/dev/da0s1.elid), so maybe it's the fixed disk issue.
>=20
> Here is the lshal output for that disk:
> udi =3D '/org/freedesktop/Hal/devices/storage_serial_WD_WXC606029004'
>   block.device =3D '/dev/ad2'  (string)
>   block.is_volume =3D false  (bool)
>   block.major =3D 0  (0x0)  (int)
>   block.minor =3D 88  (0x58)  (int)
>   block.storage_device =3D '/org/freedesktop/Hal/devices/storage_serial_W=
D_WXC606029004'  (string)
>   freebsd.device_file =3D '/dev/ad2'  (string)
>   freebsd.driver =3D 'ad'  (string)
>   freebsd.unit =3D 2  (0x2)  (int)
>   info.capabilities =3D {'block', 'storage'} (string list)
>   info.category =3D 'storage'  (string)
>   info.parent =3D '/org/freedesktop/Hal/devices/ide_1_0'  (string)
>   info.product =3D 'WDC WD1200UE-00KVT0'  (string)
>   info.subsystem =3D 'block'  (string)
>   info.udi =3D '/org/freedesktop/Hal/devices/storage_serial_WD_WXC6060290=
04'  (string)
>   info.vendor =3D 'WDC'  (string)
>   storage.automount_enabled_hint =3D true  (bool)
>   storage.bus =3D 'ide'  (string)
>   storage.drive_type =3D 'disk'  (string)
>   storage.firmware_revision =3D '01.03K01'  (string)
>   storage.hotpluggable =3D false  (bool)
>   storage.media_check_enabled =3D false  (bool)
>   storage.model =3D 'WDC WD1200UE-00KVT0'  (string)
>   storage.no_partitions_hint =3D false  (bool)
>   storage.originating_device =3D '/org/freedesktop/Hal/devices/ide_1_0'  =
(string)
>   storage.removable =3D false  (bool)
>   storage.removable.support_async_notification =3D false  (bool)
>   storage.requires_eject =3D false  (bool)
>   storage.serial =3D 'WD-WXC606029004'  (string)
>   storage.vendor =3D 'WDC'  (string)
>=20
> udi =3D '/org/freedesktop/Hal/devices/volume_part1_size_120031478784'
>   block.device =3D '/dev/ad2s1'  (string)
>   block.is_volume =3D true  (bool)
>   block.major =3D 0  (0x0)  (int)
>   block.minor =3D 97  (0x61)  (int)
>   block.storage_device =3D '/org/freedesktop/Hal/devices/storage_serial_W=
D_WXC606029004'  (string)
>   info.capabilities =3D {'block', 'volume'} (string list)
>   info.category =3D 'volume'  (string)
>   info.parent =3D '/org/freedesktop/Hal/devices/storage_serial_WD_WXC6060=
29004'  (string)
>   info.product =3D 'Volume'  (string)
>   info.subsystem =3D 'block'  (string)
>   info.udi =3D '/org/freedesktop/Hal/devices/volume_part1_size_1200314787=
84'  (string)
>   volume.block_size =3D 512  (0x200)  (uint64)
>   volume.fstype =3D ''  (string)
>   volume.fsusage =3D 'partitiontable'  (string)
>   volume.ignore =3D true  (bool)
>   volume.is_disc =3D false  (bool)
>   volume.is_mounted =3D false  (bool)
>   volume.is_mounted_read_only =3D false  (bool)
>   volume.is_partition =3D true  (bool)
>   volume.label =3D ''  (string)
>   volume.mount_point =3D ''  (string)
>   volume.num_blocks =3D 234436482  (0xdf93782)  (uint64)
>   volume.partition.media_size =3D 120031478784  (0x1bf26f0400)  (uint64)
>   volume.partition.number =3D 1  (0x1)  (int)
>   volume.partition.scheme =3D 'mbr'  (string)
>   volume.partition.start =3D 32256  (0x7e00)  (uint64)
>   volume.partition.type =3D '0xa5'  (string)
>   volume.size =3D 120031478784  (0x1bf26f0400)  (uint64)
>   volume.uuid =3D ''  (string)
>=20
> udi =3D '/org/freedesktop/Hal/devices/temp/192'
>   block.device =3D '/dev/ad2s1d'  (string)
>   block.major =3D 0  (0x0)  (int)
>   block.minor =3D 99  (0x63)  (int)
>   info.ignore =3D true  (bool)
>   info.parent =3D '/org/freedesktop/Hal/devices/volume_part1_size_1200314=
78784'  (string)
>   info.product =3D 'Ignored Device'  (string)
>   info.subsystem =3D 'block'  (string)
>   info.udi =3D '/org/freedesktop/Hal/devices/ignored-device'  (string)
>=20
> Any suggestions for making the drive automount?

Have you defined any hal FDI files that might be ignoring this device?
I don't see where else it would be ignored.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-e0gyofxjJYl+ztNF22Ko
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAklyzAUACgkQb2iPiv4Uz4eVZQCcC4VKd6Z0G/bL4yUCQNqGSgcF
gZkAoIeRVXoOMIHsSqBbgVkMEHI0GkSz
=hYhX
-----END PGP SIGNATURE-----

--=-e0gyofxjJYl+ztNF22Ko--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1232260102.51752.20.camel>