Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-07-2007, 02:38 PM   #1
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
HAL/D-Bus and mounting manually

I don't use Konqueror (or any other file manager) for browsing files and I'm not interested in having removable devices automatically mounted. I think this means I don't have to touch HAL or D-Bus at all and am assuming I can just uncomment the CD-ROM line in my fstab, configure udev (and yes, I'm aware that there have been some changes to the rules) and add lines to my fstab as I used to. Is this correct, or is there anything I should be doing with HAL/D-Bus?


Last edited by Nylex; 07-07-2007 at 02:46 PM.
Old 07-07-2007, 03:24 PM   #2
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
chmod -x /etc/rc.d/rc.hald
Old 07-07-2007, 03:28 PM   #3
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Yes. Thanks .
Old 07-07-2007, 03:45 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
HAL and the dbusd daemons may have more basic uses such as detecting when you connect your network cable.

I have some external drives that I normally have connected. I have entries for them in the /etc/fstab file. I used the noauto and user options so that I can mount them as a normal user. The noauto allows the computer to boot up successfully even if the drive is unconnected. I also use UUID= instead of a device entry such as /dev/sda1. The device entry may be incorrect between boots. Especially if you plug in another device. The uuid number is unique to the filesystem. I obtained the info like this:
udevinfo -q env -n /dev/sdb1

You can use the filesystem label instead: "LABEL=thelabel".

Inserting the drive, I don't get an annoying popup either.
jschiwal@hpamd64:~> grep NetDisk /etc/fstab
LABEL=NetDisk                             /media/NetDisk xfs defaults,user,noauto   0 0
jschiwal@hpamd64:~> mount /media/NetDisk/
jschiwal@hpamd64:~> umount /media/NetDisk/
This works for fat32 thumbdrives as well. Also use the "uid","gid","fmask" & "dmask" options. Then another regular user on your machine will not be able to read your thumbdrive. ( Weak security, they could on another computer or if they have root access ).
Old 07-07-2007, 03:51 PM   #5
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
I guess using "LABEL" in your fstab is similar to having udev make a symlink to whatever the device node is, e.g. I have a udev rule to make a symlink to /dev/flash when I plug my memory stick in.
Old 07-07-2007, 07:15 PM   #6
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 2,023

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
You might also consider the ol' "hal-disable-polling" trick.

See the man page of that command for more info.


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
hal/dbus mounting cd/dvd ToK Linux - Software 5 06-09-2007 07:01 PM
Manual mounting; disabling hal? Regulus Linux - Software 1 01-15-2007 06:34 PM
mounting, hal, fstab-sync and permissions sonicbuddha Fedora 2 01-14-2006 05:40 AM
Mounting a HD under HAL rtcary Linux - General 4 05-07-2005 01:29 PM
Mounting HD using HAL rtcary Linux - Newbie 1 03-14-2005 07:56 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:05 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