LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Automount USB sticks? (http://www.linuxquestions.org/questions/linux-desktop-74/automount-usb-sticks-854089/)

JZL240I-U 01-04-2011 04:27 AM

Automount USB sticks?
 
I use OpenSuSE 11.3_64 with KDE 4.4.4 but had the same "problem" on older 32 bit versions too: When I plug in a USB stick a popup will ask what to do (open with K3b, open with dolphin, do nothing). When the stick is already inserted during boot or earlier, nothing happens and I have to start that device monitoring applet or mount "by hand".

I want no questions and no further actions. Upon plugging in a stick, dolphin should include it in its file system tree (if need be I might click there to mount) and possibly produce an icon on the desktop too. How can I achieve that behaviour? Thanks for any hints :).

wildshekhar 01-04-2011 07:45 AM

1 Attachment(s)
Quote:

Originally Posted by JZL240I-U (Post 4212423)
Upon plugging in a stick, dolphin should include it in its file system tree (if need be I might click there to mount) and possibly produce an icon on the desktop too. How can I achieve that behaviour? Thanks for any hints :).

I use opensuse 11.3 32 bit kde 4.5 SC, when i boot with any media plugged in, or if i plug in afterwards, they show up in "places" in dolphin. It used to do so in 4.4.x also. Hope this helps.

markush 01-04-2011 10:12 AM

Hello JZL240I-U,

you can bind specific "Actions" to udevrules, read this: Writing udev rules
It is even possible to configure different actions for different devices.

Markus

TheIndependentAquarius 01-04-2011 10:25 PM

KDE 4.3.5
  • Right click on the Task Manager panel->Panel options->Add Widgets...->Device Notifier
  • Click Add to Panel button.

JZL240I-U 01-05-2011 01:53 AM

@ wildshekhar That works, thanks. I use the "directories" panel not "places", in "directories" the new device is not displayed, though. One can mount it in "places" with one click and then it is known to "directories" as well (under /media) and so one has to switch between the views :(.

"Places" shows me unnamed partitions and is not really helpful. I'd like to combine the functionality of "directories" and "places". If the developers created little preview windows with the "places" information displayed in the "directories" view that would be the best of two worlds but that will stay just wishing on my part I guess...

@ markush Good morning Markus ;). I even knew the link you posted. What I was looking for is the built in functionality of KDE -- they have plenty of that, one just has to find the proverbial pin in the haystack.

@ Anisha Kaul Thanks for the hint but that device notifier thingy is already running (see my first post). In brief one could say I want the functionality of windows in KDE *ducks his head and runs* :D.

TheIndependentAquarius 01-05-2011 02:00 AM

I just inserted a CD in my CD drive and rebooted my system (for you), the CD was automatically detected by "Device Notifier".

Secondly, when the CD menu pops up which asks what to do, see if there is a checkbox at the bottom of that menu saying "do not ask again"!

JZL240I-U 01-05-2011 02:16 AM

Thank you for taking the time to check this out :). Did you boot your SuSE? My box does not behave that way, neither with a CD/DVD nor with an USB-stick. I wonder where one can control that behaviour :scratch:. And no, I don't want to switch off those questions, I want an automatic mount, including an immediate entry in the directorie's tree (which would be in /media in SuSE).

TheIndependentAquarius 01-05-2011 02:18 AM

For me it is OpenSuse 11.2 (64bit) with KDE 4.3.5, and yes I did reboot it AFTER putting in the CD.

Do you have the same versions of SUSE and Kde?

JZL240I-U 01-05-2011 02:20 AM

No, I have openSuSE 11.3_64 with KDE 4.4.4 <edit> installed from a live CD </edit>. But it was the same on 11.2_32 with KDE 4.2(?).

TheIndependentAquarius 01-05-2011 02:27 AM

Check out Google with the following keywords, see if the results help you out:
Quote:

How to auto mount removable devices in Linux

JZL240I-U 01-05-2011 02:34 AM

I'll have to do some reading ;). I'll check as soon as I can, probably tomorrow in the late evening. Thanks for your support, Anisha Kaul.

Moved to Gurgaon lately, I see. I hope you could improve your circumstances with the move :).

TheIndependentAquarius 01-05-2011 02:37 AM

I have been in Gurgaon for past two years now, and do post here the link which gives you the solution.

Quote:

I hope you could improve your circumstances with the move
Any special reasons for posting this?

JZL240I-U 01-05-2011 02:39 AM

Oh? I thought I remembered a different location during that discussion in the "reputation" thread. No matter, I didn't intend to pry.

TheIndependentAquarius 01-05-2011 02:41 AM

Quote:

Originally Posted by JZL240I-U (Post 4213655)
Oh? I thought I remembered a different location during that discussion in the "reputation" thread. No matter, I didn't intend to pry.

:) I didn't take that as prying! Actually I thought you are finding my posts to be weird, thats why you posted a pun :eek:

JZL240I-U 01-05-2011 02:44 AM

Quote:

Originally Posted by Anisha Kaul (Post 4213650)
...Any special reasons for posting this?

No pun intended, just a friendly wish for somebody who had moved to a new position (or so I thought, at that moment).


All times are GMT -5. The time now is 11:28 PM.