LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-16-2007, 06:47 AM   #16
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 661

Rep: Reputation: 38

Quote:
Originally Posted by T3slider View Post
Code:
$ mount /dev/hda /mnt/cdrom
Yes! That works (well, it's hdc on my pc ).

Unless my memory is playing games with me, I used to do mount /mnt/cdrom.
And that doesn't work.
Problem solved.
Thanks everyone!
 
Old 09-16-2007, 11:54 AM   #17
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,457

Rep: Reputation: Disabled
Quote:
Originally Posted by adriv View Post
Unless my memory is playing games with me, I used to do mount /mnt/cdrom.
It works without the /dev/hdx if it is in your fstab.

Brian
 
Old 09-16-2007, 02:50 PM   #18
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 661

Rep: Reputation: 38
Quote:
Originally Posted by BCarey View Post
It works without the /dev/hdx if it is in your fstab.

Brian
No doubt, but then you would have to uncomment that line in fstab and as far as I understand (and have experienced), the whole HAL_plug&play_thing don't work no more (for your CD/DVD, when you're in X).
If I'm wrong, please enlighten me.
 
Old 09-16-2007, 10:39 PM   #19
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
no it still works

HAL reads fstab. HAL doesn't have any problems with fstab.

And if you have problems with HAL you can ALWAYS mount anything the same way you used to do in Slack < 12.


Adriv, why don't you tell us the EXACT problem you are having?? I have read through the post and stil haven't got what your problem is exactly!
 
Old 09-17-2007, 01:57 AM   #20
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by duryodhan View Post
no it still works

HAL reads fstab. HAL doesn't have any problems with fstab.

And if you have problems with HAL you can ALWAYS mount anything the same way you used to do in Slack < 12.
Then why is the cdrom line commented out by default in fstab? For a while I ran with that line uncommented (because that is what I was used to from other distros) and all CDs/DVDs mounted ok. Then I read in the Changes_And_Hints.txt that the line is commented out because it interferes with HAL, so now I have it commented out again.
So does it really matter if the line is commented out or not?
 
Old 09-17-2007, 03:26 AM   #21
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I have had my optical drives in fstab since HAL was introduced into -current, and have never had a problem. I am sure there is some scenario that there could be a conflict, or else Pat would not have taken the stance he has, but I certainly have never encountered it.

As for the issue of mounting, the previous posters are correct; HAL should not hinder the system's ability to mount and unmount volumes via the traditional commands/fstab. As I said earlier in the topic, HAL does not handle mounting and unmounting of the volumes itself, so there is no way that it could directly interfere with it.
 
Old 09-17-2007, 06:08 AM   #22
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 661

Rep: Reputation: 38
Quote:
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.
So I always thought cdrom had to be commented out.
Quote:
I have had my optical drives in fstab since HAL was introduced into -current, and have never had a problem. I am sure there is some scenario that there could be a conflict, or else Pat would not have taken the stance he has, but I certainly have never encountered it.
Tried that now and indeed, it works too.
Well, anyways, problem solved. Still don't know why cdrom is commented by default, but there will be good reasons for it, as MS3FGX pointed out.

Note:
I'm using Xfce nowadays, if I recall correctly, the behaviour of KDE is a little more flaky with this automounting thing. At least I remember having some problems with it (in KDE) when the line in fstab was uncommented.
Seems to be gone...
KDE-bug?

Last edited by adriv; 09-17-2007 at 06:18 AM.
 
Old 09-17-2007, 09:13 AM   #23
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
The reason the /dev/cdrom line is commented out by default is pretty simple.
Without a /dev/cdrom line in /etc/fstab, normal users who are in the plugdev and cdrom groups will be able to mount the devices using DBUS/HAL. Since HAL usage defaults to on, the only setup required for it to "just work" is adding the user to the appropriate groups.

If the admin prefers the "old" behavior, then the fstab line can be uncommented. At that point, the behavior (whether using HAL or not) is exactly like it was in Slackware 11.0 and prior. The fstab line does not have "user" or "users" as an option, so only root will be allowed to mount the device. This is consistent with what CHANGES_AND_HINTS says about the fact that HAL will honor settings in /etc/fstab.
 
Old 09-18-2007, 11:07 PM   #24
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Rep: Reputation: 30
Hello All,

I am very intrigued with this concept of automating the console mount process,
and as such; I have built and installed the two programs (ivman & pmount) from the slackbuilds supplied (thanks rworkman ).

What I am wondering now is; how do I configure pmount and/or ivman so that I can allow users ability to automatically mount CD/DVD/USB's on the console without entering commandline syntax?

[Basically, I am chasing an option that does what adding users to plugdev/cdrom groups in KDE achieves, only for the console].

Is this possible? I hope that I am understanding correctly what these programs do.

I have looked into the currently empty '/etc/pmount.allow' file, where it says I can add device listings, but I am unsure of the correct syntax needed to achieve what I want to do.

Am I supposed to generate 'fstab' style entries (covering all available hd*/sd* entry options)?
Or is there some sort of global USB/CD/DVD 'udev' style rule that I am supposed to place in the file?

Assistance on this would be greatly appreciated, many thanks in advance for any help.

Regards

Orbit

Last edited by orbit; 09-18-2007 at 11:09 PM.
 
Old 09-20-2007, 04:15 PM   #25
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 187

Rep: Reputation: 17
I also have automounting working in KDE but not in a console.

I think that a unified system that works under both of them would be an elegant unix-style solution.
Going that way it should primarily work in the console.
 
Old 09-20-2007, 05:21 PM   #26
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 661

Rep: Reputation: 38
Quote:
Originally Posted by brodo View Post
I also have automounting working in KDE but not in a console.

I think that a unified system that works under both of them would be an elegant unix-style solution.
Going that way it should primarily work in the console.
Did you uncomment the cdrom line in fstab?
 
Old 09-20-2007, 05:23 PM   #27
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 661

Rep: Reputation: 38
Quote:
Originally Posted by orbit View Post
Am I supposed to generate 'fstab' style entries (covering all available hd*/sd* entry options)?
I guess so.
Don't you have an old fstab lying around somewhere?
 
Old 09-20-2007, 07:34 PM   #28
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 187

Rep: Reputation: 17
Quote:
Originally Posted by adriv View Post
Did you uncomment the cdrom line in fstab?
That will let me mount manually.
But I am thinking of automounting w/o issuing mount command manually.
 
Old 09-21-2007, 12:34 AM   #29
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by brodo View Post
That will let me mount manually.
But I am thinking of automounting w/o issuing mount command manually.
What are you using to automount in console?
 
Old 09-21-2007, 04:09 AM   #30
brodo
Member
 
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 187

Rep: Reputation: 17
Quote:
Originally Posted by dive View Post
What are you using to automount in console?
I'd like to automount USB and CDROM/DVD devices for example.
In clean console, without Xorg/KDE.
 
  


Reply

Tags
console, hal, mount


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
How to use HAL wesd Linux - Software 1 06-11-2007 04:00 PM
hal krusty_lab Fedora 3 10-10-2005 10:23 AM
Hal gamehack Programming 7 12-16-2004 02:03 AM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 10:00 PM
X server in console 1 crashes on return from console 2 fieldmethods Red Hat 4 09-05-2003 12:12 AM


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