how to automatically mount a usb drive / cd when inserted and place icon on desktop?
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.
how to automatically mount a usb drive / cd when inserted and place icon on desktop?
I haven't found a good howto on this. I've been using slackware exclusively but then I played around with other distributions lately after an old hard-drive fell in my lap. Anyway, I was using Ubuntu both 6.06 and 6.10 and they have the coolest feature.
When you plug in a USB drive or a CD, it detects that something's been inserted and it automatically mounts it in /media as well as places an icon on the desktop.
Is it possible to get this working in Slackware 11?
Here's what I know:
1) the /etc/fstab does NOT have to have the drive information present. I've used that in the past to manually mount drives, but ubuntu can do it automatically.
Somehow GNOME receives an event from the USB controller or CD drive that a change has occurred and will automatically create a directory for the device in /media, mount it at that point, and place an icon on the desktop. Does KDE have a similar feature? How does one configure it?
This functionality is added by hal & dbus, which are not yet available in official Slackware package format.
That said, you can take the advice of erklaerbaer and get the packages needed from Linuxpackages.net. It is an extremely handy feature to have, because it recognises all forms of removable media, including CDs & DVDs, cameras, USB sticks, portable hard drives, etc.
Slackware 11 was released as a Linux-2.4 centric distro. As such, it does support Linux-2.6 and works with it, but doesn't make full use of all of the features offered by Linux-2.6, such as hal & dbus support.
At a guess, the next Slackware release will have to offer dbus support as a minimum, because KDE 4 uses it in place of dcop. This could mean the end for Linux-2.4 support in Slackware (if you want to use the GUI, that is).
Thanks for the replies! I'll get right on it. I do have a few questions. I generally compile my own kernels, and was wondering what kind of support I need to include to get HAL, dbus, and udev working? I've got USB HID, USB mass storage, SCSI emulation, SCSI support, and SCSI disk support enabled, but I didn't include any of the numerous USB device options.
Does the HAL provide device drivers? or are those still provided by the kernel but the HAL auto loads appropriate kernel modules?
Thanks for the replies! I'll get right on it. I do have a few questions. I generally compile my own kernels, and was wondering what kind of support I need to include to get HAL, dbus, and udev working? I've got USB HID, USB mass storage, SCSI emulation, SCSI support, and SCSI disk support enabled, but I didn't include any of the numerous USB device options.
Sounds like you have pretty much everything covered.
As for the USB device drivers, it depends upon what you want to to. If you're not 100% sure of what devices you may be connecting to the machine in the short-term future, then you probably should set all of the USB device drivers to compile as modules.
Quote:
Originally Posted by mr.v.
Does the HAL provide device drivers? or are those still provided by the kernel but the HAL auto loads appropriate kernel modules?
HAL doesn't provide any drivers. Drivers are usually provided by the kernel. Kernel modules are still auto-loaded by 'kmod'.
HAL is an acronym for 'Hardware Abstraction Layer'. And that is exactly what it is. It provides the means for software to communicate directly with the hardware. Nothing more.
As with many things Unix, each component of Project Utopia does a specific job which is fairly narrow in scope.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.