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.
After making the changes suggested in the sticky about HAL, I could plug in my usb stick and a desktop icon would appear, which could be mounted etc... So far so good. Checking the media directory it turned out to be called /media/disk.
Now I disabled the desktop icons ('Desktop Icons none' in Desktop preferences of XFCE). This seems to disable the whole thing:
Code:
bash-3.1$ mount /media/disk
mount: can't find /media/disk in /etc/fstab or /etc/mtab
bash-3.1$ mount /dev/sda1 /media/disk
mount: only root can do that
The problem is not the mounting of the usb stick. I just want to understand why this happens. Could anyone explain?
I like the idea of having a mount point created automagically for whatever I plug in and being able to mount it as user instead of root; I just don't want to click on some desktop icon...
As I understand it, you need to have Thunar running for automounting to work under XFCE. Since Thunar handles the desktop, if the desktop is disabled, Thunar is not running. You can test this by starting Thunar and then plugging in a USB device, you should see it get mounted in Thunar's left panel.
To get Thunar starting without the desktop icons, run the program "xfce4-autostart-editor", and then click "Add". Here you will see fields for the name, description, and command. Put whatever you want for the first two, and for the command put "thunar --daemon".
When you restart XFCE (no need to restart the machine) Thunar will now be running in the background, but not displaying any desktop icons. Automounting should then work. At the very least, this is what I have been doing since -current to get automouting working without the desktop icons.
But it's still a bit unsatisfactory. Now we've got to click on a thunar icon for /media/disk to show up; instead of a desktop icon. Same difference :-( I like to do my file management on the CLI. Any suggestion for bypassing thunar? Let's suppose we're not running X at all.
In that case you would need to use something like ivman, which is a HAL event handler that operates outside of X or any window manager or desktop environment.
There is no Slackware package for it that I can find, but there is a SlackBuild for it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.