HAL and the console
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)? Thanks |
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.
|
Quote:
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)? |
mount -t ?
|
Quote:
|
Quote:
I don't think that the udev rules will allow that! Edit: I was joking about the last sentence that robby posted. I forgot to snip the other. Sorry for mistake. |
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! :-)
|
Quote:
Quote:
Quote:
Quote:
So I guess there is no other way to achieve what I want, without ivman/uncomment the line in fstab? |
Quote:
|
Quote:
Sorry if you mistook my post. I was joking with robby about his cleaver statement. The udev rules are very important. I put a reference to link#2 of this thread in the HAL section a 'HAL definition' by MS3FGX within the 'Slackware-Links' which was compiled from 'Slackware LQ Suggestions Links!'. |
Quote:
Brian |
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 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. |
All times are GMT -5. The time now is 09:36 PM. |