- Timestamp:
- 12/22/2007 07:15:43 AM (16 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- d10ebccc
- Parents:
- f2775848
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/hal.xml
rf2775848 r3496df9 245 245 246 246 <sect3><title>Configuration Information</title> 247 <sect4><title>Allowing users to invoke HAL methods</title> 247 248 248 249 <para>The default setup for <application>HAL</application> is to allow … … 303 304 </deviceinfo></literal> 304 305 EOF</userinput></screen> 305 306 </sect4> 307 308 <sect4><title>Installing mount helpers</title> 306 309 <para><application>HAL</application> only provides the methods such 307 310 as Mount() to act on hardware. In order to take advantage of these, … … 311 314 installed.</para> 312 315 <!-- FIXME: is Ivman still alive? --> 313 316 <!-- FIXME: explicitly name the mount helpers 317 from KDE (???) and Xfce (exo-mount) --> 318 </sect4> 319 320 <sect4><title>Changing default mount options</title> 314 321 <para>In some cases, it is necessary to specify some default mount 315 322 options for filesystems. E.g., in non-English environments, the … … 352 359 <para>The important point above is that the configuration procedure is 353 360 desktop-specific. However, as of December, 2007, only GNOME allows the 354 user to set default mount options on a per-filesystem basis. To do so, 355 change the 356 <systemitem>/system/storage/default_options/[fs_type]/mount_options</systemitem> 357 GConf key either using <xref linkend="gconf-editor"/>, or from the 358 command line, as demonstrated in the following example:</para> 359 360 <screen><userinput>gconftool-2 --type list --list-type=string \ 361 --set /system/storage/default_options/vfat/mount_options \ 362 "[shortname=mixed,uid=,usefree,iocharset=koi8-r,codepage=866]"</userinput></screen> 363 364 <para>See more details in the gnome-mount(1) manual page.</para> 365 366 <para>KDE allows the mount options to be set only on a per-volume basis, 361 user to set default mount options on a per-filesystem basis, 362 as described in the next paragraph. 363 KDE allows the mount options to be set only on a per-volume basis, 367 364 not per-filesystem, which is a 368 365 <ulink url="http://bugs.kde.org/show_bug.cgi?id=133456">bug</ulink>, … … 377 374 an XML-ized sudo-like confguration parser, which has nothing 378 375 common with the "default mount options" problem. --> 379 In these desktop environments, if the built-in 380 default mount options are not suitable, it is needed to mention every 381 possible removable storage device in <filename>/etc/fstab</filename> 382 with the correct options, thus mostly defeating the point of 383 installing HAL.</para> 384 385 <para>If HAL does not accept new mount options by default, 386 (in the above example, this happens with the <option>usefree</option> 387 option), as <systemitem class="username">root</systemitem> user, 388 create a custom policy file that mentions unknown mount options:</para> 376 In KDE and Xfce, if the built-in default mount options are not suitable, 377 it is needed to mention every possible removable storage device in 378 <filename>/etc/fstab</filename> with the correct options, thus mostly 379 defeating the point of installing HAL.</para> 380 381 <para>In order to adjust the default mount options, GNOME users should 382 change the 383 <systemitem>/system/storage/default_options/[fs_type]/mount_options</systemitem> 384 GConf key either using <xref linkend="gconf-editor"/>, or from the 385 command line, as demonstrated in the following example:</para> 386 387 <screen><userinput>gconftool-2 --type list --list-type=string \ 388 --set /system/storage/default_options/vfat/mount_options \ 389 "[shortname=mixed,uid=,usefree,iocharset=koi8-r,codepage=866]"</userinput></screen> 390 391 <para>See more details in the gnome-mount(1) manual page.</para> 392 </sect4> 393 394 <sect4><title>Adding allowed mount options</title> 395 <para>The list of mount options permitted in the default HAL 396 configuration resides in the 397 <filename>/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi</filename> 398 file. GNOME and KDE users may want to use options not in this 399 list (in the above example, this applies to the <option>usefree</option> 400 option). In this case, as <systemitem class="username">root</systemitem> 401 user, create a custom policy file that mentions unknown mount 402 options:</para> 389 403 390 404 <screen role="root"><userinput>install -v -m755 -d /etc/hal/fdi/policy/30user && … … 407 421 <match key="storage.no_partitions_hint" bool="true"> 408 422 <append key="volume.mount.valid_options" type="strlist">usefree</append> 423 <!-- Insert other options here --> 409 424 </match> 410 425 </match> … … 415 430 <match key="volume.fstype" string="vfat"> 416 431 <append key="volume.mount.valid_options" type="strlist">usefree</append> 432 <!-- Insert other options here --> 417 433 </match> 418 434 </match> … … 422 438 EOF</userinput></screen> 423 439 440 </sect4> 424 441 </sect3> 425 442
Note:
See TracChangeset
for help on using the changeset viewer.