HAL tutorial and rc.d scripts
Joe Marcus Clarke
marcus at marcuscom.com
Tue Oct 17 21:03:39 UTC 2006
On Tue, 2006-10-17 at 13:53 -0700, Sean McNeil wrote:
> On Tue, 2006-10-17 at 16:01 -0400, Joe Marcus Clarke wrote:
> > On Tue, 2006-10-17 at 12:45 -0700, Sean McNeil wrote:
> > > I've just managed to get my system updated to GNOME 2.16 after some
> > > difficulties. I understand that HAL is supported with this version, but
> > > I cannot find any man page for hald or any tutorial for how it is used.
> > > Can someone please point me in the right direction?
> >
> > There is a README installed, but in general, you just want to add
> > yourself to the operator group (if not already there), and start hald.
> > Everything else should just work.
> >
> > If you'd like to submit documentation for the FreeBSD GNOME FAQ, or add
> > to the README, your patches would be happily accepted.
>
> If I understood how it works, I would be glad to add patches. Perhaps
> you can describe what is happening to my setup and that would help my
> understanding:
>
> I have the following ata devices:
> ATA channel 0:
> Master: ad0 <Maxtor 6Y120L0/YAR41VW0> ATA/ATAPI revision 7
> Slave: ad1 <Maxtor 6L200R0/BAH41E00> ATA/ATAPI revision 7
> ATA channel 1:
> Master: acd0 <PIONEER DVD-RW DVR-104/1.40> ATA/ATAPI revision 6
> Slave: acd1 <TOSHIBA CD/DVDW SD-R5372/TU31> ATA/ATAPI revision 7
> ATA channel 2:
> Master: ad4 <ST380013AS/3.05> Serial ATA v1.0
> ATA channel 3:
> Master: ad6 <WDC WD4000KD-00NAB0/01.06A01> Serial ATA v1.0
> ATA channel 4:
> Master: ad8 <WDC WD4000KD-00NAB0/01.06A01> Serial ATA v1.0
> Slave: no device present
> ATA channel 5:
> Master: ad10 <WDC WD2000JD-00HBB0/08.02D08> Serial ATA v1.0
>
> ad4 - My root filesystem
>
> ad0 - Part of a gmirror /dev/mirror/folka
> ad1 - Part of a gmirror /dev/mirror/folka and extra space as /export (glabel /dev/ufs/export)
>
> ad6 and ad8 - gmirror /dev/mirror/home
>
> ad10 - /users (glabel /dev/ufs/users)
>
> my fstab has:
> # Device Mountpoint FStype Options Dump Pass#
> /dev/ad4s1b none swap sw 0 0
> /dev/ad4s1a / ufs rw 1 1
> /dev/mirror/home /home ufs rw,acls 1 1
> /dev/mirror/folka /folk ufs rw,acls 1 1
> /dev/ufs/users /users ufs rw,acls 1 1
> /dev/ufs/export /export ufs rw,acls 1 1
> proc /proc procfs rw 0 0
> linproc /compat/linux/proc linprocfs rw 0 0
> /dev/cd0 /mnt/dvd0 udf rw,noauto 0 0
> /dev/cd1 /mnt/dvd1 udf rw,noauto 0 0
> /dev/cd0 /mnt/cdrom0 cd9660 rw,noauto 0 0
> /dev/cd1 /mnt/cdrom1 cd9660 rw,noauto 0 0
>
> (tried with acd* as well)
>
> My df shows:
> Filesystem Size Used Avail Capacity Mounted on
> /dev/ad4s1a 69G 21G 42G 33% /
> devfs 1.0K 1.0K 0B 100% /dev
> /dev/mirror/home 361G 83G 250G 25% /home
> /dev/mirror/folka 111G 60G 42G 59% /folk
> /dev/ufs/users 180G 128G 38G 77% /users
> /dev/ufs/export 73G 520M 67G 1% /export
> procfs 4.0K 4.0K 0B 100% /proc
> linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc
> /dev/md0 124M 64K 114M 0% /tmp
> devfs 1.0K 1.0K 0B 100% /var/named/dev
>
> I'm guessing fstab doesn't really have anything to do with hald. In
> Nautilus, I now end up with a new icon on the desktop that is part of
> my /dev/mirror/folka. I think it's from ad1 as it must have decided
> since /export is on there to pull that in as well.
>
> In "Computer" from nautilus, I see:
> CD-RW/DVD-R Drive
> 114.5 GB Volume
> 372.6 GB Volume
> 372.6 GB Volume (2)
> export
> users
> Filesystem
> Network
>
> So it is obvious to me that the separate drives are showing for gmirror
> (which is a bug?) instead of the mirrors, but I'm puzzled about my /folk
> disk as it only shows one of the discs. I also only see one of my DVD
> drives and I can't get it to mount anything. To make everything
> complete, here is my /var/log/message of disc detection:
hal currently lacks RAID support, so each disk will be displayed. You
can choose to ignore these entries by
modifying /usr/local/share/hal/fdi/preprobe/20thirdparty/10-ignore-disks.fdi. Something like this should work:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="block.device" string="/dev/ad0">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
The block device string should be whatever lshal reports it to be.
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20061017/6397f615/attachment.pgp
More information about the freebsd-gnome
mailing list