Unmounting ipod

Bug #21373 reported by Ben Maurer
This bug report is a duplicate of:  Bug #11517: Can not eject removable devices. Edit Remove
14
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Invalid
Medium
Sebastien Bacher

Bug Description

If I plug in an ipod, and then click "unmount volume" on the desktop, I get the
cryptic error:

Unable to eject media
eject: unable to eject, last error: Invalid argument

Revision history for this message
Luca Ognibene (luogni) wrote :

This happens to me too.
The ipod partitions are umounted but not ejected.

Running "sudo eject /dev/sda" works but
also reboots my ipod...

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for you bug? Seems to be the eject bug #11517. What happen if you run
"eject ..." on the device?

Revision history for this message
Luca Ognibene (luogni) wrote :

from "strace eject /dev/sdb"
...
open("/dev/sdb", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, CDROMEJECT, 0x804d878) = -1 EIO (Input/output error)
ioctl(3, SG_GET_VERSION_NUM, 0xbfea8610) = 0
ioctl(3, SG_IO, 0xbfea8204) = -1 EPERM (Operation not permitted)
ioctl(3, FDEJECT, 0x804d878) = -1 EINVAL (Invalid argument)
ioctl(3, MGSL_IOCGPARAMS or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0xbfea7a04) = -1
EINVAL (Invalid argument)
...
write(2, "eject: unable to eject, last err"..., 53eject: unable to eject, last
error: Invalid argument

From "sudo strace eject /dev/sda"
open("/dev/sdb", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, CDROMEJECT, 0x804d878) = -1 EIO (Input/output error)
ioctl(3, SG_GET_VERSION_NUM, 0xbfda3620) = 0
ioctl(3, SG_IO, 0xbfda3214) = 0
ioctl(3, SG_IO, 0xbfda3214) = 0
ioctl(3, SG_IO, 0xbfda3214) = 0
ioctl(3, BLKRRPART

At this point the ipod is "ejected", it reboots and it gets mounted again. The
eject command sometimes hangs.. (I can C-c it).

So it seems really the same bug.. (i'm on i386 too).

Revision history for this message
James Moger (jcm21) wrote :

I also observe this behavior with my iPod shuffle.

Revision history for this message
Robert Newson (robert-newson) wrote :

The error output is the same as the text that 'eject /dev/sda2' gives me if I
don't sudo. Is the eject command simply running with the wrong privilege?

Btw, this is the only wrinkle left using my iPod, I had many other problems
mounting and unmounting before.

Revision history for this message
Sebastien Bacher (seb128) wrote :

same issue than #5049

This bug has been marked as a duplicate of bug 11517.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.