[solved] Permissions issue - can't mount usb device as user, just root

In my last post I learned how to mount a secondary HDD from the command line.  Problem is I did it as root. Now I have xfce4 running and I need mount permissions as user.
Here's my fstab:
[dennis@archlinux media]$ cat /etc/fstab
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
/dev/sdb /media/disk0 ext4 rw,user,noauto 0 0
/dev/sdb1 /media/disk1 ext4 rw,user,noauto 0 0
/dev/sdb3 /media/disk3 ext4 rw.user,noauto 0 0
UUID=1f813152-615e-41a1-b3e7-ce2b5b6836a5 / ext4 defaults 0 1
UUID=aba18f0f-5f37-4ab0-8241-5a271dc3dddb swap swap defaults 0 0
UUID=c4332450-df9e-4571-8256-8e1b10b4d162 /home ext4 defaults 0 1
UUID=f0a6eca0-9668-454b-b444-371566663510 /boot ext2 defaults 0 1
[dennis@archlinux media]$
....and these are the system messages I got when I plugged the device:
Unable to mount "74G Volume":
mount: only root can mount /dev/sdb3 on /media/disk3
Unable to mount "4G Volume":
mount: must be superuser to use mount
What do I do here?
Last edited by dennola4 (2010-06-28 00:56:51)

Karol:
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
dennis ALL=(ALL) ALL
%users ALL=(ALL) NOPASSWD: /usr/sbin/pppd
%users ALL=(ALL) NOPASSWD: /usr/sbin/hibernate
%users ALL=(ALL) NOPASSWD: /usr/sbin/standby
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Mr. Elendig:
Why not use automounting instead?
To install Arch packages I needed an Internet connection, which required use of a Sierra Wireless card, which required chatscripts stored on another filesystem.  In my first Arch forum post ever, the one preceding this one, I learned to mount a device by creating a mountpoint in /media then invoking #mount.  After installing all packages and creating a user name, I signed on with xfce4 and plugged in the usb device again.  It didn't mount.  So I did it manually using sudo.  Since that worked I had the idea that adding the mountpoints to /etc/fstab would be useful, so I did.  When that didn't work I decided to just ask for help.
So sure, I'm down for some automounting action.  How do I do it?

Similar Messages

  • Can't mount usb devices as a normal user

    Hi.
    I woud like to ask for help. I've been struggling with some "bug" that i came with Arch and usb devices (disks, pendrives). I can't mount it as a normal user using KDE default mounting software (Dolphin, for an exmample). I can mount it only in therminal by using sudo privileages. Is there a way to fix it? I read it, the same problem:
    https://bbs.archlinux.org/viewtopic.php?id=180025
    I tried to check everything according this topic, also with udisk2 archwiki thread but on my desktop machine i just can't mount usb devices without root password. This is how the error looks like for a Dolphin:
    <Over sized Image removed. URL link preserved>
    This is the error, from picture
    Error when trying to use acces to "removable device 7,5GB". System showed: The requested operation has failed. Error checking authorization:
    GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: action org.freedesktop.udisks2.filesystem-mount is not registered (polkit-error-quark, 0)
    Could somebody help me? I even installed udisk mounting tool to mont without root password, added 50-udisks.policy and it just does not work.
    Help.
    I can mount it wit terminal by typing
    sudo mount /dev/sdXY /mnt/usb
    than i'm asked for password and it is mounted. Don't know why i can't mount it without password when connecting usb devices to usb port.
    moderator edit [ewaller]Removed link to over sized image..  Note, you set up a click through thumbnail correctly, but the "Thumbnail" was the same image and was too large
    Last edited by ewaller (2014-09-28 16:37:41)

    Some refresh. I followed this topic:
    https://bbs.archlinux.org/viewtopic.php?id=180025
    with the same problem. I found errors here:
    firekage@arch_desktop ~]$ journalctl -r -u polkit
    -- Logs begin at pią 2014-06-13 18:04:12 CEST, end at czw 2014-12-25 20:15:01 CET. --
    cze 23 15:59:15 arch_desktop polkitd[306]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.24, object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8) (disconnected from bus)
    cze 23 15:29:59 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:21:05 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:21:03 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:21:01 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:21:00 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:20:59 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:20:58 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:20:06 arch_desktop polkitd[306]: Registered Authentication Agent for unix-session:c1 (system bus name :1.24 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 22:19:49 arch_desktop systemd[1]: Started Authorization Manager.
    cze 20 22:19:49 arch_desktop polkitd[306]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
    cze 20 22:19:49 arch_desktop polkitd[306]: Finished loading, compiling and executing 1 rules
    cze 20 22:19:49 arch_desktop polkitd[306]: Loading rules from directory /usr/share/polkit-1/rules.d
    cze 20 22:19:49 arch_desktop polkitd[306]: Loading rules from directory /etc/polkit-1/rules.d
    cze 20 22:19:49 arch_desktop polkitd[306]: Started polkitd version 0.112
    -- Reboot --
    cze 20 22:15:10 arch_desktop systemd[1]: Stopping Authorization Manager...
    cze 20 22:15:08 arch_desktop polkitd[304]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.23, object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 22:02:59 arch_desktop polkitd[304]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:02:56 arch_desktop polkitd[304]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:02:55 arch_desktop polkitd[304]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:02:54 arch_desktop polkitd[304]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:02:53 arch_desktop polkitd[304]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.11 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 22:00:00 arch_desktop polkitd[304]: Registered Authentication Agent for unix-session:c1 (system bus name :1.23 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 21:59:26 arch_desktop systemd[1]: Started Authorization Manager.
    cze 20 21:59:26 arch_desktop polkitd[304]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
    cze 20 21:59:26 arch_desktop polkitd[304]: Finished loading, compiling and executing 1 rules
    cze 20 21:59:26 arch_desktop polkitd[304]: Loading rules from directory /usr/share/polkit-1/rules.d
    cze 20 21:59:26 arch_desktop polkitd[304]: Loading rules from directory /etc/polkit-1/rules.d
    cze 20 21:59:26 arch_desktop polkitd[304]: Started polkitd version 0.112
    cze 20 21:59:26 arch_desktop systemd[1]: Starting Authorization Manager...
    -- Reboot --
    cze 20 21:58:39 arch_desktop systemd[1]: Stopped Authorization Manager.
    cze 20 21:58:39 arch_desktop systemd[1]: Stopping Authorization Manager...
    cze 20 21:55:01 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 21:54:59 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 21:54:58 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 21:54:56 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 21:54:56 arch_desktop polkitd[306]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 21:47:40 arch_desktop polkitd[306]: Registered Authentication Agent for unix-session:c1 (system bus name :1.21 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 21:47:22 arch_desktop systemd[1]: Started Authorization Manager.
    cze 20 21:47:22 arch_desktop polkitd[306]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
    cze 20 21:47:22 arch_desktop polkitd[306]: Finished loading, compiling and executing 1 rules
    cze 20 21:47:22 arch_desktop polkitd[306]: Loading rules from directory /usr/share/polkit-1/rules.d
    cze 20 21:47:22 arch_desktop polkitd[306]: Loading rules from directory /etc/polkit-1/rules.d
    cze 20 21:47:22 arch_desktop polkitd[306]: Started polkitd version 0.112
    cze 20 21:47:22 arch_desktop systemd[1]: Starting Authorization Manager...
    -- Reboot --
    cze 20 19:56:46 arch_desktop systemd[1]: Stopping Authorization Manager...
    cze 20 19:56:45 arch_desktop polkitd[310]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.21, object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 19:55:51 arch_desktop polkitd[310]: Registered Authentication Agent for unix-session:c1 (system bus name :1.21 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 19:55:16 arch_desktop systemd[1]: Started Authorization Manager.
    cze 20 19:55:16 arch_desktop polkitd[310]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
    cze 20 19:55:16 arch_desktop polkitd[310]: Finished loading, compiling and executing 1 rules
    cze 20 19:55:16 arch_desktop polkitd[310]: Loading rules from directory /usr/share/polkit-1/rules.d
    cze 20 19:55:16 arch_desktop polkitd[310]: Loading rules from directory /etc/polkit-1/rules.d
    cze 20 19:55:16 arch_desktop polkitd[310]: Started polkitd version 0.112
    cze 20 19:55:16 arch_desktop systemd[1]: Starting Authorization Manager...
    -- Reboot --
    cze 20 19:54:38 arch_desktop systemd[1]: Stopping Authorization Manager...
    cze 20 19:54:13 arch_desktop polkitd[305]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.21, object path /org/kde/PolicyKit1/AuthenticationAgent, locale pl_PL.UTF-8)
    cze 20 16:47:01 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 20 03:02:19 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 21:32:38 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 19:25:08 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 19:24:40 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 19:24:38 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 19:24:36 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 19:24:35 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    cze 19 19:24:34 arch_desktop polkitd[305]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.udisks2.filesystem-mount-system for system-bus-name::1.10 [kdeinit4: kded4 [kdeinit]] (owned by unix-user:firekage)
    Could somebody help me? I even checked all rules in /etc/polkit-1/rules.d and /usr/share/polkit-1/actions on my notebook, and all files are the same with the same user permission but on notebook i can mount usb without problem, but on my desktop can't at all.

  • [SOLVED] Cannot mount usb (as normal user)

    Hello
    I'm facing this problem for the first time, but can't tell if it came after an update or an unexpected reboot (light went out).
    I'm using latest kde (4.9.2?), and the latest kernel,
    Linux gantz 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 GNU/Linux
    When I plug any usb device, kde ask me what to do. When trying to mount it, either from the kde "mount" plasmoid or from dolphin, I get a "Not authorized" error. Mounting via cli with sudo works fine.
    After doing some research, I found that I need to be in the storage group in order to be able to mount, so I checked, and I was already on the storage group. Next.
    More research sent me to lots of pages talking abour .xinitrc, wich doesn't exists (on my home, at least). Also tons of pages where talking about somethin like "exec ck-launch-session dbus-launch session-manager" (I login via kdm), but the ck-launch-session is not found on my computer either.
    So i'm stucked right now, and don't know how to proceed, any clues? Thanks
    Last edited by mzneverdies (2012-11-10 13:10:09)

    mzneverdies wrote:
    Solved, it was a polkit issue, don't know what caused it, since i didn't touch any config file/dialog.
    after changing allow any to "yes" in this section
    <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>yes</allow_any>
    <allow_inactive>yes</allow_inactive>
    <allow_active>yes</allow_active>
    </defaults>
    </action>
    on file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy, everything came back to normal, and i'm able to mount usb devices.
    pd @Raynman: removing myself from the storage group did not change anything.
    that's not a fix, it's a crappy workaround. You are not supposed to touch these files, they will be overwritten on an upgrade. My guess is that you are simply not using systemd and therefore you are not in an active logind session. You have to boot with systemd, as mentioned in the news. Everything should then just work out of the box.

  • Mounting usb devices as non-root user ??

    How can a non-root user mount a usb flash device?
    As root, the device is mounted as:
    mount -F pcfs /dev/dsk/c1tod0s2:c /mnt
    The vfstab entry for this is as follows:
    /dev/dsk/c1t0d0s2:c /dev/rdsk/c1t0d0s2 /flash pcfs 2 no -
    This is running Solaris 8 on a SunBlade150

    Hello.
    I had the same problem.
    If you do not have root rights on the computer the answer is: You cannot mount the device.
    I had root access and I wrote a C program that (un-)mounted all possible device files (the "s2" devices as well as the "s2:c" devices because some flash devices come without partition table).
    I chowned the file to root and set the "set effective user ID" bit in the file's permissions using chmod after logging in as root - so any user can start the program.
    I think this is the most flexible variant because USB devices sometimes are assigned other device names.
    Martin

  • [SOLVED] VirtualBox won't recognize host USB devices w/o root access

    VirtualBox is currently unable to detect the host's USB devices without root access. When I try to add a USB filter with user permission, the menu says
    <no devices available>
    but when I run VirtualBox as root, it detects the USB device, obeys the filter once added, and I can access the USB device from inside the virtual machine. Is there any way to get the same behavior from a non-root account?
    This user account is part of the vboxusers group and I have guest additions installed.
    Last edited by boblitz13 (2012-10-19 21:05:01)

    Well, sometimes it's the truly silly things that get you. I rebooted and VB now detects the host USB devices with regular permissions. All of the device filters are now working except the one for my NTFS-formatted external HD. The filter will grab it from the host OS but I cannot access it in the guest. I read that VB used to have a problem with USB 3.0, but that seems to have been resolved in the latest version. Is there any other explanation for why this isn't working?

  • KDE mount USB device fails

    Hi,
    I am running KDE and having problems mounting USB devices via the KDE Device Notifier in the task bar. When I insert the USB stick there is the normal little popup giving me the option to open the flash drive in dolphin. When I click it, I get the following error:
    "Could not mount the following device"
    Mounting the device via terminal works fine. I also put my user into the "storage" group like the wiki tells me. Still no change.
    Any ideas?

    willtriv wrote:
    Note: slim is ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must no longer include ck-launch-session in your .xinitrc or slim.conf login_cmd.
    These kind of changes without notifications to users cause headaches. Someone was kind enough to update the wiki!
    You are my personal hero for today, I was suffering the same problem. Manifests itself as 2 CK sessions listed by ck-launch-session, with the wrong session being marked as active.
    Last edited by crobe2 (2012-06-11 14:28:12)

  • [SOLVED] setting up permissions for mounted usb devices

    Hi all,
    I've been having the following problem when mounting my external hd: in order to mount the external hd I created a folder /mnt/usbstick/ giving permissions to a non-root user to read the files/directories in this folder (using chmod); however, after I mount the external hd, the set of permissions for /mnt/usbstick/ change so that a non-root user cannot  read the mounted files in /mnt/usbstick. This is a problem for me because, when I copy a file from the external hd to the non-root home folder, the copied file can only be read by the root user.   
    Do you know how I can solve this problem? Should I write a udev rule and place it at /etc/udev/rules.d/? Or should I simply add the non-root user to a specific group from /etc/group? Any ideas?
    Thanks!
    Last edited by falsum (2010-05-08 09:21:59)

    You could try adding an entry for your usb device in /etc/fstab and specify the option user to let non-superusers mount it.
    Here's an example of an entry for my external HD. I'm sure there are probably other (and better) ways to do this but it works for me.
    UUID=4376-0BFB /media/FIRELITE vfat rw,user,noauto,async 0 0
    Nice howto found on the wiki: http://wiki.archlinux.org/index.php/Fstab

  • [SOLVED] can't mount USB external drive since udev upgrade to systemd

    At somepoint in time around the June 1 change from udev to systemd or the change from udisks to udisks2 something has changed the way my external USB drives auto-mount.
    I have always just plugged them in and they show up in PacmanFM just fine. Now, they do show up but the NTFS drive is showing as read-only and another empty drive that I have reformatted using GParted to xfs, then ext2, and finally again using ext4 gives "Permission Denied" errors when I try to put a file on the drive. Happens no matter how I format it.
    Did something change that I need to manually configure? Up to this point I relied on udev just kind of doing its thing - I never had to configure anything to get these drives to work properly.
    Last edited by AyeCapn (2012-06-26 15:15:59)

    Perhaps the cause of my issue might be relevant:
    While the now deleted udev automount script from the Arch Wiki had worked for months without issue, approximately since the udev/systemd merger it became broken for NTFS partitions on USB devices.
    It still worked with the classic initscripts, but with systemd it only resulted in "Transport endpoint is not connected" for the supposed mount point and ls reported lots of "?" for it.

  • Issues mounting USB devices in Thunar under Openbox

    Basically, whenever I attempt to mount a USB device in Thunar, I get a message that says:
    Failed to mount "4.0 GB Filesystem
    Not authorized
    My .xinitrc looks like:
    exec ck-launch-session dbus-launch openbox-session
    It works when I use GDM to start openbox, but when I use slim, it fails no matter what I try. If anyone could help me out, I'd really appreciate it.

    Check for *.pacnew files in '/etc/pam.d/' (specifically /etc/pam.d/slim.pacnew).

  • Mounting USB devices in arch guest

    I'm new to virtualbox, but not to linux.  I have been using arch for at least 3 years, so I have some familiarity with it.  I have recently installed arch as a guest OS on virtualbox (on OSX host).  I am having some trouble accessing an attached USB device from the arch guest.  I have defined the virtualbox USB filter for my device, and it appears to work, detecting the identified device and attaching it to the guest (at least as far as virtualbox is concerned).   I can see the device in the virtualbox pull-down menu, and it shows with a "checkmark" next to it, showing (I think) that it has been attached to my arch guest.
    Problem is, I cannot see the device from the arch guest.  no entry in /dev for any USB device.  symptoms are the same whether i insert ther USB device before or after starting the arch guest.  I have HAL and dbus active in my guest.  Also, I have made this work in arch installed natively.  since there is no /dev entry, this might appear to be some form of udev issue?  is there a specific udev setup that I should be aware of for arch as a guest?
    Please help if you can.  I will appreciate all comments and suggestions.
    -dvh

    hey, ive got Arch setup in virtualbox as well, and can mount usb's and cd's etc. (although with some issues i may need to bring up in another thread...) anyways, im assuming you have the PUEL virtualbox and not the OSE one?
    also, your certain that you've mounted the correct USB (on the Virtual Box pull-down menu)? because you may have mounted a USB which was already attached to your host, and not the actual USB?
    just checking, i dont know much about how to fix this issue so im just going at the simple solutions...

  • VirtualBox Can't Find USB Devices

    Hi all,
    Just run into a USB issue in VirtualBox, I tried everything I can find on internet, but nothing fixes it.
    It used to work fine before, I don't know when was it broken. Here's some information:
    I'm running VirtualBox 4.2.6 on Linux 3.6.11-1-ARCH.
    I added myself to vboxusers, and I have
    export VBOX_USB=usbfs
    in ~/.xinitrc
    I also have VirtualBox extension pack installed.
    Now the weird part is, I can access USB devices if I run VirtualBox with root privilege, while with my own account, it shows the following error message once I click "Settings" button:
    Failed to access USB subsystem.
    Could not load the Host USB Proxy service: VERR_NOT_FOUND.
    Anyone has any idea what's going on?

    Guys.
    Was there a solution found?
    I get the same error on current (fully updated) install.
    VirtualBox wrote:
    Could not load the Host USB Proxy service: VERR_NOT_FOUND
    Result Code:
    NS_ERROR_FAILURE (0x00004005)
    Component:
    Host
    Interface:
    IHost {30678943-32df-4830-b413-931b25ac86a0}
    Callee:
    IMachine {22781af3-1c96-4126-9edf-67a020e0e858}
    No testing packages installed.
    I tried the repo version, now I have installed AUR version. No go.
    Kernel:
    Terminal wrote:[root@wishmacer andrzejl]# uname -r
    3.8.5-1-ARCH
    [root@wishmacer andrzejl]#
    I am the member of the vboxusers group:
    Terminal wrote:[root@wishmacer andrzejl]# cat /etc/group | grep vbox
    vboxusers:x:108:andrzejl
    [root@wishmacer andrzejl]# cat /etc/gshadow | grep vbox
    vboxusers:!::andrzejl
    Modules are loaded:
    Terminal wrote:[root@wishmacer andrzejl]# lsmod | grep vbox
    vboxpci                14705  0
    vboxnetflt             16464  0
    vboxnetadp             19175  0
    vboxdrv               221515  3 vboxnetadp,vboxnetflt,vboxpci
    [root@wishmacer andrzejl]#
    Extension is installed:
    Terminal wrote:
    [root@wishmacer andrzejl]# locate ExtensionPacks
    /opt/VirtualBox/ExtensionPacks
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.html
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.rtf
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ExtPack-license.txt
    [...]Prunned longish output...[...]
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/win.x86/VBoxUsbCardReaderR3.dll
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/win.x86/VBoxUsbWebcamR3.dll
    /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/win.x86/VBoxVRDP.dll
    [root@wishmacer andrzejl]#
    I was rebooting many times today.
    I have tried adding this:
    VBOX_USB=usbfs
    and this:
    export VBOX_USB=usbfs
    to the
    ~/.bashrc
    Found this page and I see these two commands:
    VBoxManage list usbhost
    ls -lR /dev/vboxusb
    The results are:
    Terminal wrote:
    [andrzejl@wishmacer ~]$ VBoxManage list usbhost
    Host USB Devices:
    <none>
    [andrzejl@wishmacer ~]$ ls -lR /dev/vboxusb
    ls: cannot access /dev/vboxusb: No such file or directory
    [andrzejl@wishmacer ~]$
    Then I have found another page which said:
    Some other page wrote:
    Add this:
    usbfs /proc/bus/usb usbfs defaults,devmode=666 0 0
    to the
    /etc/fstab
    and reboot...
    BUT I double checked before adding it...
    Terminal wrote:[root@wishmacer andrzejl]# ls /proc/bus/usb
    ls: cannot access /proc/bus/usb: No such file or directory
    [root@wishmacer andrzejl]#
    SO... There is no such folder - the mount would fail...
    Here I can see the info:
    Page linked above wrote:
    Have:
    - VirtualBox v. 4.1.18r78361
    - Extension Pack v. 4.1.18r78361
    - user is added in vboxusers group
    - Could not load the Host USB Proxy service: VERR_NOT_FOUND (NS_ERROR_FAILURE (0x00004005))
    /proc/bus/usb is removed from kernel 3.5.0. That is the problem?
    Basically I have spent the last 3 or 4 hours (maybe more) trying to figure this out on my own - I thought it would be a good idea to report this here as this thread is similar (to say the least) to my case and then keep searching for a solution to this annoyance.
    Regards.
    Andrzej
    Last edited by AndrzejL (2013-04-04 20:58:34)

  • Can only mount certain drivers as user (permission issue)

    # /etc/fstab: static file system information.
    # <file system> <mount point> <type> <options> <dump> <pass>
    #Entry for /dev/sda3 :
    UUID=9d30da3d-1705-4d6e-8925-d54368a6ba83 / ext4 rw,relatime,noatime,discard,data=ordered 0 1
    #Entry for /dev/sda4 :
    UUID=2594-9B6A /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    #Entry for /dev/sdc1 :
    UUID=18223DAB223D8F2E /media/veePortable ntfs-3g rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    #Entry for /dev/sdd1 :
    UUID=249E57549E571D9C /media/veeStorage ntfs-3g rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    #Entry for /dev/sda2 :
    UUID=369A97239A96DEA5 /media/veeSSD ntfs-3g rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    # veeBackup /dev/sdb1 :
    UUID=d91fd6de-3a65-4a78-961b-ea53bf8e1542 /media/veeBackup ext4 rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    # veeData /dev/sdb2 :
    UUID=e7d0ed28-a65c-44ea-9ce1-529c4071afe5 /media/veeData ext4 rw,user,users,sync,exec,dev,suid,noatime,nodiratime,noauto,uid=1000,gid=100,umask=000 0 0
    This is my /etc/fstab file.
    I can successfully mount using Thunar "veeStorage" and "veePortable", which are external USB drives.
    When trying to mount "veeSSD", "veeBackup" or "veeData", Thunar tells me I don't have the required permissions.
    Doing "sudo mount --all" doesn't mount them. I have to manually mount them with
    sudo mount /dev/sdb1 /media/veeBackup
    sudo mount /dev/sdb2 /media/veeData
    sudo mount /dev/sda2 /media/veeSSD
    fdisk -l : http://pastie.org/8102730
    Blkid
    /dev/sda1: LABEL="System Reserved" UUID="18F8916FF8914BBE" TYPE="ntfs"
    /dev/sda2: LABEL="veeSSD" UUID="369A97239A96DEA5" TYPE="ntfs"
    /dev/sda3: UUID="9d30da3d-1705-4d6e-8925-d54368a6ba83" TYPE="ext4"
    /dev/sda4: UUID="2594-9B6A" TYPE="vfat"
    /dev/sdb1: LABEL="veeBackup" UUID="d91fd6de-3a65-4a78-961b-ea53bf8e1542" TYPE="ext4"
    /dev/sdb2: LABEL="veeData" UUID="e7d0ed28-a65c-44ea-9ce1-529c4071afe5" TYPE="ext4"
    /dev/sdc1: LABEL="veePortable" UUID="18223DAB223D8F2E" TYPE="ntfs"
    /dev/sdd1: LABEL="veeStorage" UUID="249E57549E571D9C" TYPE="ntfs"

    Karol:
    # Cmnd alias specification
    # Defaults specification
    # Runas alias specification
    # User privilege specification
    root ALL=(ALL) ALL
    dennis ALL=(ALL) ALL
    %users ALL=(ALL) NOPASSWD: /usr/sbin/pppd
    %users ALL=(ALL) NOPASSWD: /usr/sbin/hibernate
    %users ALL=(ALL) NOPASSWD: /usr/sbin/standby
    # Uncomment to allow people in group wheel to run all commands
    %wheel ALL=(ALL) ALL
    # Same thing without a password
    %wheel ALL=(ALL) NOPASSWD: ALL
    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    Mr. Elendig:
    Why not use automounting instead?
    To install Arch packages I needed an Internet connection, which required use of a Sierra Wireless card, which required chatscripts stored on another filesystem.  In my first Arch forum post ever, the one preceding this one, I learned to mount a device by creating a mountpoint in /media then invoking #mount.  After installing all packages and creating a user name, I signed on with xfce4 and plugged in the usb device again.  It didn't mount.  So I did it manually using sudo.  Since that worked I had the idea that adding the mountpoints to /etc/fstab would be useful, so I did.  When that didn't work I decided to just ask for help.
    So sure, I'm down for some automounting action.  How do I do it?

  • Macbook 2012 Mid: Can't mount USB mass storage after upgrading to Mavericks

    Hi guys,
    I'm having big problems with USB mass storages. After upgrading to Mavericks my Mac doesn't see some USB storage devices (mostly USB sticks and Android phone's memory cards via USB. My external USB 3.0 hard disks work fine) at all even though the devices themselves (for example my Android phone) are clearly recognized according to the System Report. When I plug them in, they don't show up on my Finder or on Disk Utility.
    I've searched everywhere and it seems like some other people are having the same problem, none seems to offer a definite solution. I've even formatted my HD and reinstalled Mavericks from the recovery partition. Now it mounts a USB stick that was in one of the USB ports at the time of installation but still doesn't read anything else! The funny thing is when I boot into Windows 8 on my Boot Camp partition, I can mount any USB devices including the USB stick and the Android phone I'm having problems on Mavericks without any problems. I can even see then when I boot into the recovery so there's clearly something wrong with Mavericks.
    Any chance someone has figured out a solution for this? Apple should've address this long time ago.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem? Note: If the devices are not in Mac OS X format, they normally won't mount in safe mode, but they should appear in Disk Utility.
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Can't mount USB flash or external disk

    For the last couple of weeks, the only way I can get anything to mount is by putting it in the fstab.  It used to work when the OS would detect the media.
    Of course, I'm running hal and dbus.
    I would consider it a favour if someone would point me in the direction of a howto, thread, documentation, or whatever on how to set this up so I can insert a USB key and have the OS detect and mount it.
    I'm running KDE 4.3.4 and it discovers the device and asks if I wish to open it with dolphin (digicam, or no action).  If I select dolphin, I get an error.
    An error occurred while accessing 'USB-KEY', the system responded: org.freedesktop,DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.267" (uid=1000 pid=16082 comm="dolphin) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=8014 comm="/usr/sbin/hald))
    Again, I would appreciate it if someone would steer me in the right direction.  This must be documented somewhere.  Unfortunately, I have been unable to find anything relevant in this forum or the wiki.

    This worked for me thanks! Although, I am wondering why is this? I understand that it is giving the right user permissions to mount and access the drive but is this a work around for something I may have forgotten?  I don't want to "jimmy rig" it.
    arch1_user wrote:
    Try editing /etc/dbus-1/system.d/hal.conf to match similar to this & substitute your username.
    Automount in Dolphin without FSTAB entry:
    Look for following, and ad entry for USERNAME:
    <!-- This configuration file specifies the required security policies
           for the HAL to work. -->
      <!-- Only root or user hal arch1 can own the HAL service -->
      <policy user="hal">
        <allow own="org.freedesktop.Hal"/>
      </policy>
      <policy user=USERNAME">
        <allow own="org.freedesktop.Hal"/>
      </policy>
      <policy user="root">
        <allow own="org.freedesktop.Hal"/>
      </policy>
    Add the following after root entry:
    </policy>
      <!-- well,...and USERNAME too -->
      <policy user="arch1">
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.DockStation"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Leds"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.LightSensor"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Storage"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Volume"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
        <allow send_destination="org.freedesktop.Hal"
               send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
      </policy>
    </busconfig>

  • Can't attach USB devices in Windows XP Mode

    I am still trying to set up my new Probook G1 450.  It is presently in the original Win 7 Pro 64-bit OS.
    I am trying to use Windows XP Mode.  I can set up XP Mode, but I can't get USB access under it. But for me, the whole point of getting XP Mode is to be able to run two key programs which require USB access. The USB devices have been successfully installed in Win 7 (it's the programs that require XP Mode).
    I have tried with VMLiteXPMode, Virtual Box, and finally with Windows Virtual PC. The results are about the same. I am presently trying Windox Virtual PC. When I access the USB button on the top of the XP Mode box, there is a list of all the USB devices. This looks like things are fine. All the devices are there. Hooray. Oops, too soon! It still doesn't work. One still has to "attach" the USB device, by clicking its listing under USB devices. When I do this, I get the following error message:
    "Could not attach the USB device. You can attach the USB to a different USB port or restart the virtual machine and try again."
    Yes, I can and have done all those things, and  I get the same error message again and again and again. This is true for all USB devices (except the USB mouse, which works perfectly and automatically in XP mode and is *not* listed under USB):
    * Epson Perfection scanner 
    * HP Laserject printer
    * the computer's own HP HD Webcam,
    and
    * the computer's own Wireless/Bluetooth Device
    For example, the scanner and printer will work well in the host machine, where I have installed them, but they can't be "attached" in XP Mode.
    Notes:
    * I have enabled "integration features"
    * I have tried disconnecting and reconnecting the devices.
    * If I try to install the printer in XP Mode, I can't do that, because this requires, at some point, the printer being plugged in to the USB. And I get the above error message when I try to attach it.
    Also I have already had to deal with one driver issue (it came with the wrong driver for wireless; the right driver wasn't on the HP support page and couldn't be obtained by the computer's own "update' function),  but when I finally discovered the right driver, wireless worked flawlessly
    There is yet another possible driver issue, but I'll leave that for another topic later. One thing at a time.

    @comvox 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

Maybe you are looking for