Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 339864

Summary: sys-apps/eject-2.1.5-r2 with USB Flash Drive
Product: Gentoo Linux Reporter: Anthony Pelaez <anthony.pelaez>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Strace of eject binary command

Description Anthony Pelaez 2010-10-05 19:37:42 UTC
sys-apps-eject-2.1.5-r2 is installed. When starting gnome with usb flash drive, or inserting usb flash drive after gnome has started, the drive mounts just fine. Using the gnome disk mounter applet, if you click the eject <flash drive label> or in Nautilus, if you click eject the partition block is removed and it the flash drive can only be mounted again if you remove the flash drive and reinsert it. If you select eject, it will not be seen from the console, fdisk or gparted. 

Installed gnome-volume manager and the same thing happens.

Reproducible: Always

Steps to Reproduce:
1. Start gnome
2. Insert usb flash drive
3. Click Eject <flash drive label> from disk mounter applet or open Computer in Nautilus and right click in mounted flash drive and select eject.


   
Actual Results:  
The drive will unmount but it cannot be remounted unless you remove and reinsert the drive

Expected Results:  
The disk mounter applet should remain and allow you to mount the drive or the drive should be displayed in Nautilus and you should be able to right click to open it.

I removed sys-apps/eject and installed sys-apps/unieject and it works like it is supposed to.
Comment 1 SpanKY gentoo-dev 2010-10-06 15:17:38 UTC
run both apps through strace and post the logs as attachments

strace -s 4096 -o log eject /path/to/dev

`eject` merely calls ioctls on the devices.  what the kernel does with those is up to it.
Comment 2 SpanKY gentoo-dev 2010-10-06 15:17:54 UTC
also, you need to post `emerge --info` with every bug report
Comment 3 Anthony Pelaez 2010-10-06 23:29:19 UTC
Created attachment 249795 [details]
Strace of eject binary command
Comment 4 Anthony Pelaez 2010-10-06 23:31:28 UTC
I couldn't figure out how to run the unieject command to make it umount my drive from the command line. If anyone knows, please let me know.

For now I have attached the output of strace for the 'eject' command.

Here is emerge --info.
-------------------------------
Portage 2.2_rc67-r2 (default/linux/amd64/2008.0, gcc-4.4.3, glibc-2.11-r1, 2.6.36-rc6-git2 x86_64)
=================================================================
System uname: Linux-2.6.36-rc6-git2-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.1.8
Timestamp of tree: Wed, 29 Sep 2010 18:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.1.8
sys-apps/openrc:     0.6.1-r3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.4_p6-r1, 1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/remi /usr/local/portage/layman/vmware /usr/local/portage/layman/gnome /usr/local/portage/layman/kde /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 gnome multilib nls unicode xinerama" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="dmix adpcm alaw asym copy dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="garmin" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" LIRC_DEVICES="macmini" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon_dr gt68xx plustek plustek_pp" USERLAND="GNU" VIDEO_CARDS="nv vesa nvidia intel fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 SpanKY gentoo-dev 2010-10-07 06:19:27 UTC
eject forks, so you'll need to use -f with strace

unieject should be command line compatible with eject, so use the same options