You are hereejecting iPod under Linux

ejecting iPod under Linux


By thomas - Posted on 22 April 2006

Symptom: iPod is blinking "Do Not Disconnect" even after you've umounted the filesystem. You need to eject the iPod. Umounting is not enough. You need to send an ALLOW_MEDIUM_REMOVAL to the usb device. The easiest way is with eject. Depending on your system, you may need to be root, or allow suid on eject (chmod u+s `which eject`). I've found that suid on eject is the most consistent solution, but I don't like suid executables on the system. sudo should also work, but I haven't tested this yet.

There is a patch in the recent eject that should solve this if you own the device (chown `whoami` /dev/devicename). Anyway, if your device was mounted under /media/usbdisk, do this: eject /media/usbdisk (This just executes "eject /dev/sde" on my system, but it doesn't require you knowing the device name) After a few seconds your iPod will flash and you'll be ready to go again...

If you already umounted the filesystem, eject will not work. You'll need to try remounting the filesystem and ejecting or just pull the plug and reconnect.

Tags

great site and informative posts

rightclick on the removable device representing the iPod, then click Eject
or do

mount

and see where your iPod got mounted, and note the device
Example: you see that your iPod is mounted on /media/my_ipod and its disk device is /dev/sdb1

then do

eject /dev/sdb

thanks for the tip. it's just what I needed.
It worked

bart.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options