iphone-mount complains that the mountpoint is not empty
Bug #179489 reported by
Nic
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
Related branches
Changed in ipod-convenience: | |
status: | New → Fix Committed |
To post a comment you must log in.
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 iPod_Control ]; then iPod_Control
if [ ! -e $MOUNTPOINT/
ln -s iTunes_Control $MOUNTPOINT/
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)" OUTPUT% "reset by peer"));
if (-n $(SSHFS_
echo "Impossible to connect by sshfs"
exit 1
fi
Or by any other way you can think of