LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-07-2007, 01:38 PM   #1
Nylex
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?

Thanks!

Last edited by Nylex; 07-07-2007 at 01:46 PM.
 
Old 07-07-2007, 02:24 PM   #2
simcox1
Member
 
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, 02:28 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

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

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
example:
Code:
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, 02:51 PM   #5
Nylex
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, 06:15 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,700
Blog Entries: 7

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

See the man page of that command for more info.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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