SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got automounting working (at least for my cdrom / dvd / optical drive) in KDE.
However, I'm not always in X (my runlevel defaults to console) so I was wondering if the automounting features work outside of KDE? I did try, but nothing happens. What does KDE do to initiate the automount?
As it stands, I can still mount the CD / DVD if I drop into root and issue:
mount -t auto /dev/cdrom /mnt/cdrom
then drop out as my normal user. (I use the '-t auto' because there's no longer an /etc/fstab entry for my optical drive)
Is there a better way of handling it than this (in the console)?
HAL does not actually mount anything, or even do anything with connected devices, that is a popular misconception. What HAL actually does is inform the system that a device has been connected to the system, it is up to some software application on the system to be listening for that announcement and act accordingly (in this case, mount the file system on the device). KDE is handling that for you, so once you are outside of X, it no longer happens. HAL is still doing it's thing, but nobody is listening anymore.
To rectify this you need to use a separate HAL event handler like ivman. This works independently without the need of a desktop environment, so will work no matter what runlevel (assuming it is started in that runlevel, obviously).
Unfortunately Slackware does not currently include ivman, so you will need to compile it yourself unless for can find a binary package for it someplace (LinuxPackages.net does not seem to have it). There is a SlackBuild for it, at least.
Good post, MS3FGX - someone want to sticky this one? I think it's a good candidate. Alternatively, perhaps a link to this in my already-stickied HAL post would be good.
HAL does not actually mount anything, or even do anything with connected devices, that is a popular misconception. What HAL actually does is inform the system that a device has been connected to the system, it is up to some software application on the system to be listening for that announcement and act accordingly (in this case, mount the file system on the device). KDE is handling that for you, so once you are outside of X, it no longer happens. HAL is still doing it's thing, but nobody is listening anymore.
To rectify this you need to use a separate HAL event handler like ivman. This works independently without the need of a desktop environment, so will work no matter what runlevel (assuming it is started in that runlevel, obviously).
Unfortunately Slackware does not currently include ivman, so you will need to compile it yourself unless for can find a binary package for it someplace (LinuxPackages.net does not seem to have it). There is a SlackBuild for it, at least.
Do you NEED ivman when you're not in X?
I can't seem to mount CD's before starting X...
Ivman will work in or out of X. An alternative is autofs. I use both those and HAL in kde with no problems at all. Each one works fine depending on how you set them up. I use autofs for auto mounting when I cd into a cd/dvd/phone/thumbdrive from console. Ivman works great for autoplaying DVDs which kde refuses to do properly, and in kde I can just plug in a thumbdrive and open it as a folder or cd into it with terminal.
I believe you when you say it works, but is it really necessary?
I mean, suppose X won't start and I want to install a package from a Slackware CD. And ivman is not installed.
How do you do that? Since HAL won't let you mount the 'old-fashioned' way.
I know you can disable HAL and uncomment the line in fstab for cdrom, but that seems like an ugly work-around to me.
Is there another way (out-of-the-box)?
I believe you when you say it works, but is it really necessary?
I mean, suppose X won't start and I want to install a package from a Slackware CD. And ivman is not installed.
How do you do that? Since HAL won't let you mount the 'old-fashioned' way.
I know you can disable HAL and uncomment the line in fstab for cdrom, but that seems like an ugly work-around to me.
Is there another way (out-of-the-box)?
WHERE did this idea that "HAL won't let you mount the 'old-fashioned' way" come from? I'd like to find the individual responsible for that and tenderize them with a clue-cleaver.
WHERE did this idea that "HAL won't let you mount the 'old-fashioned' way" come from? I'd like to find the individual responsible for that and tenderize them with a clue-cleaver.
Ehmmm, it just don't work like it used to be.
Quote:
Originally Posted by onebuck
I don't think that the udev rules will allow that!
Don't know what the exact cause is (not a programmer, just a hobbyist), but since HAL came along, well...
Quote:
Originally Posted by rworkman
For those who want binary packages and don't care to use the "popular" package site, I put ivman and pmount packages in my repo last night. Enjoy! :-)
Thank you very much!
So I guess there is no other way to achieve what I want, without ivman/uncomment the line in fstab?
I just tried mounting a CD from the console the old-fashioned way by typing the following (as root, since I haven't given my user account permission to mount/unmount):
Code:
$ mount /dev/hda /mnt/cdrom
And it worked perfectly. I didn't have to pass a single option. Wow that's simple. To further prove that HAL doesn't interfere with mounting in any way whatsoever I started X with the CD already in the drive (so KDE wouldn't pop up anything asking me what to do with the CD once I inserted it) and made sure it was unmounted (it was -- ie when KDE started up it didn't automount it). I then typed the exact same thing as root (using su) in a terminal and it worked perfectly.
So either you're doing something incorrectly or your system's toast.
I should also note that my CD drive is still commented out in /etc/fstab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.