iphone-mount complains that the mountpoint is not empty

Bug #179489 reported by Nic
6
Affects Status Importance Assigned to Milestone
iPod Convenience
Fix Released
Undecided
Unassigned

Bug Description

when using iphone-mount while the iphone is not connected to the network (or ssh is down), a list of these folders are created anyway at /media/iphone/*

iPod_Control iTunes iTunes_Control

Next time I try to mount the iphone (connected or not), I guess this error:

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option

the only way I know to clear the error message is to :

rm -fr /media/iphone/*

then make sure that the iphone is connected and to be found at its IP address before mounting:

iphone-mount

Revision history for this message
Suger (suger) wrote :

Just to confirm I encounter the same problem here.

It comes from lines 62-72 of ipod-mount

    sshfs root@$IPADDRESS:/var/root/Media $MOUNTPOINT/ -o workaround=rename

    mkdir -p $MOUNTPOINT/iTunes_Control/Music

    #Check that we have iPhone/iPod touch symbolic links in place
    if [ ! -e $MOUNTPOINT/iPod_Control ]; then
        ln -s iTunes_Control $MOUNTPOINT/iPod_Control
    fi
    if [ ! -e $MOUNTPOINT/iTunes ]; then
        ln -s . $MOUNTPOINT/iTunes
    fi

It should be modified so that, in case of an sshfs error, the program exits after the sshfs line. One could try putting an error catcher at the beginning of the script

   function error {
      echo Error
      exit 1
   }

   trap error ERR

But this will exit on all non 0 return value of a command

or by testing stderr/stdout for a connection reset by peer

   SSHFS_OUTPUT="$(root@$IPADDRESS:/var/root/Media $MOUNTPOINT/ -o workaround=rename 2>&1)"
   if (-n $(SSHFS_OUTPUT%"reset by peer"));
      echo "Impossible to connect by sshfs"
      exit 1
   fi

Or by any other way you can think of

Changed in ipod-convenience:
status: New → Fix Committed
Revision history for this message
Mario Limonciello (superm1) wrote :

Should be fixed on the next ppa build. Thanks for the bug report :)

Changed in ipod-convenience:
status: Fix Committed → Fix Released
Revision history for this message
bconnor (ctoacsn) wrote :

i get this error! help!

Revision history for this message
Zane (zain-chua) wrote :

I get this same error. I currently am unable to see my iphone through Ubuntu, is there a permanent fix for this? The code above still doesnt work.

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.