LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   HAL/D-Bus and mounting manually (http://www.linuxquestions.org/questions/slackware-14/hal-d-bus-and-mounting-manually-567425/)

Nylex 07-07-2007 02:38 PM

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!

simcox1 07-07-2007 03:24 PM

chmod -x /etc/rc.d/rc.hald

Nylex 07-07-2007 03:28 PM

Yes. Thanks :).

jschiwal 07-07-2007 03:45 PM

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 ).

Nylex 07-07-2007 03:51 PM

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.

rkelsen 07-07-2007 07:15 PM

You might also consider the ol' "hal-disable-polling" trick.

See the man page of that command for more info.


All times are GMT -5. The time now is 02:41 AM.