[SOLVED] Automounting partitions help

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Automounting partitions help

Postby palo » Oct 19th, '11, 22:18

Hello Mageians! I installed KDE a few days ago and find it hard to put down - nice! I have been stuck with the automount which doesn't seem to work for me - a couple partitions that I always have access to on installs. With Mageia I have to go to Dolphin and click on the partition to mount. To add insult to injury - it wants root password to mount. I do not want to give everyone root password to mount these files after a boot. I am dual-booting another OS with similar Drakstuff and going to System Settings>Removable Devices and checking the things to automount works. Right now my head is swimming with terms like udev, HAL, PolicyKit, fstab and such. I really didn't want to have to put on a tin-foil hat to do this thing that is pretty normal.

Can anyone please tell me how this is done.

Thanks for your time,

Pat
palo
 
Posts: 6
Joined: Oct 19th, '11, 21:48

Re: Automounting partitions help

Postby pivotraze » Oct 19th, '11, 22:24

Try this:
http://www.howtogeek.com/60817/how-to-a ... -easy-way/

But where it asks you to install, you have to compile from source because Mageia doesn't use apt-get or yum. I don't know if pysdm is in the repos (can't check right now :\).
http://pysdm.sourceforge.net/#downloads

Download source. It should have how to build a package from source in there, if not it should be something similar to:
Extract source to a folder, open a terminal, cd to where you extracted the folder to
./configure
make
make install

if you see a setup.py, it'll be easier. Just type: python setup.py install
pivotraze
 
Posts: 5
Joined: Oct 19th, '11, 21:14

Re: Automounting partitions help

Postby djennings » Oct 19th, '11, 23:00

No need to compile anything Mageia Control Centre does everything you need.

In MageiaControlCentre>LocalDiscs>ManageDiscPartitions
Select Advanced, click on the partition you want to mount at boot.

If these are Windows partitions (vfat or ntfs) select 'options' and tick the box 'umask=0' this will allow any Linux user to read and write to the partitions.
Click on 'mount point' to choose a folder to mount the partition on. It is traditional to mount 3rd party partitions on a folder under /mnt such as for example /mnt/windows.

Now click on 'Mount' and the partition will be mounted.
Finally click on 'Done' and the when it asks if you want to modify fstab answer 'Yes'

Thats it done. The partition will mount at boot and will be accessible to all users.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Automounting partitions help

Postby pivotraze » Oct 19th, '11, 23:03

@djennings

That's the magic of having the os installed :) I don't have mageia so I'm going off of other oses. I can't get mageia, so Imma just use Arch :p
pivotraze
 
Posts: 5
Joined: Oct 19th, '11, 21:14

Re: Automounting partitions help

Postby palo » Oct 20th, '11, 21:15

djennings> Thanks for the tip. I saw that posted somewhere and thought it was a work-around for the automount in Removable Devices not working properly. Not sure if I wanted to follow that route simply because I didn't know if it would have any effect on mounting in other environments and how to remove the mount point if I wanted to. Usually those partitions show up in /Media but that was not an option. I selected a partition (ext4) and under Options ticked User to allow any user to mount without changing the mount point but that doesn't stick. I see in my other system that the automounted partitions are listed in mtab and not fstab. I will make a small partition and try your suggestion and see what happens or maybe a little more digging to find out more about automount in Removable Devices.

Regards,
Pat
palo
 
Posts: 6
Joined: Oct 19th, '11, 21:48

Re: Automounting partitions help

Postby doktor5000 » Oct 20th, '11, 21:53

You can also see that thead for automounting of partitions: viewtopic.php?f=8&t=710
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Automounting partitions help

Postby palo » Oct 21st, '11, 00:47

doktor > It was actually your last post in that thread that made me think something was missing -
Well, my logic tells me if there is a flag called "volume_should_automount" then there SHOULD
be a way for the user to specify this for some of his volumes. For example in KDE you can switch
automounting on for all removable media. or only for media that were already connected to your box
or only for specific ones.


I installed PCManFM because it has the automount feature in Volume Management - yet still there is something in the system that requires root permission to mount and will not allow automount. I can understand the security conscious see that as an advantage but for others it requires extra unwanted steps. Just sayin'.
palo
 
Posts: 6
Joined: Oct 19th, '11, 21:48

Re: Automounting partitions help

Postby Ken-Bergen » Oct 21st, '11, 02:29

palo wrote:doktor > It was actually your last post in that thread that made me think something was missing -
Well, my logic tells me if there is a flag called "volume_should_automount" then there SHOULD
be a way for the user to specify this for some of his volumes. For example in KDE you can switch
automounting on for all removable media. or only for media that were already connected to your box
or only for specific ones.


I installed PCManFM because it has the automount feature in Volume Management - yet still there is something in the system that requires root permission to mount and will not allow automount. I can understand the security conscious see that as an advantage but for others it requires extra unwanted steps. Just sayin'.
What's your security level?
Anything above Standard will cause what you're seeing.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: Automounting partitions help

Postby palo » Oct 21st, '11, 10:59

Ken-Bergen wrote:
palo wrote:doktor > It was actually your last post in that thread that made me think something was missing -
Well, my logic tells me if there is a flag called "volume_should_automount" then there SHOULD
be a way for the user to specify this for some of his volumes. For example in KDE you can switch
automounting on for all removable media. or only for media that were already connected to your box
or only for specific ones.


I installed PCManFM because it has the automount feature in Volume Management - yet still there is something in the system that requires root permission to mount and will not allow automount. I can understand the security conscious see that as an advantage but for others it requires extra unwanted steps. Just sayin'.


What's your security level?
Anything above Standard will cause what you're seeing.


If you are referring to MSEC, I have it turned off, disabled, and unticked start at boot.

Regards,
Pat

Edit: Looking at packages installed, I see that libmount1 has a faint checkbox and under status there is a red circle with a line. Does this have any significance?
palo
 
Posts: 6
Joined: Oct 19th, '11, 21:48

Re: Automounting partitions help

Postby doktor5000 » Oct 21st, '11, 17:16

You're mixing things up here a bit. This whole automounting stuff when done via your desktop environment and not via
plain old /etc/fstab mounts is complicated like hell if you ask me. Supporting automount or offering this as a feature
(like all modern desktop environments do, some, like GNOME even default to this) does not mean you magically
get also the needed permissions to do this without root password.

Normally partitions on removable media like NTFS or FAT don't require a password or permissions,
but internal partitions and IIRC all linux partitions do require the root password. Please read up on
the posted link to get a grip of the whole situation.

If you only want to get it working with the smallest efforts, use auto mounts from /etc/fstab.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Automounting partitions help

Postby palo » Oct 21st, '11, 22:17

doktor> I have to agree with you. I got to the point of finding in an environment where it works there is pmount installed with a pmount.allow file in etc. There is no pmount listed in Software Management so that is my brick wall and I have a headache. Thanks to you and all who responded. Hopefully the wizards and magicians will get this set up the real easy way in the future (or at the very least conjure up pmount in the repo).

Regards,
Pat
palo
 
Posts: 6
Joined: Oct 19th, '11, 21:48

Re: Automounting partitions help

Postby doktor5000 » Oct 21st, '11, 22:33

pmouth is used mainly in Debian and for Mandriva/Mageia it's long deprecated AFAIK.

Why don't you just set up fstab entries for the internal partitions which you want to automount,
and be done with it than to always use pmount when you want to mount some of the internal partitions?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Automounting partitions help

Postby palo » Nov 2nd, '11, 01:12

Found a solution that works with help from this tutorial:
http://ubuntu.paslah.com/policykit/

Replacing the auth_admin_keep with yes in the file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy for org.feedesktop.udisks.filesystem-mount-system-internal. The internal partitions can mount with a click or automount as checked in Removable Devices.

This is with KDE: to get the same results in my GNOME install it was necessary to make that change in usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy under <action id="org.freedesktop.hal.storage.mount-fixed">
palo
 
Posts: 6
Joined: Oct 19th, '11, 21:48


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron