LinuxQuestions.org
Visit Jeremy's Blog.
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-04-2007, 12:23 PM   #1
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 110

Rep: Reputation: 16
hal and fstab and kde


I just did a clean install of slack 12 on a free partition. I have 2 hd's with several partitions which I only mount when I need them. Do I have to add them in fstab or not? I don't understand how hal/dbus works. In KDE the partitions are shown and I can "mount" (is it really mounting?) them but they all have the same name (41G Media). I must mount them to see if it is sda1 or sda2. What gives them names? KDE or udev? What will happen if I add them to fstab? In CHANGES_AND_HINTS I found this:
Quote:
The /dev/cdrom line in /etc/fstab is commented out by default, as it interferes
with HAL.
So I don't know what to do.
 
Old 07-04-2007, 12:48 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
You can rename the icon by right-clicking on it an select properties (Eigenschappen in Dutch, don't know what it says in German).
I tried it, and after unmounting and remounting the partition on the console, the name stayed the same.
I don't know what it will do over a reboot, but maybe this is a solution to your problem?
 
Old 07-04-2007, 01:27 PM   #3
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 110

Original Poster
Rep: Reputation: 16
If I rename the icon and press "ok" it mounts the partition and copies all files from
"system:/media/sda1" to "file:///media/disk". Had to abort. I don't think renaming
the icons is the right way. Changing the mountpoint in the properties tab also starts copying.
 
Old 07-04-2007, 01:45 PM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
and if you try mounting the partition first, and then renaming the icon?
 
Old 07-04-2007, 02:06 PM   #5
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 110

Original Poster
Rep: Reputation: 16
It's the same. Where can I configure Konqueror not to mount everything on "media/disk"?
Is it a udev or KDE thing?
 
Old 07-04-2007, 05:13 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
For context, I'll paste both the part of C&H that you quoted, as well as the part that occurs after it.

The /dev/cdrom line in /etc/fstab is commented out by default, as it interferes
with HAL. HAL defaults to on, so if you do not wish to use it, you will need
to chmod -x /etc/rc.d/rc.hald and uncomment the /dev/cdrom line in /etc/fstab

Note that HAL will honor settings in /etc/fstab if a device is present there,
so you could technically have removable devices defined in /etc/fstab, but if
the fstab settings do not allow normal users to mount them (with the "user" or
"users" option), then HAL/dbus will not allow them to be mounted either.
Also note that you will need to run "/etc/rc.d/rc.messagebus reload" after
adding any users to plugdev, power, or video groups so that it re-reads the
/etc/group file.

Does that not answer your question?
In other words, if you put the partitions in /etc/fstab as you would have done in earlier releases of Slackware, *and* the /etc/fstab entries would allow you (as a normal user) to mount the partitions, then HAL will honor those settings. Therefore, if your /etc/fstab file has this:
/dev/hda /cdrom auto noauto,user,noexec,ro 0 0
/dev/usb1024 /usb2 vfat noauto,user,rw,dmask=0022,fmask=0133 0 0
then you will be able to mount your cdrom drive and/or your usb thumbdrive in KDE or Xfce (or any other HAL-aware desktop environment), but instead of mounting them to /media/whatever, they will be mounted where and with whatever options are specified in /etc/fstab.

Last edited by rworkman; 07-04-2007 at 05:18 PM.
 
Old 07-04-2007, 06:06 PM   #7
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 110

Original Poster
Rep: Reputation: 16
Many thanks rworkman, now I understand the connection between hal and fstab. I never mounted as user but used kwikdisk starting with sudo. I've been confused because with the same fstab entries kde on slack 11 showed media:/mymountpoints while in slack 12 it's media:/disk.
 
  


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
Problems with HAL 0.5.8.1 and KDE superandrzej Slackware 0 12-14-2006 10:32 AM
Slackware 11, KDE 3.5.4 + hal shadowhunter Slackware 3 10-07-2006 01:18 PM
mounting, hal, fstab-sync and permissions sonicbuddha Fedora 2 01-14-2006 04:40 AM
mounting, hal, fstab-sync and permissions sonicbuddha Linux - General 1 12-20-2005 12:38 PM
FC3 fstab HAL confict... dr_sloppy Linux - Newbie 2 01-24-2005 09:32 AM


All times are GMT -5. The time now is 05:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration