You are not logged in.

#1 2012-01-28 23:40:30

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Openbox-only + Thunar. Not mounting usb internal, external hard drives

I was running a home made arch install with kde 4.7.4. all was well. (not a single problem with kde)
Then, I decided to play around with Openbox for the learning experience. I had been dodging openbox because it just seemed like it would be a pain to repair if something went wrong.

To resist this counterintuitive viewpoint, I deliberately uninstalled kde4 using this command:

pacman -Rnsc kde

Which was provided here:
https://bbs.archlinux.org/viewtopic.php?id=54329

While reading the output, I noticed that openssh, and some other things that were important were removed. (I wanted to shave my hair, not rip my skin off by the hair roots.)
I reinstalled openssh (though I know other very important things were also removed), then punched up:

pacman -Syu

In the hope that somehow my missing dependencies would be restored.

I reinstalled openbox, and proceeded to install various packages as identified here:
http://willensky.blogspot.com/2010/01/h … linux.html
(Though I made personal preferences with some of the accessories.)

All was well. Until I plugged in my phone, to move a video recording.
No response from openbox.
I replugged the phone usb.
No response.

I opened Thunar, imagining that my devices (Mint and Windows7 partition on internal hard drive, and external harddrive running Arch) would be listed on its panel.

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 1058:1110 Western Digital Technologies, Inc. 
Bus 002 Device 002: ID 04f2:b209 Chicony Electronics Co., Ltd 
Bus 001 Device 004: ID 045e:00d1 Microsoft Corp. Optical Mouse with Tilt Wheel
Bus 001 Device 005: ID 045e:00dd Microsoft Corp. Comfort Curve Keyboard 2000 V1.0
Bus 001 Device 006: ID 03f0:2a12 Hewlett-Packard 

Seemed fine to me.
Arch is running on the 1 TB Western Digital, and conky is giving me a readout on my root and home folders. So it IS detecting my usb devices. Even the printer is working fine. I set up cups just fine.

Why isn't it seeing my internal sda partitions? (GRUB is on the sda in Mint)
Why isn't it detecting my phone usb device?

I follow this wiki and restart:
https://wiki.archlinux.org/index.php/Autofs

My

/etc/autofs/auto.master

did not look like the one in the wiki.
Mine:

# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).

#/media/automount

The wiki's:

/var/autofs/misc	/etc/autofs/auto.misc
/var/autofs/net	/etc/autofs/auto.net

Restarting had no effect.

I ensured I have consolekit and dbus up to date, restarted and I accessed ~/.xinitrc

#!/bin/sh

exec ck-launch-session dbus-launch openbox-session

No effect.
Still no automounting. My system is still completely blind to my sda and usb phone device.
This seemed to be a remedy, ivman:
https://wiki.archlinux.org/index.php/Ivman

But since I saw that it was in the AUR, as a newbie I feared installing something that would not have support, so I avoided it.

I reviewed this:
https://bbs.archlinux.org/viewtopic.php?id=111236

and tried the reinstall. No effect.

Tried this:
https://bbs.archlinux.org/viewtopic.php?id=133873
using the command:

# pacman -Sf dbus-core dbus dbus-glib

No effect.

Rebooted. No effect.

thunar-volman is installed.

I've seen some remedies that make use of udev.
But I really don't want to have to manually set every device to automount. (Then every time I bring a new device, I have to manually set that too?)
In KDE, Dolphin was capable of detecting and displaying all my connected hard drives, and it required my ROOT password in order to mount and access the filesystems.
That is how I prefer it, however, I don't know how to go about setting that up with thunar and openbox.

Can anyone help?

Last edited by MLawrence (2012-01-28 23:44:54)

Offline

#2 2012-01-28 23:46:07

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

Update:

#!/bin/sh

exec ck-launch-session dbus-launch thunar openbox-session

Added thunar AFTER dbus and before openbox in the ~/.xinitrc
Upon logging in through slim, I got error saying openbox-session does not exist. In an ugly little window with a nasty looking red sign, and was redirected back to slim.
I accessed tty4 and removed thunar from ~/.xinitrc then attempted to log back in on slim successfully. Automounting is still a no go.
Any help would be appreciated.

Last edited by MLawrence (2012-01-28 23:50:22)

Offline

#3 2012-01-28 23:50:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

I am mot sure what you are trying to do, but you are launching thunar as your window manager and are passing openbox-session to thunar as an argument.  hmm
Apparently, openbox-session does not exist in the pwd so thunar cannot find it tongue  Now, if you were trying to run openbox-session, it is probably in your $PATH.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-01-28 23:58:08

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

ewaller wrote:

I am mot sure what you are trying to do, but you are launching thunar as your window manager and are passing openbox-session to thunar as an argument.  hmm
Apparently, openbox-session does not exist in the pwd so thunar cannot find it tongue  Now, if you were trying to run openbox-session, it is probably in your $PATH.

Well, to eliminate all the detail and be more concise.
I'm trying to enable automounting for portable usb devices, and enable thunar to detect my internal harddrive AND portable usb devices, on openbox using thunar.

I just tried to provide everything I HAVE tried.

My goal is simply to have a small interface popup asking me 'what i want to do' with whatever usb device I plug in, AND for thunar to list my internal hard drives on its panel.

Neither are happening. hmm

I'm on my openbox right now in fact. I'm in love. smile

It's flawless. So I know I'M doing something wrong. I just cant get access to my internal harddrive, nor access my portable usb devices.

Last edited by MLawrence (2012-01-29 00:02:49)

Offline

#5 2012-01-29 00:04:58

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

Do you have gvfs installed? It's listed as an optional dependency, but thunar needs it for automounting.

Offline

#6 2012-01-29 00:05:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

I understand.  I thought you might want some feedback as to what that incantation was trying to do.

Try the following: ck-launch-session dbus-launch openbox

That should do it.  If not, we need to look further under the hood.  For example, with regards to the internal drives, what are the contents of your /etc/fstab ?  What does your partition layout look like?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2012-01-29 00:13:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

I have not used any automounting for quite some time - but neither openbox nor thunar automount by default.

There are several methods to automount - you mention autofs which may be the only one I'm completely unfamiliar with so I can't comment on that - but have you tried any other methods such as udev rules, udisks, thunar-volman, etc?

There are two reasons I gave up on all of these: first each one had it's quirks and would work perfectly, but only under certain conditions.  Now I just use pmount (does *not* automount, but it's so darn simple, and it's always worked for me).  The second reason I gave up is I realized with automounting, UNmounting to format/partition a device could be a real PITA.

Also, last I knew thunar was not (or no longer) able to display automounted devices in the side-bar.  You could drag something there for a 'shortcut' to it, but this would have to be done each time it was mounted.

In summary, if autofs isn't working for you, try another method.  When i did automount, I had the fewest problems with udev rules.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2012-01-29 00:23:01

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

ewaller wrote:

I understand.  I thought you might want some feedback as to what that incantation was trying to do.

Try the following: ck-launch-session dbus-launch openbox

That should do it.  If not, we need to look further under the hood.  For example, with regards to the internal drives, what are the contents of your /etc/fstab ?  What does your partition layout look like?

You thought correctly. I'm very interested in exactly how .xinitrc functions! big_smile

#!/bin/sh

exec ck-launch-session dbus-launch openbox

This gave me basic openbox screen with my menu. It kept slim's background. No mounting, or device detection was enabled. sad

Offline

#9 2012-01-29 00:25:35

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

Gusar wrote:

Do you have gvfs installed? It's listed as an optional dependency, but thunar needs it for automounting.

I know I've seen a thread referencing that, but I cant find it in my history. I think I already do. What's the incantation to see those dependencies again? sad

Offline

#10 2012-01-29 00:29:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

I don't know if this will get everything working, but I believe it will help with one part you are trying to do: (~/.xinitrc)

#!/bin/sh
thunar --daemon &
exec ck-launch-session dbus-launch openbox

Some automounting methods require thunar to be running in daemon mode.  This might be what you were attempting with your other xinitrc.

Edit: I'm pretty sure daemon mode is required for thunar-volman to work.

Last edited by Trilby (2012-01-29 00:31:01)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2012-01-29 00:30:06

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

Trilby wrote:

I have not used any automounting for quite some time - but neither openbox nor thunar automount by default.

There are several methods to automount - you mention autofs which may be the only one I'm completely unfamiliar with so I can't comment on that - but have you tried any other methods such as udev rules, udisks, thunar-volman, etc?

There are two reasons I gave up on all of these: first each one had it's quirks and would work perfectly, but only under certain conditions.  Now I just use pmount (does *not* automount, but it's so darn simple, and it's always worked for me).  The second reason I gave up is I realized with automounting, UNmounting to format/partition a device could be a real PITA.

Also, last I knew thunar was not (or no longer) able to display automounted devices in the side-bar.  You could drag something there for a 'shortcut' to it, but this would have to be done each time it was mounted.

In summary, if autofs isn't working for you, try another method.  When i did automount, I had the fewest problems with udev rules.

udev intimidates me. I have thunar-volman installed. but perhaps im not using it properly.
I imagined that by installing thunar-volman that I would get device listings for thunar... Am I wrong?

I will try pmount as a last resort.

If nothing else works, am I better off dismissing thunar and installing a different file manager for my desired effects?

Offline

#12 2012-01-29 01:20:37

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

I opened up thunar-volman... and set the conditions.
No response from any plugged in devices, even after reboot.

I've tried the different code combinations.

Will update with more info.

Last edited by MLawrence (2012-01-29 01:21:09)

Offline

#13 2012-01-29 03:28:06

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

tried pmount.
pmount is apparently only detecting the hard drive im currently using.
when i try to do:

pmount -w /dev/sda1

I get:

Error: device /dev/sda1 is not removable.

I'm not trying to remove it... I'm trying to MOUNT it for access through thunar.

It seems to me that what I'm trying to achieve was not an intended part of openbox or thunar design.

Offline

#14 2012-01-29 03:41:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

Pmount is for removable media - such as flash-drives or the phone you mentioned in the OP.

If you want to mount other partitions on your hard drive why aren't they just in your fstab?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#15 2012-01-29 03:49:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

ewaller wrote:

For example, with regards to the internal drives, what are the contents of your /etc/fstab ?  What does your partition layout look like?

...


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#16 2012-01-29 03:57:58

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

See that you have the following installed.
thunar-volman
udisks
gvfs
polkit-gnome

This allows me to mount other partitions as a normal user using my user password.

For automounting, either put an entry for the partitions you want mounted in /etc/fstab or use a polkit rule.
https://bbs.archlinux.org/viewtopic.php … 0#p1014060

Offline

#17 2012-01-29 05:57:46

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

I don't know if this helps or not, but when I ran openbox I used udiskie to automount internal drives, flash, etc.I just put it in autostart.

https://wiki.archlinux.org/index.php/Udiskie


Registered Linux user #436067

Offline

#18 2012-01-29 07:13:15

MLawrence
Member
From: United States
Registered: 2011-08-04
Posts: 33

Re: Openbox-only + Thunar. Not mounting usb internal, external hard drives

David Batson wrote:

See that you have the following installed.
thunar-volman
udisks
gvfs
polkit-gnome

This allows me to mount other partitions as a normal user using my user password.

For automounting, either put an entry for the partitions you want mounted in /etc/fstab or use a polkit rule.
https://bbs.archlinux.org/viewtopic.php … 0#p1014060


Well, I solved my issue by simply installing PCManFM. Right after installing the packages that you mentioned.

But I'm still going to work on this problem to find a solution for thunar.

Alas, it is late and I've been working on this all night.

I just installed your packages.

I'll continue working on it tomorrow.

Offline

Board footer

Powered by FluxBB