From owner-freebsd-questions@FreeBSD.ORG Mon Sep 29 19:56:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EE371065697 for ; Mon, 29 Sep 2008 19:56:27 +0000 (UTC) (envelope-from Gabor@Zahemszky.HU) Received: from mx01.hdsnet.hu (mx01.hdsnet.hu [193.110.57.2]) by mx1.freebsd.org (Postfix) with ESMTP id F326F8FC1D for ; Mon, 29 Sep 2008 19:56:26 +0000 (UTC) (envelope-from Gabor@Zahemszky.HU) Received: from [92.249.232.5] (helo=Picasso.Zahemszky.HU) by mx01.hdsnet.hu with esmtpa (HDSNet mail 1.1} #1) id 1KkOOv-0007Gd-Rr for freebsd-questions@freebsd.org; Mon, 29 Sep 2008 21:27:21 +0200 Date: Mon, 29 Sep 2008 21:27:36 +0200 From: Zahemszky =?ISO-8859-2?Q?G=E1bor?= To: freebsd-questions@freebsd.org Message-ID: <20080929212736.70634956@Picasso.Zahemszky.HU> Organization: Zahemszky Bt. X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Subject: Writing hald .fdi files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 19:56:27 -0000 Hi! I've bought an external disk. I can mount it by hand, with mount -t msdosfs -o large /dev/xxx /mnt command. (I have to use the "-o large" option.) I use XFCE4, with Thunar-volman-plugin. When I plug my new disk in, I got a message box: Cannot mount, try with "-o large" option. So I'd like to say to the "automounter" of Thunar, to use the mount_msdosfs command with that "-o large" option. After some googling, I found HAL specification on http://webcvs.freedesktop.org/hal/hal/doc/spec/hal-spec.html?view=3Dco&path= rev=3DHEAD and wrote that .fdi file: =3D=3D /usr/local/share/hal/fdi/policy/30user/10-add-mount-option-for-Verba= tim.fdi =3D=3D true= =3D=3D=3D=3D My problem is: after plugging my disk in, in lshal output, I can see the ne= w key: volume.policy.mount_option.large ( =3D true) , but got the same error messa= ge about the mounting problem. I tried it with Linux (+GNOME). Linux can mount my disk, so I tried to mount with read-only flag. The same problem: I can see my new key, but it hasn't got any effect (well, it has. without my .fdi file, it can mount = with rw, but with my .fdi file, it cannot mount. Neither rw, nor ro.) So my question: how can I make an .fdi file, which tells to these "automoun= ters": if this is device X from vendor Y, mount it with mount option XY! Thanks, G=E1bor --=20 #!/bin/ksh Z=3D'21N16I25C25E30, 40M30E33E25T15U!';IFS=3D' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set -- $Z;for i;{ [[ $i =3D ? ]]&&print $i&&break;[[ $i =3D ??? ]]&&j=3D$i&&i=3D${i%?};typeset -i40 i=3D8#$i;print -n ${i#???};[[ "= $j" =3D ??? ]]&&print -n "${j#??} "&&j=3D;typeset +i i;};IFS=3D' 0123456789 ';s= et -- $Z;for i;{ [[ $i =3D , ]]&&i=3D2;[[ $i =3D ?? ]]||typeset -l i;j=3D"$j $i";typeset +l i;};print "$j"