Writing hald .fdi files

Zahemszky Gábor Gabor at Zahemszky.HU
Tue Sep 30 19:43:29 UTC 2008


Mon, 29 Sep 2008 22:13:09 +0200 -n
Mel <fbsd.questions at rachie.is-a-geek.net> írta:

> On Monday 29 September 2008 21:27:36 Zahemszky Gábor wrote:
> 
> > 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!
> 
> Add a noauto mountpoint to /etc/fstab, with all the correct options.
> 
> 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 
 org.freedesktop.Hal.Device.Volume.UnknownFailure

I tried it with a "none" string as the mountdir, didn't work, too.

Any other?

Thanks,

Gábor

-- 
#!/bin/ksh
Z='21N16I25C25E30, 40M30E33E25T15U!';IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ
';set -- $Z;for i;{ [[ $i = ? ]]&&print $i&&break;[[ $i
= ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j"
= ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set
-- $Z;for i;{ [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;j="$j
$i";typeset +l i;};print "$j"


More information about the freebsd-questions mailing list