[solved] automatically mount crypted partitions

Hey!
I have an encrypted partition on my extern esata drive. I'd like it is automatically mount it on plugging in the drive.
For that I have found an tutorial (unfortunately in German) about how to do it with udev:
http://michael.stapelberg.de/Artikel/au … setup_udev
But I'm using systemd, so this do not work this way.
Can anybody explain me, how it will be done with systemd? I have to write a systemd unit file, haven't I?
Thank you very much for some advices?
Last edited by smohr (2012-07-27 12:44:23)

I have solved it. Thank you Mr.Elendig!
For running more than one command in your udev rules, it is necessary to execute them in a bash script and connect them with &&.

Similar Messages

  • Automatically mount a partition on Gnome login?

    Is that possible?  I know about sessions, but you need to be root to mount a drive and I don't think you can run a command as root via sessions. 
    Thanks.

    Thanks, but it doesn't compile.  It says it's missing libHX, even though libHX compiled and installed fine.
    On an unrelated note, I installed Xgl with pacman -S xgl, but then when I run startxgl, bash complains that it can't find that command.  Xorg is configured fine as far as I can tell and I'm using the proprietary nVidia driver.
    e:  How might I configure sudo so that I could mount partitions without a password?
    Last edited by Yes (2008-04-01 00:08:43)

  • Can't mount internal partitions whithout root password

    I've been making the transition to systemd as the required updates. After last pacman -Syu, when polkit was updated, I could no longer access the CD/DVD, USB devices and the not listed in /etc/fstab internal partitions, due to permissions errors.
    I have tried searching the forums and found this topic: https://bbs.archlinux.org/viewtopic.php?pid=1185531.
    As suggested there I've added init=/usr/lib/systemd/systemd to the kernel parameters in grub2 and then I can access the CD/DVD and USB devices but to access the internal partitions root password is required.
    Searching the forums again I found this https://bbs.archlinux.org/viewtopic.php?id=152057 and follow the sugestion by creating the file /etc/polkit-1/rules.d/10-mount-system.rules. This doesn't work for me. So I created rc-local.service, as recommended in the same topic. Still doesn't work.
    Came back to search foruns and found this: https://bbs.archlinux.org/viewtopic.php?pid=1189842. I've replaced the old /etc/polkit-1/rules.d/10-mount-system.rules by 10-udisks2.rules with the follow content:
    // See the polkit(8) man page for more information
    // about configuring polkit.
    // Allow udisks2 to mount devices without authentication
    // for users in the "storage" group.
    polkit.addRule(function(action, subject) {
        if ((action.id == "org.freedesktop.udisks.filesystem-mount-system" ||
             action.id == "org.freedesktop.udisks.filesystem-mount") &&
        subject.isInGroup("storage")) {
            return polkit.Result.YES;
    Still doesn't work
    And replace by:
    polkit.addRule(function(action, subject) {
        if ((action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") && subject.isInGroup("storage")) {
            return polkit.Result.YES;
    This is the output of loginctl session-status $XDG_SESSION_ID
    1 - vovo (1000)
               Since: Mon, 2012-11-12 10:05:03 BRST; 7min ago
              Leader: 319 (kdm)
                Seat: seat0; vc7
             Display: :0
             Service: kde-np; type x11; class user
               State: active
              CGroup: name=systemd:/user/vovo/1
                      ├  319 -:0
                      ├  321 /bin/sh /usr/bin/startkde
                      ├  332 /usr/bin/dbus-launch --sh-syntax --exit-with-session
                      ├  333 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --se...
                      ├  356 /usr/bin/gpg-agent -s --daemon --pinentry-program /usr/bin/pinen...
                      ├  359 /usr/bin/ssh-agent -s
                      ├  373 /usr/lib/kde4/libexec/start_kdeinit +kcminit_startup
                      ├  374 kdeinit4: kdeinit4 Running...
                      ├  379 kdeinit4: klauncher [kdeinit] --fd=9
                      ├  383 kdeinit4: kded4 [kdeinit]
                      ├  397 kdeinit4: kglobalaccel [kdeinit]
                      ├  399 /usr/bin/kactivitymanagerd
                      ├  425 kwrapper4 ksmserver
                      ├  426 kdeinit4: ksmserver [kdeinit]
                      ├  465 kwin -session 108d976f6e000134271139000000007290000_1352721857_3...
                      ├  492 /usr/bin/knotify4
                      ├  507 kdeinit4: plasma-desktop [kdeinit]
                      ├  525 ksysguardd
                      ├  530 /usr/bin/kuiserver
                      ├  549 /usr/bin/akonadi_control
                      ├  551 akonadiserver
                      ├  554 /usr/bin/mysqld --defaults-file=/home/vovo/.local/share/akonadi/...
                      ├  585 /usr/bin/kwrited
                      ├  586 kdeinit4: nepomukserver [kdeinit]
                      ├  590 /usr/bin/nepomukservicestub nepomukstorage
                      ├  594 kdeinit4: krunner [kdeinit]
                      ├  607 /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource akonad...
                      ├  608 /usr/bin/akonadi_archivemail_agent --identifier akonadi_archivem...
                      ├  609 /usr/bin/akonadi_agent_launcher akonadi_contacts_resource akonad...
                      ├  610 /usr/bin/akonadi_agent_launcher akonadi_ical_resource akonadi_ic...
                      ├  611 /usr/bin/akonadi_agent_launcher akonadi_maildir_resource akonadi...
                      ├  612 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maild...
                      ├  613 /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mailfilte...
                      ├  614 /usr/bin/akonadi_nepomuk_feeder --identifier akonadi_nepomuk_fee...
                      ├  650 /usr/bin/nepomukcontroller -session 108d976f6e000134271139900000...
                      ├  653 kdeinit4: kmix [kdeinit] -session 108d976f6e000134271140000000
                      ├  674 /usr/bin/virtuoso-t +foreground +configfile /tmp/virtuoso_LhX590...
                      ├  685 /opt/dropbox/dropbox
                      ├  691 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1
                      ├  692 /usr/bin/korgac --icon korgac
                      ├  693 python2 /usr/bin/printer-applet
                      ├  700 kdeinit4: klipper [kdeinit]
                      ├  747 /usr/lib/GConf/gconfd-2
                      ├  775 /usr/bin/nepomukservicestub nepomukqueryservice
                      ├  776 /usr/bin/nepomukservicestub nepomukfileindexer
                      ├  777 /usr/bin/nepomukservicestub nepomukbackupsync
                      ├  778 /usr/bin/nepomukservicestub nepomukfilewatch
                      ├  867 /opt/google/chrome/chrome
                      ├  872 /opt/google/chrome/chrome
                      ├  876 /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --ty...
                      ├  877 /opt/google/chrome/chrome --type=zygote
                      ├  880 /opt/google/chrome/nacl_helper_bootstrap /opt/google/chrome/nacl...
                      ├  911 /opt/google/chrome/chrome --type=renderer --lang=pt-BR --force-f...
                      ├  917 /opt/google/chrome/chrome --type=renderer --lang=pt-BR --force-f...
                      ├  993 /opt/google/chrome/chrome --type=gpu-process --channel=867.5.144...
                      ├ 1008 /opt/google/chrome/chrome --type=renderer --lang=pt-BR --force-f...
                      ├ 1034 kdeinit4: kwrite [kdeinit] /home/vovo/temp/Forum erros.txt
                      ├ 1100 /opt/google/chrome/chrome --type=renderer --lang=pt-BR --force-f...
                      ├ 1180 /opt/google/chrome/chrome --type=renderer --lang=pt-BR --force-f...
                      ├ 1298 /opt/google/chrome/chrome --type=renderer --lang=pt-BR --force-f...
                      ├ 1321 kdeinit4: konsole [kdeinit]
                      ├ 1323 /bin/bash
                      ├ 1328 loginctl session-status 1
                      └ 1329 [less]
    I'm tired and discouraged. Can anyone, please, to point a solution?
    Last edited by vovotux (2012-11-12 13:31:31)

    Hi everybody,
    I had tried:
    loginctl show-session $XDG_SESSION_ID
    Active=yes
    State=active
    To mount crypted partition, other authorizations are needed. But actualy, I only just try to mount decrypted partiton (root has "luksopen" the crypted partition to /dev/mapper, and I try to mount /dev/mapper/DECRYPTED partition). The "mount" command tell me only root can do that.
    May be I have to add other autorizations anyway?
    I had change my rule file:
    polkit.addRule(function(action, subject) {
            if (action.id="org.freedesktop.udisks2.filesystem-mount-system" && subject.isInGroup("storage")) {
                    return polkit.Result.YES;
    and check by
    journalctl -b -u polkit
    Nov 17 09:21:53 PCFixe polkitd[387]: Reloading rules
    Nov 17 09:21:53 PCFixe polkitd[387]: Collecting garbage unconditionally...
    Nov 17 09:21:53 PCFixe polkitd[387]: Loading rules from directory /etc/polkit-1/rules.d
    Nov 17 09:21:53 PCFixe polkitd[387]: Loading rules from directory /usr/share/polkit-1/rules.d
    Nov 17 09:21:53 PCFixe polkitd[387]: Finished loading, compiling and executing 2 rules
    So all seems ok.
    But:
    $ mount /dev/sda3 ./test/
    mount: seul le superutilisateur peut exécuter cette commande (--> only root can execute this command)
    /dev/sda3 is crypted, so with root I "luksOpen" it on /dev/mapper/DECRYPTED
    cryptsetup luksOpen --allow-discards /dev/sda3 DECRYPTED
    Saisissez la phrase secrète pour /dev/sda3 :
    I try to mount it with my user
    $ mount /dev/mapper/DECRYPTED ./test/
    mount: seul le superutilisateur peut exécuter cette commande (--> only root can execute this command)
    An idea: may be /dev/mapper devices are not considered as "filesystem-mount-system" ??
    Thanks for your help, I appreciate it.
    Best regards.
    Alain

  • [~SOLVED] 1 min hang during boot while mounting xfs partitions (LVM)

    Hi all,
    After the upgrade I did yesterday (which included linux-3.12.8-1 and lvm2), the boot time has increased by 1 minute as the system hangs while mounting two partitions formatted as xfs and residing on logical volumes.
    $ systemd-analyze blame
    1min 13.676s home-VDP76-videos.mount
    1min 13.111s home-VDP76-VBox_VMs.mount
    2.980s [email protected]
    I have the fsck hook as second-to-last entry in my mkinitcpio.conf, but the fstab entries for these partitions include
    ... xfs defaults 0 0
    so, as far as I undertstand, the partitions should not be checked, am I missing something!?
    I have googled for similar issues but I did not find anything useful, any suggestion would be greatly appreciated.
    Thanks
    edit: I blame the check disk because of what reported on the system journal (note the time stamps):
    Jan 23 00:10:37 ArchTP kernel: psmouse serio5: alps: Unknown ALPS touchpad: E7=10 00 64, EC=10 00 64
    Jan 23 00:10:39 ArchTP kernel: psmouse serio5: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
    Jan 23 00:10:40 ArchTP kernel: input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio4/serio5/input/input25
    Jan 23 00:11:47 ArchTP systemd[1]: Mounted /home/VDP76/VBox_VMs.
    Jan 23 00:11:47 ArchTP kernel: XFS (dm-4): Ending clean mount
    Jan 23 00:11:47 ArchTP kernel: XFS (dm-3): Ending clean mount
    Jan 23 00:11:47 ArchTP systemd[1]: Mounted /home/VDP76/videos.
    Jan 23 00:11:47 ArchTP systemd[1]: Starting Local File Systems.
    Jan 23 00:11:47 ArchTP systemd[1]: Reached target Local File Systems.
    I should also add that the involved partitions are ~20 Gb each and quite full...
    edit2: I have freed up almost all space on the video partition and the time for mounting those partitions has now decreased to 8 sec...I will mark the thread as solved, but I still would appreciate an input on the reasons why the partitions are checked regardless of the fstab setting, for example, is this pertinent!?
    dumpe2fs -h /dev/mapper/waldorf-video | grep -i 'mount count'
    dumpe2fs 1.42.8 (20-Jun-2013)
    dumpe2fs: Bad magic number in super-block while trying to open /dev/mapper/waldorf-video
    Last edited by VDP76 (2014-01-22 23:38:25)

    WonderWoofy wrote:I don't think that the fsck.xfs is really a fsck at all.  It is there for compatibility purposes, and a real check can be done with xfs_check and xfs_repair.  So the fsck.xfs will just always give an exit status of zero.
    exactly..in fact the man page says
    fsck.xfs(8) wrote:fsck.xfs - do nothing, successfully
    so fsck.xfs simply exits with a zero exit status.
    running xfs_check gives
    xfs_check is deprecated and scheduled for removal in June 2014.
    Please use xfs_repair -n <dev> instead.
    and xfs_repair does not find errors on both partitions.
    Still, I do not understand how nothing being done can take up so much time.
    By the way, a short S.M.A.R.T. self-test did not report errors...
    In the meanwhile, there has been another kernel upgrade and the timing issue persists, so I am assuming it has something to do with the last lvm2 upgrade.

  • [SOLVED] Error mounting a Fat32 partition

    Hi, I'm new to this distro, but it looks quite neat. Unfortunately, I have an issue that I haven't been able to solve through the wiki or the man pages.
    I have my main hard drive partitioned in three:
    - Windows (ntfs)
    - Linux (ext3)
    - Data (all my files, docs, images...) (fat32)
    I have problems mounting the Data partition into Archlinux.
    A) Trying manually
    First I tried mounting it manually to make sure I had done it right. The command
    sudo mount -t vfat /dev/sda5 /media/docs
    allowed me to see and read the files and write them. When I switched back to Windows, however, the OS told me there was an error in the Data partition, specifically with all the files I have changed or created using Archlinux. I ran Chkdsk and it fixed the files by deleting changes. Now, whenever I try to mount manually the partition, it mount it as a read-only file system, even when the -w or the -rw option is added.
    B) Writting in /etc/fstab
    Meanwhile, I tried several options in fstab to see if I could write on the disk. The lines I tried are:
    /dev/sda5 /media/docs vfat defaults 0 0
    /dev/sda5 /media/docs vfat defaults,iocharset=utf8,umask=000 0 0
    /dev/sda5 /media/docs vfat defaults,user,dmask=000,fmask=111 0 0
    /dev/sda5 /media/docs vfat defaults,user,rw,umask=000, 0 0
    /dev/sda5 /media/docs vfat user,rw,umask=000, 0 0
    /dev/sda5 /media/docs vfat defaults,iocharset=utf8,user,rw,umask=000, 0 0
    All these options (I obviously didn't use them at the same time) mounted the partition and I could read the files, but I was never able to write to it, either as a normal user or root. I read the wiki, the man page of fstab and mount and there isn't anything much of help there.
    Hope someone can help me. Thanks a lot.
    R
    P.D. I've been doing all these switching back and forwrad between windows and linux. I have always hibernated windows. I don't think this is the problem, but I will shut Windows down completely to see if it was the Chkdsk utility.
    Last edited by robertoprs (2009-02-09 07:07:34)

    Sorry, I forgot to post the answer...
    So I just needed to restart Windows after using Chkdsk. Now I can read and write even when Windows is only hibernated. I'm just curious. I understand that this problem was a very stupid question, but it wasn't obvious to me that Chkdsk needed a reboot to "let go" the partition. Why is that?
    Thanks for your help.
    By the way, I've learned a lot with the wiki guides. This distro is getting better and better!

  • [SOLVED]Cannot mount partitions with PCMANFM --no longer an issue

    Hi,
    I have searched and searched and pulling my hair out on this issue. I am using PCMANFM .9.10 on an LXDE install using the Arch x86 iso.  My HD contains several linux partitions and a FAT32 partition.
    I am not able to mount these partitions in PCMANFM.  I am able to mount my usb flash drive
    When trying to mount a partition in PCMANFM I get a "not authorized to perform operation" error message.
    Today, June 11 I partially rewrote this due to the lack of response I am getting on this problem.
    1. did a reinstall of Arch & LXDE today.  I've done two or three installs. dbus is in daemons in /etc/rc.conf
    2. initially the partition icons did not show up
    3. then, I installed gvfs and added 55-my-conf.pkla in /etc/polkit-1/localauthority/50-local.d/
    4. With that the partition icons show up in PCMANFM
    5. But I still get the "not authorized to perform operation" message
    The 55-my-conf.pkla has this content:
    [Storage Permissions]
    Identity=unix-group:storage
    Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown;org.freedesktop.udisks.filesystem-mount-system-internal
    ResultAny=yes
    ResultActive=yes
    ResultInactive=no
    contents of .xinitrc
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    #exec startxfce4
    exec startlxde
    # ...or the Window Manager of your choice
    At /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
    I changed <action id="org.freedesktop.udisks.filesystem-mount-system-internal">
    mount a system-internal disk at <allow_active> from "auth_admin_keep" to "yes".
    Still didn't work!
    Either this is a bug or I have a permission problem somewhere.
    Can you please advise how to do this or point me to a recent tutorial to be able to  auto mount other partitions not using /etc/fstab?  Some of the older posts refer to hal or other package that have been deprecated. 
    Thanks
    Edit: latest. It seems that I must mount the desired partition from the terminal. example: $sudo mount /dev/sda5 /mnt
    then can edit it from PCMANFM by going to / and then /mnt. Apparently I do not have to manually unmount.
    Last edited by linuxloverjerry1 (2012-06-13 04:25:37)

    Hi,
    I have searched and searched and pulling my hair out on this issue. I am using PCMANFM .9.10 on an LXDE install using the Arch x86 iso.  My HD contains several linux partitions and a FAT32 partition.
    I am not able to mount these partitions in PCMANFM.  I am able to mount my usb flash drive
    When trying to mount a partition in PCMANFM I get a "not authorized to perform operation" error message.
    Today, June 11 I partially rewrote this due to the lack of response I am getting on this problem.
    1. did a reinstall of Arch & LXDE today.  I've done two or three installs. dbus is in daemons in /etc/rc.conf
    2. initially the partition icons did not show up
    3. then, I installed gvfs and added 55-my-conf.pkla in /etc/polkit-1/localauthority/50-local.d/
    4. With that the partition icons show up in PCMANFM
    5. But I still get the "not authorized to perform operation" message
    The 55-my-conf.pkla has this content:
    [Storage Permissions]
    Identity=unix-group:storage
    Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown;org.freedesktop.udisks.filesystem-mount-system-internal
    ResultAny=yes
    ResultActive=yes
    ResultInactive=no
    contents of .xinitrc
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    # exec gnome-session
    # exec startkde
    #exec startxfce4
    exec startlxde
    # ...or the Window Manager of your choice
    At /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
    I changed <action id="org.freedesktop.udisks.filesystem-mount-system-internal">
    mount a system-internal disk at <allow_active> from "auth_admin_keep" to "yes".
    Still didn't work!
    Either this is a bug or I have a permission problem somewhere.
    Can you please advise how to do this or point me to a recent tutorial to be able to  auto mount other partitions not using /etc/fstab?  Some of the older posts refer to hal or other package that have been deprecated. 
    Thanks
    Edit: latest. It seems that I must mount the desired partition from the terminal. example: $sudo mount /dev/sda5 /mnt
    then can edit it from PCMANFM by going to / and then /mnt. Apparently I do not have to manually unmount.
    Last edited by linuxloverjerry1 (2012-06-13 04:25:37)

  • [Solved] unable to mount harddisk partition or flash drive

    After recent updates to gnome 3.4.2,i am unable to mount  harddisk partition or flash drive .I have 2 year old arch installation with gnome.
    When i click on partitions in nautilus,it says "Unable to mount program files \n Not authorized to perform operation"
    Problem is not only while mounting partitions.
    Wherever we need authorization .Like changing date and time ,changing user accounts using gnome UI etc.The unlock button is greyed out permanently.
    even i am not able to shutdown using gnome menus. it just log me out only ,do not restart or shutdown.Though i can shutdown using shutdown command on commandline.
    i run gnome using daemon method. not through xinitrc .
    https://bugs.archlinux.org/task/25031?p … ekit#close
    I found a similar discussion in this bug. But since, i do not use xinitrc, it is unlikely they will help me.
    Can someone be kind enough to help me on this?
    Thanks in advance.
    Last edited by piyushbhatt (2012-09-11 05:48:57)

    maybe changes in udev or any other package
    you have polkit polkit-gnome
    and you user is in optical, disks and wheel groups?
    for me those above work in every sitation

  • [Solved] Pacman mounts partition on checking available disc space

    Hi, hope this is the right subforum.
    First, pacman doesn't directly mount any partition. My partition, located at /dev/sdb1, is automounted if somenone request access to /media/datengrab. Fstab-entry looks like this:
    /dev/sdb1 /media/datengrab ext4 noauto,noexec,x-systemd.automount 0 2
    The funny thing is, every time pacman checks the available disc space, this partition is mounted. The question is: why? Software is never installed under /media, so accessing /media is not needed. Maybe this is a bug? (Or, better question: How can pacman avoid to access /media?)
    Hope someone can help or explain why pacman is accessing /media.
    Thanks in advance
    Last edited by D4ve (2012-10-04 15:15:53)

    Because the diskspace checking behavior in 4.0.x is quite naive. I fixed this a while ago so that only the mount points being written to will be actually checked. Stay tuned for pacman 4.1.

  • After update udev mounts all partitions automatically (but shoudn`t)

    Here goes: after updating udev from 167-2 to 168-1, it started mounting all partition at boot. No rules (the list and the rules are the default ones) seem to include this, and google said automounting MUST be set up by user.
    Downgrading fixes the issue, but I try to keep the system up to date, so this is not an option. Also I do not want to disable udisk mounting by polkit, since I want to keep the option of mounting them via KDE.
    Can anyone help please?
    P.S. arch x68_64
    Last edited by levantis (2011-05-17 16:05:35)

    same here...
    i changed the 'pass' value in the /etc/fstab to "0" for the mounted devices - this works temporarily for me so i can boot up the system.
    excuse me for my bad english

  • [solved] External drive automatically mounted as read-only

    Hi folks,
    I have a strange issue with an external drive automatically mounted as read-only whenever I plug it to my laptop :
    [sclarckone@archLaptop ~]$ mount
    /dev/sdb1 on /run/media/sclarckone/dd type ntfs (ro,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1,uhelper=udisks2)
    And I can't remount it as read-write :
    [sclarckone@archLaptop ~]$ sudo mount -o remount,rw /dev/sdb1
    mount: cannot remount /dev/sdb1 read-write, is write-protected
    But of course, I'm able to mount it as read-write on other operating systems.
    I have udisks and udisks2 installed on my system. I also belong to the storage group so I thought I could mount a filesystem as a normal user but I can't :
    [sclarckone@archLaptop ~]$ mount /dev/sdb1 dd/
    mount: only root can do that
    I don't know whether it is relevant to this problem, but I have systemd and polkit installed as well... Does anybody has an idea of where the problem could come from ?
    Thanks for your help !
    Last edited by sclarckone (2012-12-13 21:45:04)

    Check out following file :
    /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
    Look for mount a device and It should have configuration like :
    <action id="org.freedesktop.udisks.filesystem-mount">
    <description>Mount a device</description>
    <description xml:lang="da">Montér en enhed</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
    <defaults>
    <allow_any>no</allow_any>
    <allow_inactive>no</allow_inactive>
    <allow_active>yes</allow_active>
    </defaults>
    </action>

  • Is there a way to prevent a Windows Logical Disk Manager volume from being automatically mounted?

    Lion is automatically mounting two LDM partitions from BootCamp, doesn't find a valid filesystem, and then asks to format or eject them, every time that the system boots.
    How do I go about preventing these disks from being automounted?
    They don't display UDID's, so I'm unsure if I can hide them using fstab, unless fstab supports the old disk-based specification that it used to.

    Although the little camera I was using doesn't capture 16 bit, I did run the jpgs briefly through ACR to try out the shadows/highlight feature since the photos were perfect candidates. My preference there is to convert to 16 bit ProPhoto so maybe--even though the files opened as jpgs. That might be the problem: maybe bit depth is the trigger for psd assignment. Still, I wish there was a way to disable it.

  • Stop automatic mounting of network volume

    I have a MacBook that is on a Windows network and connects to a 2003 server. Any time the MacBook is on it tries to auto mount a network volume on the Windows server about every minute or so using an account of an old user. This results in locking the user out of the network about every 5 minutes. I am looking for a way to shut this off.
    I have looked in the startup items and can’t find anything. I have also checked in the Login items under the user accounts with no success. Any ideas would be very helpful.

    To stop the automatic mounting of a network volume, try looking at Finder, Preferences, Shared, and uncheck the Connected Servers. I don't know if this solves your real problem of (deleted user) drive mapping, but at least it stops trying to mount the volume.

  • Mount (one partition) LDM on Arch

    Hi everybody,
    I'm having a hard time mounting a NTFS drive.
    On Windows i did merge two partition to be one (spanning i think).
    It is recognized as one partition though:
    Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x000acf3f
    Device Boot Start End Blocks Id System
    /dev/sdb1 63 1953523119 976761528+ 42 SFS
    With normal NTFS driver it mounts but is read-only, using NTFS-3G it gives this error (that's with Nemo file manager):
    Error mounting /dev/sdb2 at /run/media/double/DATA: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=100,dmask=0077,fmask=0177" "/dev/sdb2" "/run/media/double/DATA"' exited with non-zero exit status 12: Failed to read last sector (1953517567): Invalid argument
    HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
    or it was not setup correctly (e.g. by not using mdadm --build ...),
    or a wrong device is tried to be mounted,
    or the partition table is corrupt (partition is smaller than NTFS),
    or the NTFS boot sector is corrupt (NTFS size is not valid).
    Failed to mount '/dev/sdb2': Invalid argument
    The device '/dev/sdb2' doesn't seem to have a valid NTFS.
    Maybe the wrong device is used? Or the whole disk instead of a
    partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
    I did run chkdsk on Windows, that's not the problem.
    I tried this without success:
    mdadm --build --verbose /dev/md0 --chunk=64 --level=linear
    mount -t ntfs-3g /dev/md0 /media/data
    How can i mount it?
    Thanks in advance.

    AD28 wrote:
    For seamless integration similar to Ubuntu:
        Follow this wiki for ntfs-3g installation and fstab configuration.
    For basic on-demand support:
    # pacman -Sy ntfs-3g
    and mount with:
    # mount -t ntfs-3g /dev/sdbX /mnt
    Now that did the trick!!!!!
    A happy Arch Linux user here!!!!hehee
    Any idea how to automate this? I want it to be automatically mounted so that it would be easy to transfer files...Pleasssseeeeee.....Thanks

  • Can't Mount Windows Partition in OSX After Upgrading to 10.5 and BC 2.0

    I just installed Leopard today, using the upgrade option (as opposed to a clean install). I was happy to see that I could boot into Windows still, and installed all of the Boot Camp 2.0 drivers while booted into Vista. However, I can no longer mount my Windows partition in OSX. While using Tiger, I did use MacFuse and ntfs-3g to get read-write support, but in Leopard, I can't even read. When I try to mount the Windows volume in Disk Utility, I get an error stating that it cannot be mounted. I also do not have the option to perform "First Aid" or "Repair" on the volume.
    I realize that the latest version of ntfs-3g isn't proven to work with Leopard, but I would at least like read access in OSX. Is it possible that some settings were left over from my Tiger configuration that would not allow Leopard to mount the partition? Any ideas?
    Thank you.

    Ok. I'm in the club with the same problem...
    Strange things:
    * For the first days after Leopard's install, my BootCamp disk0s3 partition (I'll name it "BillGates") was mounted correctly. Then, after a few days (but BEFORE upgrading to 10.5.1), it disappeared.
    * If I launch DiskUtility "BillGates" is shown, but (in the right device navigation bar) it's named "-n BillGates". If I click the Erase menu, it's named "-nBillGates" (without the space between "-n" and "BillGates"). If I launch SystemProfiler it's named "-n BillGates", but the mount point is "/Volumes/billgates". Can't understand where this "-n" thing is coming from!
    * If I try to mount "-n BillGates" from DiskUtility it doesn't work and the log says "Mount of -n BillGates failed".
    * In the FSTAB there were no instructions: it was empty.
    Now, I tried the MacFUSE-solution: no results (meaning BillGates was not mounted on startup).
    I tried the modify-the-FSTAB-solution: no results (with "BillGates", "-n BillGates" nor "-nBillGates".
    I tried the chkdsk-solution: all tests were ok, but nothing happened.
    The only trick that worked was mounting the partition with Terminal's commands (thanks rtracy!!). It made appear "BillGates" on the desktop (without the "-n thing", that is still present in DiskUtility).
    Problem is at the first reboot, the Boot Camp partition disappears again. Any ideas for a permanent fix?!
    Giangiacomo.
    ADDENDUM: I've tried to move a file from desktop to an unlocked folder in BillGates and System did not copy them. "The item could not be moved because "BillGates" cannot be modified" !!!!!!!!
    Message was edited by: Giangiacomo Castelfranchi1

  • How do I get an encrypted dmg on a network share to automatically mount at login?

    I need to mount an encrypted dmg that is stored on an SMB share to automatically mount at login.  I've got the SMB share to mount at login as a "Login Item," but I can't get the encrypted dmg to mount.
    A related question:
    I've got a shell script that mounts my encrypted image, copies data using rsync, and then unmounts the encrypted image.  I tried automating this using a cronjob, but cronjobs are nut run as $USER.  Since the cronjob isn't run as $USER, the cronjob does not have access to the $USER's keychain and cannot authenticate to the encrypted dmg.  Any tips on getting either of these to work?

    I don't use SMB so I'm not sure whether this will work, but try it. Open a TextEdit window and type something like this:
    smb://user:password@server/path-to-file
    Make the obvious substitutions in the text, then select it and drag it to the Desktop. You should get a bookmark file. Double-click it to test. If it works, you can rename the file and put it anywhere you like. Add it to your login items.
    If the above doesn't work, try again with "cifs" in place of "smb".
    The "user:password@" part may not be necessary if the password is in your keychain.

Maybe you are looking for