Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshfs and remote directories issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Mon Sep 20, 2021 9:33 pm    Post subject: sshfs and remote directories issue Reply with quote

Hello,

In order to save the SD card of my BananaPI named Torchwood, its /etc/fstab looks like :

Code:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/mmcblk0p1      /boot      vfat      noauto,noatime   1 2
/dev/mmcblk0p2      /      ext3      noatime      0 1
/dev/sda1      none      swap      sw      0 0
#/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0
/dev/sda2      /mnt/sata   auto      noatime      0 1

/mnt/sata/var      /var      none      bind
/mnt/sata/home      /home      none      bind
/mnt/sata/portage   /usr/portage   none      bind
/mnt/sata/src      /usr/src   none      bind
#/mnt/sata/web      /web      none      bind

none         /var/tmp   tmpfs      defaults   0 0
none         /tmp      tmpfs      defaults   0 0


I duno if it matters on this issue.

I'm trying to mount it's filesystems from another machine "Pset" (also under gentoo) using sshfs as following :

Code:
sshfs -o follow_symlinks  laurent@torchwood.local:/mnt/sata/trv/Projets/bPI/TdB/ /mnt/torchwood


but what is mounted on /mnt/torchwood is the root of the BananaPI, not the expected directory.
Code:
/mnt # ls torchwood/
bin  boot  dev  etc  home  lib  media  mnt  opt  proc  root  run  sbin  sys  tmp  usr  var


and the root cause seems some mounting are not followed :

One which is working :
Code:
laurent@torchwood /var $ df -h /var/lib/portage/
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sda2           73G     54G   17G  77% /var

and I got good result
Code:
PSet /mnt/torchwood # ls var/lib/portage/
config  home  preserved_libs_registry  world  world_sets


But now :
Code:

laurent@torchwood ~ $ touch /var/tmp/toto
laurent@torchwood /var $ ls -l /var/tmp/
total 0
-rw-r--r-- 1 laurent laurent 0 20 sept. 23:23 toto


I got nothing on the mount point :
Code:

PSet /mnt/torchwood # ls -l var/tmp/
total 0


and unfortunately, it the same for various other directories

Code:
PSet /mnt/torchwood # ls home/laurent mnt
home/laurent:

mnt:
PSet /mnt/torchwood #


Any tip to avoid this situation ?

Thanks

Laurent
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Tue Sep 21, 2021 5:20 pm    Post subject: Reply with quote

Hi

Playing a litlle with sshfs, I could not manage to reproduce the issue with wrong mount point (tried with a regular dir and a bind mount and got the expected result), but testing with and without the follow_symlinks option, I can confirm that changes on source do not appear in sshfs mount when using it for me as well (or maybe as bad ^^).

Not a great help, but got no more to offer.

Note: not anymore on Gentoo, test done on Debian

++
Gi)
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Tue Sep 21, 2021 10:50 pm    Post subject: Reply with quote

Thanks for your tests.
Anothere difference is the source (torchwood) is still running very outdated kernel : 3.4

I'm using a display for which I can't find DTB ... so still stuck on 3.4 :cry:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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