FreeBSD: Disabling HAL automount on login


My Thinkpad R61 with 250Gb has NetBSD and FreeBSD dual boot. When running FreeBSD and Gnome, Hal insanely tries to mount the NetBSD partition. If FreeBSD hangs (when suspend/resume and an 3G usb stick attached) the NetBSD partition need to be fsck’ed. To avoid this, simply create the following file and add the code below:

/usr/local/share/hal/fdi/policy/10osvendor/20-disable-automount-fdi :

<!– disable automount on login –>
<device>
<match key=”storage.hotpluggable” bool=”false”>
<match key=”storage.removable” bool=”false”>
<merge key=”storage.automount_enabled_hint” type=”bool”>false</merge>
</match>
</match>
</device>

Then restart HAL:

/usr/local/etc/rc.d/hald restart

About jjjesss

I'm a guy interested in technology, bsd fan and concerned about the world around.
This entry was posted in BSD, FreeBSD, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s