View previous topic :: View next topic |
Author |
Message |
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Mon Sep 20, 2021 9:33 pm Post subject: sshfs and remote directories issue |
|
|
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 |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Tue Sep 21, 2021 5:20 pm Post subject: |
|
|
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 |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Tue Sep 21, 2021 10:50 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|