From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 19:43:28 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 E940B10656D6 for ; Tue, 30 Sep 2008 19:43:28 +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 A71618FC15 for ; Tue, 30 Sep 2008 19:43:28 +0000 (UTC) (envelope-from Gabor@Zahemszky.HU) Received: from [92.249.232.160] (helo=Picasso.Zahemszky.HU) by mx01.hdsnet.hu with esmtpa (HDSNet mail 1.1} #1) id 1Kkl7j-0005f3-Le; Tue, 30 Sep 2008 21:43:08 +0200 Date: Tue, 30 Sep 2008 21:43:20 +0200 From: Zahemszky =?ISO-8859-2?Q?G=E1bor?= To: freebsd-questions@freebsd.org Message-ID: <20080930214320.22d70064@Picasso.Zahemszky.HU> In-Reply-To: <200809292213.09877.fbsd.questions@rachie.is-a-geek.net> References: <20080929212736.70634956@Picasso.Zahemszky.HU> <200809292213.09877.fbsd.questions@rachie.is-a-geek.net> 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 Cc: Mel Subject: Re: 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: Tue, 30 Sep 2008 19:43:29 -0000 Mon, 29 Sep 2008 22:13:09 +0200 -n Mel =EDrta: > On Monday 29 September 2008 21:27:36 Zahemszky G=E1bor wrote: >=20 > > So my question: how can I make an .fdi file, which tells to these > > "automounters": > > > > if this is device X from vendor Y, mount it with mount option XY! >=20 > Add a noauto mountpoint to /etc/fstab, with all the correct options. >=20 > Though, hal is one of those projects that sparked my sig - too many > ways to possibly do it, not enough straight ways to really do it. > So, maybe check this too: > http://www.freebsd.org/gnome/docs/halfaq.html#q3 Hi! Thanks for your help, but it doesn't work. I read your mail, and that faq - btw, yo suggested to put that device info fstab, that faq suggest the opposite of that. I tried this line in /etc/fstab (this is line 13.) /dev/msdosfs/VERBATIM /home/zgabor/VERBATIM msdosfs large,noauto 0 0 - and tried it with /media/VERBATIM, /media, /mnt neither of them worked. I got the next error box: fstab: /etc/fstab:13: Inappropriate file type or format fstab: /etc/fstab:13: Inappropriate file type or format=20 org.freedesktop.Hal.Device.Volume.UnknownFailure I tried it with a "none" string as the mountdir, didn't work, too. Any other? 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"