Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resetting a sshfs [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Bullet Dodger
Apprentice
Apprentice


Joined: 16 Jul 2005
Posts: 230

PostPosted: Sat Jun 14, 2008 12:31 am    Post subject: Resetting a sshfs [Solved] Reply with quote

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
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Sat Jun 14, 2008 2:02 pm    Post subject: Re: Resetting a sshfs Reply with quote

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
View user's profile Send private message
gentoonewb39
Guru
Guru


Joined: 28 Jul 2005
Posts: 317

PostPosted: Mon Jun 16, 2008 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Bullet Dodger
Apprentice
Apprentice


Joined: 16 Jul 2005
Posts: 230

PostPosted: Mon Jun 16, 2008 9:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum