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).
Similar Messages
-
[SOLVED] Openbox+Thunar, how to show usb devices in thunar?
Hi. I've been running a pretty standard Xfce environment for a while. When I plug in a usb drive, I get a new item pop up in the "DEVICES" section of the left panel in thunar (note, it doesn't automount the device, it just shows that it's there and only mounts it when I click on it...I like this behaviour).
Now, I'm setting up an even lighter-weight environment, just openbox and tint2 with thunar as the file manager. But when I'm logged into the openbox environment, I don't get the item in the "DEVICES" section in thunar (but it still works fine in xfce).
If it run thunar from the command line and plug in a usb drive I get this message in the terminal
(thunar:21205): thunar-WARNING **: Failed to launch the volume manager (Failed to execute child process "thunar-volman" (No such file or directory)), make sure you have the "thunar-volman" package installed.
I don't see why I would need thunar-volman if it works fine in xfce. If I install thunar-volman and do the same, I get this message
thunar-volman: Unsupported USB device type.
thunar-volman: Unsupported USB device type.
thunar-volman: Unknown block device type.
So I'm wondering if maybe there is a daemon that is autostarted during an xfce session that makes thunar probe for devices to be plugged in or something like that. Why does it work in an xfce session, but not in an openbox session?
Last edited by Pacopag (2013-03-14 15:52:32)Thanks for your replies.
henk: I tried installing polkit-gnome and creating the rule as per the wiki, but it didn't work. Volume detection seems to work fine in xfce without this package.
jv2112: I added udiskie to .config/openbox/autostart and it seems to work. I've had problems with udiskie in the past; it seemed to have some trouble unmounting the drives properly after a write as I would find that the newly written files were corrupt. But it seems to be working fine.
I'll mark this as solved, but I'm still curious as to how xfce-thunar is mounting the usb devices.
One clue is that with udiskie, devices get mounted to /media, whereas in xfce they get mounted to /var/run/media/username/ (or something like that). -
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. -
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] 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? -
MTP USB Device not recognized under Windows 7 Ultimate
Hey everybody, I'm sure there are plenty of similar threads about this issue, however I haven't seen any with Windows 7 as OS.
My problem is in the recognition of the driver, since the MTP device is not working properly. I've tried alot of possible solutions, but none of them have worked, i.e the removal of the driver in device manager, tried a custom script for the inf file, deleting of all USB/portable related drivers.
Its sad that no recovery tools are yet compatible with Windows 7, atleast not that I'm aware of.
Please, throw some more suggestions/ideas! My Zen works perfectly fine under XP btw.I was having the same problem with my Zen Vision:M under Win7 Ultimate 64-bit.
No matter what I tried from deleting the usb root hubs and reinstalling drivers, nothing would get the mtp usb device driver to load.
I found that the mtp usb device driver will load correctly as long as you are plugging the USB cable into a direct port and not running it through a USB hub. At first I thought it might be due to an incorrect USB voltage, but the hub I'm using is a powered Belkin hub. Very strange!
So give that a shot -- run the USB straight to a port out the back of your computer. Don't use a USB hub or ports off your monitor since that is actually a hub as well.
Good luck!http://forums.mycreativefansite.com/...ify_inline.gif -
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.
-dvhhey, 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... -
How to mount usb device?
$rmformat :
Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c2t0d0p0
Physical Node: /pci@0,0/pci1462,7210@1d,7/storage@5/disk@0,0
Connected Device: USB FLASH DRIVE 34CH
Device Type: Removablemounting:
mkdir /mnt/usb
mount -F pcfs /dev/rdsk/c2t0d0p0 /mnt/usbget
mount: Block device requiredand try this
volrmmount -i rmdisk0maybe it must be here /rmdisk?
but
# ls -l /rmdisk/
total 0how to mount flesh device in Solaris 10???
Message was edited by:
[email protected]
nulli found the problem
this is output of dmesg
Jun 7 09:45:00 unknown pcfs: [ID 403951 kern.info] NOTICE: pcfs: FAT size error
Jun 7 09:45:00 unknown pcfs: [ID 132729 kern.info] NOTICE: pcfs: illegal disk formatand i do this
# mkfs -F pcfs /dev/rdsk/c2t0d0p0:cthen my device mount automaticaly -
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 SunBlade150Hello.
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 -
I'm trying to get enlightenment's file manager to mount/unmount a USB stick via the right click menu.
However this causes it to segfault:
Output from dmesg
[11791.250363] usb 3-1.2: new high-speed USB device number 5 using ehci_hcd
[11791.335765] scsi8 : usb-storage 3-1.2:1.0
[11792.518353] scsi 8:0:0:0: Direct-Access SMI USB DISK 1100 PQ: 0 ANSI: 4
[11792.519243] sd 8:0:0:0: [sdb] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
[11792.519830] sd 8:0:0:0: [sdb] Write Protect is off
[11792.519833] sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
[11792.520447] sd 8:0:0:0: [sdb] No Caching mode page present
[11792.520448] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[11792.523601] sd 8:0:0:0: [sdb] No Caching mode page present
[11792.523606] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[11792.524477] sdb: sdb1
[11792.527870] sd 8:0:0:0: [sdb] No Caching mode page present
[11792.527871] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[11792.527872] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[11822.969535] enlightenment_f[3960]: segfault at 0 ip 00007f2997b07aa1 sp 00007fffbb08e758 error 4 in libc-2.17.so[7f29979b8000+1a4000]
Also if I mount it manually then try to use the file manager to unmount it, nothing happens.
Suggestions?It's now changed from a segfault to a problem with dbus:
[ 30.444354] USB Mass Storage support registered.
[ 31.641454] scsi 6:0:0:0: Direct-Access SMI USB DISK 1100 PQ: 0 ANSI: 4
[ 31.642511] sd 6:0:0:0: [sdb] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
[ 31.643258] sd 6:0:0:0: [sdb] Write Protect is off
[ 31.643267] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 31.644018] sd 6:0:0:0: [sdb] No Caching mode page present
[ 31.644027] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 31.648332] sd 6:0:0:0: [sdb] No Caching mode page present
[ 31.648340] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 31.649211] sdb: sdb1
[ 31.651603] sd 6:0:0:0: [sdb] No Caching mode page present
[ 31.651610] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 31.651614] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 61.785709] traps: enlightenment_f[451] general protection ip:7f55293d83a0 sp:7fff5baaf088 error:0 in libdbus-1.so.3.7.2[7f55293b0000+44000] -
[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 -
Mount USB Device in Single User Mode
Hi All,
Can anyone give me any assistance of mounting a USB stick in single user mode?
I am trying to use the command:
$ mount -uw /dev/disk2s1 /Volumes/usb
But it get the error:
--specified device does not match mounted device
If I put the USB stick in normal OSX mode, then run 'df -k' in terminal, it is mounted by automounter, but I can't seem to get it to mount in single user mode.
Thanks,
NikHi Nik,
I don't believe that there are enough services started in Single User Mode to do this; you'll have to start the services yourself. However, I haven't tested this so I don't know. Wanna be a Guinea Pig?
If your going to need to write to the boot drive, mount it read/write with:
/sbin/mount -uw /
Next, start the basic services, including diskarbitrationd:
/usr/libexec/registermach_bootstrapservers /etc/mach_init.d
The above should be one line, modulo wrapping. Then start diskarbitrationd:
/sbin/SystemStarter start Disks
You should probably check /dev and see what disks are already mounted. (without the USB stick) I assume that the services that mount removable media are now started so insert the stick and see if it appears mounted in /Volumes. Otherwise, check /dev and see if there's a new disk. If it only appears in /dev, you can use the standard mount command to mount it. If it doesn't appear in /dev then you might reboot into Single User Mode and repeat the procedure with the USB stick already inserted. If none of that works then this must not be the right method and you have my apologies.
Gary
~~~~
Computers are like air conditioners. Both stop working
if you open windows.
-- Adam Heath -
Arch 2.6.36 not automatically mounting USB devices
Hi,
I am new to Arch but up to now i really like it and i am using this for my home server.
Now i use 2 external USB 1TB disks for backup which i auto mount using /etc/fstab.
The problem is that it is not auto mounting the volumes.
/etc/fstab
#External disks
UUID=dc401eb5-05f0-46ca-ba31-3d54ca66e30e /mnt/usbdisk1 ext4 defaults,noatime 0 0
UUID=a3417e0a-0ec0-4106-b9df-682eb9ba92dd /mnt/usbdisk2 ext4 defaults,noatime 0 0
dmesg output just after mounting my /
scsi 4:0:0:0: Direct-Access WD 10EAVS External 1.75 PQ: 0 ANSI: 4
sd 4:0:0:0: Attached scsi generic sg4 type 0
sd 4:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 4:0:0:0: [sdd] Write Protect is off
sd 4:0:0:0: [sdd] Mode Sense: 23 00 00 00
sd 4:0:0:0: [sdd] Assuming drive cache: write through
sd 4:0:0:0: [sdd] Assuming drive cache: write through
sdd: sdd1
sd 4:0:0:0: [sdd] Assuming drive cache: write through
sd 4:0:0:0: [sdd] Attached SCSI disk
scsi 5:0:0:0: Direct-Access WD 10EAVS External 1.75 PQ: 0 ANSI: 4
sd 5:0:0:0: Attached scsi generic sg5 type 0
sd 5:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 5:0:0:0: [sde] Write Protect is off
sd 5:0:0:0: [sde] Mode Sense: 23 00 00 00
sd 5:0:0:0: [sde] Assuming drive cache: write through
sd 5:0:0:0: [sde] Assuming drive cache: write through
sde: sde1
sd 5:0:0:0: [sde] Assuming drive cache: write through
sd 5:0:0:0: [sde] Attached SCSI disk
It seems to recognize the physical disks but a mount is not performed?
Did i overlook something or is there something else wrong?
Thanks!/etc/fstab is for FS options only, putting you device there does not guarantee automounting. This has already been discussed: https://bbs.archlinux.org/viewtopic.php?id=48469
-
[Solved] How to mount multi-device btrfs filesystem under systemd?
I am running full, native systemd. It always has an error during boot trying to mount my new, multi-device btrfs filesystem. There was no problem with mounting the filesystem when it resided on a single disk drive.
When it fails, it allows me to enter my root password and have a console. In this console, I can successfully mount the btrfs filesystem. Then boot continues normally, and then I can use the filesystem with no further problems, until the next reboot.
btrfs filesystem show /dev/sda4
failed to read /dev/sr0
Label: 'TimBTRFS' uuid: 317460bc-5b6a-4dac-acb8-7139dcbcff8b
Total devices 2 FS bytes used 31.67GB
devid 2 size 100.00GB used 2.00GB path /dev/sdb1
devid 1 size 100.00GB used 42.02GB path /dev/sda4
Btrfs Btrfs v0.19
I looked up btrfs in the wiki, and it says I have to run "btrfs device scan" before I can mount the filesystem. "This is the purpose of the btrfs mkinitcpio hook or the USEBTRFS variable in /etc/rc.conf" I do not have an rc.conf. I do not know how to do this with systemd. What do I need to do to resolve this?
Tim
Last edited by ratcheer (2012-09-06 12:12:24)I added the btrfs hook as per the previous post. I ran "mkinitcpio -p linux". I ran grub-mkconfig. I rebooted and got the exact same problem. I did see the message early in the boot output that the btrfs hook was executed.
Here are the error messages:
[ 203.780864] device label TimBTRFS devid 1 transid 140 /dev/sda4
[ 203.781779] btrfs: disk space caching is enabled
[ 203.790133] btrfs: failed to read chunk tree on sda4
[ 203.790973] btrfs: open_ctree failed
Again, in the root console, I simply mounted the filesystem ("mount -t btrfs /dev/sda4 /btrfs"), typed Ctrl-d, and the bootup continued normally and successfully.
I need help, please.
Tim -
Thunar dont show (and dont mount) removable devices and ntfs drives
hi.this my first topic
im using arch+openbox+thunar
and thunar dont show (and dont mount) removable devices and ntfs drives
more info:
i'v installed :
gvfs , gvfs-smb , gvfs-afp , thunar-volman , polkit , gnome-polkit , ntfs-3g
thunar-volman output for CD/DVD:
thunar-volman: Could not detect the volume corresponding to the device.
thunar-volman output for USB:
thunar-volman: Unsupported USB device type.
thunar-volman: Unsupported USB device type.
thunar-volman: Unknown block device type.
thunar-volman: Could not detect the volume corresponding to the device
~/.xinitrc:
openbox-session
~/.config/openbox/autostart:
thunar --daemon &
sleep 1 && /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
tint2 &
sh ~/.fehbg &
conky &
pstree output:
[hamon@dhcppc0 ~]$ pstree
systemd─┬─agetty
├─at-spi-bus-laun─┬─dbus-daemon
│ └─3*[{at-spi-bus-laun}]
├─at-spi2-registr───{at-spi2-registr}
├─conky───3*[{conky}]
├─2*[dbus-daemon]
├─dbus-launch
├─dhcpcd
├─polkitd───5*[{polkitd}]
├─sh───polkit-gnome-au───{polkit-gnome-au}
├─slim─┬─X
│ └─bash───openbox───opera───3*[{opera}]
├─systemd───(sd-pam)
├─systemd-journal
├─systemd-logind
├─systemd-udevd
├─terminator─┬─bash───pstree
│ ├─gnome-pty-helpe
│ └─{terminator}
├─tint2
└─xfconfd
please help me
Last edited by hamon (2013-11-05 09:17:21)Please use code tags. If you don't know how to do this, click the 'BBCode' link on the bottom of the page for instructions (there are all kinds of neat formatting tricks included as well).
Maybe you are looking for
-
Loops and system timestamp not synchronized
Running Labview 8.6.1 on Windows 2000, loops and system timestamp (Windows clock) seem to use different time bases; one second in a loop is not exactly as long as a second in system time. If i run a simple VI as in picture, with a 1-second loop which
-
Dear HP, I was wondering how to stop the daily calls to me. You know the one where an HP rep would just like to take a couple of minutes to learn about my environment. You know, like Bill Murray meeting Ned Ryerson each and every day of his life i
-
How to recover the Outlook password?
I have just started a new job, and am on my own in an office (no IT support). I am using Outlook 2007, but we can't recieve any emails. The pst file is almost 3GB so i have made another one and am trying to clear old stuff from the old one to the ne
-
Custom event - adding Document in message data
Hi, I'm trying (without success) to add a document variable into the message data of a custom event. I have tryed to define in schema an element having no type, and then to put directly the document using the data mapping. All the process is working
-
Getting following error when deploying the model in VC
Hi Can any body have idea what is the reason for following error. Error in compiling Flex application: Error: Branch between 8212 and 41097 around line 0 exceeds 32K span. If possible, please refactor this component. Error: Branch between 8212 and 41