You are not logged in.

#1 2011-10-25 11:20:28

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Mounting and Unmounting USB drives [Solved]

HI there:
I want a program like in KDE that will automaticly mount and allow me to click to unmount my usb drives. I am building machines and I need them to be user friendly and fast. I am running openbox 3.5 with a lxpanel right now. Also how do you allow users to access the usb drives. Here is an example of an error. I am logged in as usera. I fire up shotwell plug in my camera. It detects it I click on the camera and it says
"Shotwell
Unable to fetch previews from the camera:
I/O problem (-7)"

I log in as root it works perfectly. I hope this all makes sense. smile

Last edited by mich04 (2011-10-27 23:36:30)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#2 2011-10-25 11:21:38

heatblazer
Member
Registered: 2011-09-03
Posts: 26

Re: Mounting and Unmounting USB drives [Solved]

try if you are having dbus running in your daemons.

Offline

#3 2011-10-25 11:58:54

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

I do not understand your post? Are you asking me if I have dbus running in my daemons, because I do have it in there.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#4 2011-10-25 12:06:42

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

So I guess my problem is bigger than I thought, I had not tried my cdrom until just now. I installed clementine and I can not find the cd anywhere. What is going on here? What do I need to configure to perform all of these actions?


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#5 2011-10-25 12:28:14

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mounting and Unmounting USB drives [Solved]

https://wiki.archlinux.org/index.php/Ud … s_Wrappers
You should find what you are looking for there.
Personally I use udisksvm which is graphical and can mount/unmount devices with a mouse click as user.
But there are others, but they may not be as convenient to un-mount without CLI as udisksvm.

Last edited by berbae (2011-10-25 12:30:40)

Offline

#6 2011-10-25 12:33:02

whompus
Member
From: Durham. UK
Registered: 2005-08-09
Posts: 256

Re: Mounting and Unmounting USB drives [Solved]

I use obdevicemenu which I find to be excellent.

https://bbs.archlinux.org/viewtopic.php?id=114702

Offline

#7 2011-10-25 15:15:35

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

Ok here is another question, why can't I use Thunar file manager? I have downloaded the vol plugin and I have configured it to automaticly mount things when they are inserted. Thunar- edit-preferences-advanced- "enable volume management , then configure and checked all the boxes. I think I am having a problem with the permissions on my libusb files.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#8 2011-10-25 15:51:24

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: Mounting and Unmounting USB drives [Solved]

I wonder if your user needs to be in the storage group.

Offline

#9 2011-10-25 16:35:09

AliWam
Member
Registered: 2011-01-24
Posts: 10

Re: Mounting and Unmounting USB drives [Solved]

How do you start openbox?

I am using startx with this ~/.xinitrc

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

and it works well.

Have a look here.

Offline

#10 2011-10-25 19:50:01

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

I have all of those settings in place.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#11 2011-10-25 19:58:42

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

So here are some things that I have noticed. My device is showing up in the folder /dev/disk/by-uuid also in the shotwell program when I plug my camera it also pops up in there it says nikon.XXX I click on it says can not fetch pictures. When I am in root I can fetch the pictures, but still can not access my usb drive.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#12 2011-10-25 21:42:12

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

ok so I can mount using the terminal that is a start to get my information I need. Now if one of my partitions is jfs I type mount -t jfs /dev/sdb4 /mnt/storage but it is telling me wrong fs type.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#13 2011-10-26 04:13:42

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

well I got it to work, well half of it. I installed udiskie than I went into ~/.xinitrc  and I added "udiskie &" before "exec openbox-session" and now shotwell can download pictures form my camera, I am still looking into a program to mount and unmount my drives. I looked at udisksvm but it requires hal, and it seems that they are doing away with hal so I need to find a more up to date solution.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#14 2011-10-26 06:16:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Mounting and Unmounting USB drives [Solved]

AliWam wrote:

How do you start openbox?

I am using startx with this ~/.xinitrc

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

and it works well.

Have a look here.

mitch04 wrote:

I went into ~/.xinitrc  and I added "udiskie &" before "exec openbox-session"

mitch04. wrote:

I have all of those settings in place.

Could you please correlate those quotes for me?  (Hint: I think you may have missed the subtlety of AliWam's suggestion)

Last edited by ewaller (2011-10-26 06:17:24)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#15 2011-10-26 09:12:49

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mounting and Unmounting USB drives [Solved]

mich04 wrote:

I looked at udisksvm but it requires hal, and it seems that they are doing away with hal so I need to find a more up to date solution

udisksvm doesn't require hal.
It needs only udev, dbus, udisks, traydevice (from AUR) and bash>=4.0
Where did you see it requires hal?
The link in AUR: https://aur.archlinux.org/packages.php?ID=46572

Last edited by berbae (2011-10-26 09:14:48)

Offline

#16 2011-10-26 11:09:27

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

I am sorry I could have sworn that I saw that in one of the wikis, How do I install trydevice after I have run makepkg? I keep getting the error. 
# python setup.py install
   File "setup.py" , line 43
       print 'patching file:` + file_to_patch
                                    ^   
SyntaxError: invailid syntax

I am looking at line 43 but can't tell what is wrong.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#17 2011-10-26 11:11:45

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

It looks like ` is causing the problems but why?


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#18 2011-10-26 11:30:59

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Mounting and Unmounting USB drives [Solved]

Could be a python 2 / 3 mismatch.
Try

python2 setup.py install

instead

Offline

#19 2011-10-26 11:32:31

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

It did start to work but gave me this error.

"ValueError: Data must be installed under /usr directory"

Last edited by mich04 (2011-10-26 12:31:18)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#20 2011-10-26 16:20:18

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mounting and Unmounting USB drives [Solved]

mich04 wrote:

It did start to work but gave me this error.

"ValueError: Data must be installed under /usr directory"

I don't understand quite well what you mean here: what starts to work?
The PKGBUILD from https://aur.archlinux.org/packages.php?ID=32005 uses python2.
Did you install traydevice 1.5.2-2 from AUR?

The ValueError message comes from where?

mich04 wrote:

How do I install trydevice after I have run makepkg?

You install it with:

pacman -U traydevice-1.5.2-2-x86_64.pkg.tar.xz

when makepkg has built the package file.

Edit: I just tried to rebuild traydevice to be sure, and the package file was generated without errors.

Last edited by berbae (2011-10-26 16:29:12)

Offline

#21 2011-10-27 00:01:09

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

holy crap where did that command come from? I thought I was installing it when I ran makepkg -s, but that only builds the package for my system? I did the same command for it and have everything installed now.  So how do I run udisksvm now?

I have lxpanel

Last edited by mich04 (2011-10-27 00:01:53)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#22 2011-10-27 03:16:20

Slyder
Member
Registered: 2010-10-21
Posts: 12

Re: Mounting and Unmounting USB drives [Solved]

AliWam wrote:

How do you start openbox?

I am using startx with this ~/.xinitrc

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

and it works well.

Have a look here.


Nice!  I just installed Xfce on my new netbook (I use awesome WM and a different automounting solution for my other Arch box) and adding "dbus-launch" right before "startxfce4" on the line that reads:

"exec ck-launch-session dbus-launch startxfce4"

fixed my problem.

I'm a little confused though, in the wiki it says that, "In case you are wondering, dbus-launch will be launched by the xinitrc.d code at the beginning of the file...."  https://wiki.archlinux.org/index.php/Xfce

My .xinitrc is functionally the same as the example in the wiki, so I had thought that somehow dbus-launch wouldn't be necessary.  Oh well, it's working now and that's all that matters, thanks for your suggestion AliWam!

Offline

#23 2011-10-27 03:20:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Mounting and Unmounting USB drives [Solved]

mich04 wrote:

holy crap where did that command come from?

It's part of the mystery that is Arch...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#24 2011-10-27 12:24:51

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Mounting and Unmounting USB drives [Solved]

edited: rm solved: Sorry false alarm

Last edited by mich04 (2011-10-27 15:56:42)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#25 2011-10-27 13:30:09

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mounting and Unmounting USB drives [Solved]

mich04 wrote:

Solved

Write that editing the title of your first post, rather than here.

The script udisksvm comes with a README file : /usr/share/udisksvm/README

mich04 wrote:

I want a program like in KDE that will automaticly mount and allow me to click to unmount my usb drives.

Can you confirm that is solved, please? Feedback is always interesting.

Offline

Board footer

Powered by FluxBB