You are not logged in.

#1 2006-01-07 09:05:11

Greycloack
Member
Registered: 2004-03-05
Posts: 166

Can eject Disk-on-Key but not Ipod

Hi,
I was helping my sister with her new iPod nano (usb connection) and encountered a wierd problem.

I managed to mount it and use gtkpod and everything but somehow I can only eject it as root.

doing

eject /mnt/ipod

as user or as root doesn't work. The only thing that does work is

eject -s /mnt/ipod

as root only. if I try to do the same command as a regular user (though it has users and rw in fstab) I get this message :

eject: unable to eject, last error: Operation not permitted

On the other hand doing

eject /mnt/usb

for my disk on key works fine...

It's not a big problem, just annoying to switch to root for this, and also I can't automate it with gtkpod this way...

Anyone know why that may be?

Thanks,
Grey

Offline

#2 2006-01-07 13:41:54

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Can eject Disk-on-Key but not Ipod

Surely it's just a case of unmounting it, rather than ejecting it?


.oO Komodo Dave Oo.

Offline

#3 2006-01-07 15:22:32

Greycloack
Member
Registered: 2004-03-05
Posts: 166

Re: Can eject Disk-on-Key but not Ipod

Komodo wrote:

Surely it's just a case of unmounting it, rather than ejecting it?

No, I do mean ejecting. When I unmount the iPod it still has the screen of "Do not disconnect" on the other hand after doing "eject" that screen disappears.

Offline

#4 2006-01-07 18:49:23

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Can eject Disk-on-Key but not Ipod

Greycloack wrote:
Komodo wrote:

Surely it's just a case of unmounting it, rather than ejecting it?

No, I do mean ejecting. When I unmount the iPod it still has the screen of "Do not disconnect" on the other hand after doing "eject" that screen disappears.

I don't know what your problem is then; I didn't have the same issue when I used gtkpod.

I now use gnupod - I don't know if there's a gui frontend for it that you could try...


.oO Komodo Dave Oo.

Offline

#5 2006-01-07 21:49:14

Greycloack
Member
Registered: 2004-03-05
Posts: 166

Re: Can eject Disk-on-Key but not Ipod

How do you disconnect your ipod? When do you know it's safe to disconnect?

Do you use umount? do you remove the module?

Offline

#6 2006-01-07 22:03:10

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Can eject Disk-on-Key but not Ipod

gnupod updates the db etc, it doesn't mount/unmount the ipod for you, so i just manually mount and umount it.


.oO Komodo Dave Oo.

Offline

#7 2006-02-06 12:25:57

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Can eject Disk-on-Key but not Ipod

I have the same issue with my iPod, as do many others.  Try setting the sticky bit on eject command so that non root users can use it.  This is what I did; however, it is not the best thing to do for security.

A better way would be to add the user to group "disk".  I am pretty sure this should fix the "eject" issue.

Kevin

Offline

#8 2006-02-06 12:35:02

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Can eject Disk-on-Key but not Ipod

Well, I removed the sticky bit and added myself to disk and it didn't work.  I then notived that these devices belong to group "storage" . That is the group that you need to be in - I think. 

I can't try it at the moment since I am adding a bunch of mp3 to my iPod :-)

Kev

Offline

#9 2006-02-07 01:13:19

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Can eject Disk-on-Key but not Ipod

Hummm, being in "storage" didn't work either.  It would be nice to figure this out.

Kev

Offline

#10 2006-02-07 13:37:40

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: Can eject Disk-on-Key but not Ipod

Is your ipod in /etc/fstab? AFAIK only root can mount/umount stuff not in /etc/fstab, so if not it's worth a shot (remember to set the "user" (all users can mount it, but only the one who mounted it can umount) or "users" (everyone can mount and umount it) option).

Offline

#11 2006-02-07 13:44:03

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: Can eject Disk-on-Key but not Ipod

for user mounting look at hal dbus ivman pmount .....


Mr Green

Offline

#12 2006-02-07 13:57:59

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Can eject Disk-on-Key but not Ipod


Arch - It's something refreshing

Offline

#13 2006-02-08 14:09:01

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Can eject Disk-on-Key but not Ipod

jaboua, the ipod has the correct entry in fstab.

Generally, I find that unloading modules is a bit extreme. "eject" as non-root would be a much better option for removing the ipod.

I am at work now but I did some searching on google last night and I ended up on the kernel developers email list.  It seems the getting eject to work as a non-root user is an issue with newer kernels and is listed as a bug.

Offline

Board footer

Powered by FluxBB