View previous topic :: View next topic |
Author |
Message |
Bullet Dodger Apprentice
Joined: 16 Jul 2005 Posts: 230
|
Posted: Sat Jun 14, 2008 12:31 am Post subject: Resetting a sshfs [Solved] |
|
|
At some point i have uncleanly disconnected a ssffs now if i try to mount i get:
Code: |
$ sshfs root@192.168.2.2:/var/mobile/Media/ /mnt/iphone
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
|
I can obviously do:
Code: |
$ sshfs root@192.168.2.2:/var/mobile/Media/ /mnt/iphone -o nonempty
|
Then unmount again:
Code: |
$ fusermount -u /mnt/iphone
|
But at the next mount, i get the same again:
Code: |
$ sshfs root@192.168.2.2:/var/mobile/Media/ /mnt/iphone
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
|
How can i reset this to say /mnt/iphone IS empty so accept the next attempt to sshfs?
I think having to using "-o nonempty" every time is a bad thing to be doing.
Cheers
Last edited by Bullet Dodger on Mon Jun 16, 2008 9:11 pm; edited 1 time in total |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Sat Jun 14, 2008 2:02 pm Post subject: Re: Resetting a sshfs |
|
|
look at the output of the mount command...you may have something that is mounted on the same location:
i tried gmailfs and i had a similar problem...a python program(that was part of gmailfs) was mounting something on the same folder....
by the way i didn't succeed to make gmailfs work... |
|
Back to top |
|
|
gentoonewb39 Guru
Joined: 28 Jul 2005 Posts: 317
|
Posted: Mon Jun 16, 2008 12:46 am Post subject: |
|
|
More then likely[/code] some file has been created in the folder running the following command with the iphone unmounted should solve it
[code]rm -r /mnt/iphone && mkdir /mnt/iphone && sshfs root@192.168.2.2:/var/mobile/Media/ /mnt/iphone[\code]
Edit: before running that command do ls -l /mnt/iphone and ensure that there is nothing in that folder you want to keep |
|
Back to top |
|
|
Bullet Dodger Apprentice
Joined: 16 Jul 2005 Posts: 230
|
Posted: Mon Jun 16, 2008 9:11 pm Post subject: |
|
|
GNUtoo - Already checked the mount point and nothing is mounted on it.
gentoonewb39 - Yes. I never thought to look and see if there is anything in there.
There is an iTunes_Control folder - amarok must have kept writing to it after the iphone disconected (and therefore sshfs session timed out).
It's all good now
Cheers |
|
Back to top |
|
|
|