Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 08-22-2006, 02:46 PM   #1
Registered: Aug 2006
Distribution: openSUSE 10.3
Posts: 63

Rep: Reputation: 15
unable to turn off auto mounting feature

Hello, I am trying to write a program that will mount a USB mounted device into a set location using the system() command in C/C++. However, suse will automatically mount this device in /media/usbdisk1 or something along those lines. I already edited the fstab file. I also checked around for autofs and automount and found they are not even on the machine. Is there some way I can turn off this automount feature or circumvent it?
Old 08-22-2006, 03:26 PM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Which SUSE version?
10.0: In /usr/share/hal/fdi/policy/10osvendor, in all files change all lines with "should_mount" from "true" to "false"
Create /usr/share/hal/fdi/policy/20thirdparty/nomount_usb_disk.fdi with the following content:
<?xml version"1.0" encoding"ISO-8859-1"?> <!-- -*- SGML -*- -->
<!-- This .fdi file prevent automount for external harddisk. -->
<deviceinfo version"0.2">
<match key"storage.bus" string"usb">
<match key"storage.drive_type" string"disk">
<match key"storage.policy.should_mount" bool"true">
<merge key"storage.policy.should_mount" type"bool">false</merge>
Haven't tried the 10.0 methods. These hints are from a german SUSE forum

Can't help with 10.1 (yet).
There might be an option to blacklist certain devices.

Last edited by abisko00; 08-22-2006 at 03:38 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to turn off auto mount in suse on embedded board sharkus Linux - Kernel 3 11-27-2007 11:24 AM
Problems with screen resolution, auto-mounting hda1, unable to save file meiya Debian 1 01-09-2006 09:57 AM
Unable to use the Lock-Screen feature Waerner Ubuntu 4 08-01-2005 04:02 PM
Auto-refresh feature ppuru LQ Suggestions & Feedback 1 08-12-2004 08:16 AM
turn off auto-login XDM eduac Linux - Software 2 12-24-2003 10:07 AM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration