You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "TheThirdBardo" started this thread

Posts: 2

Location: Gothenburg, Sweden

  • Send private message

1

Saturday, November 25th 2006, 8:05pm

Disabling automatic mount of removable disks

Hello.

My computer is used by two people, both are usually logged in at the same time. Now I have gotten a SanDisk MP3-player which acts as a regular USB-disk. The problem is that the disk is automatically mounted by KDE when inserted, which means that if both users are logged in at the same time, the disk is "owned" by one of the users, which user seems undefined. This prevents the mp3-player to be used by the other user.

I tried to turn off "kded media manager" in "Service manager" in the Control center, and log out an in again, but to no avail. When I insert the mp3-player, the media manager seems to start again.

Is there a way to prevent the automatic mounting?

I use Kubuntu Edgy as operating system.

tayral

Beginner

Posts: 12

Location: France

Occupation: Technician

  • Send private message

2

Thursday, November 30th 2006, 11:35am

Hi,

To do that go to Control Center -> Peripherals -> Storage Media.
Select "Unmounted Removable Medium", and chose the action "Do nothing" as default action.
Do the same manipulation for the "Mounted Removable Media"

This works fine on my computer.

Regards
French newbie in testing debian

  • "TheThirdBardo" started this thread

Posts: 2

Location: Gothenburg, Sweden

  • Send private message

3

Thursday, November 30th 2006, 4:03pm

Sorry tayral, but I forgot to tell that I have already done that. It seems that your suggestion only prevents a program to start automatically after the disk has been mounted, but it won't prevent the actual mounting of the disk.

I solved it partially by giving all desktop users access to the disk by adding this line to the /etc/fstab file (the relevant options are bold):

/dev/sda1 /media/usb vfat rw,nosuid,nodev,quiet,shortname=mixed,user,gid=mygroup,users,umask=007,iocharset=utf8 0 0

umask makes the device and all files on it group writable. gid specifies a group I created which contains both my desktop users. users is needed so both users can unmount the device.

Now the only annoyance is that one of the users get an error message when the disk is inserted, but that I think I can live with.

This post has been edited 1 times, last edit by "TheThirdBardo" (Nov 30th 2006, 4:04pm)


tayral

Beginner

Posts: 12

Location: France

Occupation: Technician

  • Send private message

4

Thursday, November 30th 2006, 5:51pm

Sorry, I didn't well understand your question.

Bye
French newbie in testing debian