[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).

Similar Messages

  • 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).

  • How to get USB device in the list of VISA resource Name field of VISA Open VI

    I have followed the below tutorial to communicate with my device using USB port. But i didn't get the name of the USB port in Measurement & Automation Explorer devices list. How to get it? Can anyone suggest something?
    http://zone.ni.com/devzone/cda/tut/p/id/4478
    Solved!
    Go to Solution.

    Hi kimhyun,
                     I have attempted this.But succeeded.I used pendrive as my USB device.my sugesstion is you don't disconnect your device at any point of your work.Check the device is connected properly.IF your system has recognized your device,you can view the device in control panel>>Device Manager>>Then open your particular device from the list of connected device then Details>>device description>>Hardware Ids>>Then you can find your vendor id there.
    Try this.I think your device is loosly connected.Which USB device are you using??Also you must install THE DRIVER OF YOUR USB DEVICE.
    GOOD LUCK
    Thanks as kudos only

  • How to detect USB device drives

    Hi
    I want to write a program which will detect the drive letter when a usb device is plugged in. i.e., if a usb device is plugged in and the drive letter is "F:", then my program will instantly detect the presense of the device as well as get the drive letter. How's that possible in Java?
    Thanx in advance
    Regards
    Mathew

    cotton.m wrote:
    Well if you're looking for the newUSBDriveListener API you're out of luck.
    There is no way to do what you are looking for in a number of ways.
    1) If something is listed as a drive the best you can now (from FileSystemView) is that it's a drive.
    2) There isn't "new drive/or device added" event API.
    So what you would have to do is when your program starts get the list of roots. Then poll at some intervals to get the list of roots and see if there are changes. If new drives show up then they show up.I agree!!!

  • [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]Automating a script for a usb device on systemd?

    Solution:See 3rd post by 65kid.
       Ok I'm trying to learn how to automate the execution of a script I wrote to run whenever a specific usb device is plugged in. In this case a usb flash drive with a specific partition identified though UUID following the path /dev/disk/by-uuid/specified-partion's-uuid.
       Basically the script uses rsync to update a snapshot of my system which I made bootable on this device. following the guide given in the wiki on full system backup using rsync I edited the --exclude options to ignore the contents of my /boot/ /etc/fstab and /etc/mkinitcpio.conf since the fstab entries, hooks array and initramfs and kernel images generated with them needed to be changed so as to make this snapshot bootable and adapted for use on the usb stick.
    the ultimate goal is to have a bootable snapshot the can be updated with whatever changes have been made with my system(i.e. pacman -Syu updates,config changes etc...) while leaving out the important things needed to have the usb still bootable afterwards. I've already succeeded at getting the script to work but I have to mount it manually then execute the script myself and I know that it works afterwards as I can still boot from the stick afterwards.
       This is not a question about rsync (which is why the script isn't posted here), to repeat myself, It's about how to execute ANY custom script whenever a specific device is plugged in. More specifically when a storage device with a certain uuid is detected after the device has been plugged in. I believe it may be different for running pure systemd and so that was the reasoning for having it mentioned in the subjects title(if I'm wrong then correct my understanding). If anything a few pointers on where to look would be appreciated. I've been googling and reading the wiki a bit with nothing specific on how to approach this. If an example of the script is requested I'll post it but it's not relevent to my question.
       For a general veiw of my setup regarding external storage volumes I do not automount anything as I do not use all the things I plug in in the same manner. Some of the stuff I do requires them to be unmounted or  mounted to different mount points(specified by me). The script handles the mounting part by itself just fine. The idea I have is to run it automatically when the flash drive is present. Any suggestions?
    Last edited by Thme (2012-12-29 00:06:56)

    Awebb wrote:You "seem to remember" has FUD potential, could you care to find the post again?
    he is probably referring to this: https://bbs.archlinux.org/viewtopic.php … 2#p1113682
    imho this is way different, the SYSTEMD_WANTS tag is completely ok to use. yes, he may be mounting the drive from the script, but imho he is not "exploiting" anything here. I personally don't see a much more elegant way to do this.
    these automount udev rules were however crappy and hackish. They were created by people who are like "but udisks is bloat!!1!" and whoever wrote them didn't really seem to know what he was doing because, for example, unmounting a device after it was unplugged from the system is completely non-sense.

  • Toshiba DVR20KB shows USB device not recognised

    Hi,
    We have a DVR20KB, which shows, when turning on USB Device not recognised error message on the screen, and there is no USB plugged in to the machine. We have already replace the DVD Drive and the board for the fault of not recognising disc but the problem of the USB error message coming up on the screen still remains, we tried disconnecting the USB board from the front but the message still comes up on the screen.
    Any help would be much appreciated..
    Thanks..

    Originally Posted by Ranil.Wickramarachch
    Hi,
    We have a DVR20KB, which shows, when turning on USB Device not recognised error message on the screen, and there is no USB plugged in to the machine. We have already replace the DVD Drive and the board for the fault of not recognising disc but the problem of the USB error message coming up on the screen still remains, we tried disconnecting the USB board from the front but the message still comes up on the screen.
    Any help would be much appreciated..
    Thanks..
    Same problem here, wondering if it has been caused by a recent OAD ?
    Regards
    Ken

  • [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?

  • How To Share USB Devices Between Two Mac's?

    I am musician and have several USB controllers that I would like to share between my Mac pro and my Macbook Pro. (drum pad, keyboard controller,USB midi interface etc.) I have seen several switches offered on the net, however they all seem to be for PC from what I have found really.
    Belkin 7-Port Desktop USB Hub (F4U017) was recommended but the language in the the description does not mirror the same types of functions I am seeing mentioned in units made specifically for the PC. (ie "share USB devices between 2 computers.") Did I taint my mind by looking at the PC items first? Is it really as easy as to plug two Macs into the same USB hub and share their devices? Does anyone have a working solution they are using for this type of situation? How do you do it?
    If I could share 7 USB devices between the two systems, I think I would be just this side close to Heaven in ease!
    thank you!
    Cheers,
    Marty

    Thank you for the lead Direwolf, it felt like there might be a little more to it than just connecting to a hub. I just converted from PC about 8 months ago. Loving my macs!! A KVM switch I had not thought of that. I will look into. I read the wiki page and it seems like a kvm would replace the screen sharing feature the two machines can now use easy enough, only without using the cpu overhead to do it??? (i think is what I understood)
    Does anyone have a model they are using and can recommend? (it's a jungle +out there+) I just did a quick search and found mostly kvm switches with 2-ports USB,. ... looking for seven, come on lucky seven! lol!
    I will keep looking. In the mean time if readers have additional ideas, I will be very grateful! Cheers!

  • How to clear USB Device Information

    Hi,
    I'm developing USB hardware as operate as HID keyboard,
    Some Wrong Informations about USB keyboard device are saved OSX under debug,
    that seems to be keyed by USB VID/PID.
    Is there way to clear this informations and set as never connected that USB device before?

    Does this help?
    http://developer.apple.com/hardwaredrivers/download/usbdebug.html

  • How to sleep USB device?

    Hello, my 24" Imac gets pretty hot so I bought a little desktop fan that is powered by USB. It works great and keeps the Imac much cooler. However, when I put my computer asleep for the night my new USB fan is still getting power and stays on. Is there a utility I can use to tell it to sleep the USB device? Thanks, Alan

    Disconnect the fan or if it has an on/off switch turn it off. The fan obviously has firmware that continues to draw power from the USB port when the computer is asleep. This is a "problem" with the fan, not the computer.

  • [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?

  • How to receive USB device handle from DLL

    Hi All,
    I'm working on a firmware
    running on a development kit and I'm trying to communicate with the
    board through USB from Labview in Windows environment. For that, I've
    built a DLL which enumerates, opens Read/Write file handle and does a
    few other functions. I'm using standard Windows APIs for USB
    initialization. 
    I use  "Call libr. function node" in labview to call these dll's. Inside the DLL, I use a function to initialize the USB which returns a device handle to the labview. My question is,  in "Call libr. function node" what is the parameter type I should use to receive the device handle? The device/file handle is defined in the WinAPI as a void pointer.
    Any help will be much appreciated.
    Thanks,
    Hari

    Hello Hari,
    Have you seen this thread?  DLL call with HANDLE type
    Regards,
    Charlie Piazza
    Staff Product Support Engineer, RF
    National Instruments

  • 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]
    null

    i 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

  • [SOLVED] ark (kde), how to show up hidden folders?

    If I want to extract anything with ark, how can I make my hidden folders visible in the dialog box?
    I mean, is that even possible?
    Last edited by scar (2013-01-16 08:16:22)

    Right-click on the folder list, enable "show hidden folders"

Maybe you are looking for

  • Error  ORA-06550,  PLS-00103 in procedure launched by php page

    Hi, I have written a php page that calls a pl/sql procedure. When I launch the procedure (through the php) I receive this error Warning: ociexecute(): OCIStmtExecute: ORA-06550: line 1, column 101: PLS-00103: Encountered the symbol "" when expecting

  • Doubt in alv layout variant.

    hi experts, I have a requirement that my selection screen should have 'ALV LAYOUT' as one of my parameter. I am using PNPCE LDB , now my issue is I can get the layout option when f4 is press on the alv layout parameter but the respective layout is no

  • E17-cvs packages

    I have rebuilt e17 packages. If you want to download them using pacman, add this to your pacman.conf: [e17-cvs] Server = http://dreameen.hopto.org:1102/~dreameen/e17/packages I must warn you though...My upload is painfully slow, so it's be better if

  • Reports -- RDF or  REP ????

    Friends, Could you pls throw some light on the two questions as mentioned below. 1) After you create a new report in Oracle Apps and after you have registered it in AOL in which directory do you save/store it ? 2) Do you register the REP or RDF versi

  • Moving Existing Playlists to Nano

    I have an existing Ipod and a new Nano. I want to move playlists from the Ipod to the Nano. I have the Nano and Ipod showing up on iTunes (so I can "see" them both but cannot move my existing playlists from the Ipod to the Nano. There is no copy/past