You are not logged in.

#1 2008-01-24 09:31:47

tafsen
Member
Registered: 2006-05-03
Posts: 141

I can't unmount my iPod

I run KDE, but I can't seem to unmount my iPod.
When I right click it and choose eject, it only says that it has been umounted but couldn't eject it.  And it still says it's connected on my iPod.

Offline

#2 2008-01-24 09:33:25

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Offline

#3 2008-02-19 00:12:59

hencethus
Member
From: Port Orange, FL
Registered: 2008-02-11
Posts: 15

Re: I can't unmount my iPod

He wasn't asking how to mount his iPod. He was asking how to unmount it.

I have the same problem with mine.

When I right click on the icon for my mounted iPod on my KDE desktop and choose "Safely Remove" I get this error message:
"The device was successfully unmounted, but could not be ejected."

A similar problem was addressed in this thread: http://bbs.archlinux.org/viewtopic.php?pid=301637

But the solution that was given there (add my user to the disk group) doesn't work for me.

I can get the iPod to eject as root from the terminal with

eject /dev/sdb2

so I'm guessing the problem has something to do with my user's permissions.

Anyone know how to fix this?

Offline

#4 2008-02-19 00:28:33

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: I can't unmount my iPod

[luiz@pearl ~]$ eject /dev/ipod
eject: unable to eject, last error: Invalid argument
[luiz@pearl ~]$ sudo eject /dev/ipod
[luiz@pearl ~]$

My udev rules:

BUS=="usb", SYSFS{product}=="iPod", KERNEL=="sd?2", NAME="%k", SYMLINK+="ipod", MODE="0660", GROUP="storage"
BUS=="usb", ATTRS{serial}=="5B811E00B426", KERNEL=="sd?1", NAME="%k", SYMLINK+="pendrive", MODE="0660", GROUP="storage"

The strangest thing is that I can unmount my /dev/pendrive as a regular user just fine.

Offline

#5 2008-02-19 00:40:46

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: I can't unmount my iPod

I remember having this problem, and I think the way I finally did it was not satisfactory, but it worked. You can have /usr/bin/eject have setuid root. (But setting programs setuid root can be dangerous!) The relevant command is 'chmod +s /usr/bin/eject. The effect is of course that the eject now will have root privileges, regardless of who runs it.

A "better" way would be to modify the udev rule to have permissions "0666" on ipod's inode.

BTW I don't have setuid bit set on eject now, and I use gnome, and ejecting works fine. Also, when I run amarok (within
gnome), the "disconnect" command works fine.

EDIT: Oh, and I think if you're willing to ignore that error message about ejecting, you can safely unplug your ipod if it's unmounted.

Last edited by bender02 (2008-02-19 00:41:48)

Offline

#6 2008-02-19 01:19:54

ruhar
Member
Registered: 2006-07-28
Posts: 37

Re: I can't unmount my iPod

bender02 wrote:

EDIT: Oh, and I think if you're willing to ignore that error message about ejecting, you can safely unplug your ipod if it's unmounted.

That's pretty much what I do and I haven't had any issues with my iPod doing this.

Offline

#7 2008-09-25 18:05:20

BKJ
Member
Registered: 2008-09-19
Posts: 71

Re: I can't unmount my iPod

for kde users that use amarok this is what i did:  in the post-disconnect command for my ipod i simply put this: "kdesu eject %d"  (w/o the " ").  Of course i still need to enter a password but it works w/o having to use setuid on the eject command.  To get to the post-disconnect command simply click settings/configure amarok/media devices/ then at the top to the right of the plugins drop down is a icon to configure the device.  This is where you enter that post command.  Hope this helps someone else.

Last edited by BKJ (2008-09-26 01:10:13)

Offline

Board footer

Powered by FluxBB