autofs for armv7 ?

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

autofs for armv7 ?

Postby Lestrad » Fri Aug 06, 2021 7:33 am

Hello. I'm having trouble staying connected to a cifs share and I want to try mounting it with autofs. But I can't find a package for it. I've been trying to connect to http://tardis.tiny-vps.com/ for a whole day but it seems to be down. Can anybody help me find a package?

TIA
Lestrad
 
Posts: 42
Joined: Sun Oct 27, 2019 8:02 pm

Re: autofs for armv7 ?

Postby graysky » Fri Aug 06, 2021 9:36 am

graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: autofs for armv7 ?

Postby Lestrad » Fri Aug 06, 2021 2:08 pm

$this->bbcode_second_pass_quote('', 'R')e: autofs for armv7 ?

Postby graysky » 06 Aug 2021, 10:36
Try https://wiki.archlinux.org/title/Fstab# ... th_systemd

I tried that - setting up automount in fstab - and it seemed to be working fine. The share would unmount after 1 minute of no activity and mount instantaneously when I ls'd the mount point. BUT after I cd'd into the actual mount point directory (/mnt/Work), the share got lost again just like it does when it's mounted at boot. But now it throws a "No such device" error instead of "Host is down." Then when I try to remount it I get the "No such file or directory" error, which is what was happening before.

When I do systemctl status mnt-Work.mount
I get:
$this->bbcode_second_pass_code('', 'Warning: The unit file, source configuration file or drop-ins of mnt-Work.mount changed on disk. Run 'systemctl daemon-reload' to reload units.')
But when I run 'systemctl daemon-reload' nothing changes. The status message includes the last time the share was mounted,
$this->bbcode_second_pass_code('', 'août 06 14:39:47 alarm systemd[1]: Mounting /mnt/Work...
août 06 14:39:47 alarm systemd[1]: Mounted /mnt/Work.')
but not the automatic unmount after one minute, which it was showing every time
$this->bbcode_second_pass_code('', 'août 06 14:00:52 alarm systemd[1]: Mounting /mnt/Work...
août 06 14:00:52 alarm systemd[1]: Mounted /mnt/Work.
août 06 14:01:52 alarm systemd[1]: Unmounting /mnt/Work...')
(at least 10 tries) until I cd'd into the mount point. I should add that I can connect to the share with no problem with smbclient. Please let me know if you have any ideas.
Lestrad
 
Posts: 42
Joined: Sun Oct 27, 2019 8:02 pm

Re: autofs for armv7 ?

Postby graysky » Fri Aug 06, 2021 2:31 pm

I don't have much experience with samba exports nor with autofs vs systemd so I can't help beyond providing that wiki link. I use NFS all the time and I use systemd's automount in /etc/fstab to manage it without issue.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: autofs for armv7 ?

Postby Lestrad » Fri Aug 06, 2021 3:30 pm

$this->bbcode_second_pass_quote('', 'R')e: autofs for armv7 ?

Unread postby graysky » 06 Aug 2021, 15:31
I don't have much experience with samba exports nor with autofs vs systemd so I can't help beyond providing that wiki link. I use NFS all the time and I use systemd's automount in /etc/fstab to manage it without issue.


Thanks! I'd love to try to set up the share as NFS, but Windows 7 Ultimate won't let me do it. It seems it can handle NFS as a client, but not as a host.

Anyway it's staying connected longer. It's when I actually cd into the share's mount point directory and then not do anything that it seems to screw up.

Thanks again! Maybe someone else has an idea. To me it looks as if the CIFS VFS has been told the host is down and refuses to try to connect again.
Lestrad
 
Posts: 42
Joined: Sun Oct 27, 2019 8:02 pm

Re: autofs for armv7 ?

Postby Lestrad » Fri Aug 06, 2021 4:48 pm

$this->bbcode_second_pass_quote('', 'p')ostby unformatted » 06 Aug 2021, 16:33
autofs has been moved to AUR, see https://aur.archlinux.org/packages/autofs/

I tried to install that and it told me it's not compatible with armv7...
Lestrad
 
Posts: 42
Joined: Sun Oct 27, 2019 8:02 pm
Top

Re: autofs for armv7 ?

Postby graysky » Fri Aug 06, 2021 4:51 pm

You can probably just add the -A switch to ignore the Arch and see if it builds but guessing that systemd is more modern and better way.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: autofs for armv7 ?

Postby graysky » Fri Aug 06, 2021 4:51 pm

You can probably just add the -A switch to ignore the Arch and see if it builds but guessing that systemd is more modern and better way.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: autofs for armv7 ?

Postby Lestrad » Fri Aug 06, 2021 5:08 pm

$this->bbcode_second_pass_quote('', 'b')y graysky » 06 Aug 2021, 17:51
You can probably just add the -A switch to ignore the Arch and see if it builds but guessing that systemd is more modern and better way.

So makepkg -A? Didn't know about that. I may try it. Systemd seems to be working except when I'm acutally in the mount point dir. I'm watching it now.
Lestrad
 
Posts: 42
Joined: Sun Oct 27, 2019 8:02 pm
Top

Re: autofs for armv7 ?

Postby unformatted » Sat Aug 07, 2021 8:46 am

Here's what I tried:

$this->bbcode_second_pass_code('', '
[user@PC19 autofs]$ makepkg -siA
==> Making package: autofs 5.1.7-1 (Sat 07 Aug 2021 09:56:37 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
[sudo] password for user:
resolving dependencies...
looking for conflicting packages...

Packages (7) bind-9.16.19-1 c-ares-1.17.1-1 cyrus-sasl-gssapi-2.1.27-5
libmaxminddb-1.6.0-1 python-ply-3.11-7 rpcsvc-proto-1.4.2-1
sssd-2.5.2-1

Total Download Size: 4.10 MiB
Total Installed Size: 14.88 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
libmaxminddb-1.6... 21.9 KiB 10.6 KiB/s 00:02 [######################] 100%
python-ply-3.11-... 73.2 KiB 66.6 KiB/s 00:01 [######################] 100%
bind-9.16.19-1-a... 1722.4 KiB 1356 KiB/s 00:01 [######################] 100%
c-ares-1.17.1-1-... 182.0 KiB 188 KiB/s 00:01 [######################] 100%
cyrus-sasl-gssap... 19.6 KiB 19.4 KiB/s 00:01 [######################] 100%
sssd-2.5.2-1-armv7h 2.1 MiB 2.02 MiB/s 00:01 [######################] 100%
rpcsvc-proto-1.4... 56.4 KiB 72.3 KiB/s 00:01 [######################] 100%
Total (7/7) 4.1 MiB 495 KiB/s 00:08 [######################] 100%
(7/7) checking keys in keyring [######################] 100%
(7/7) checking package integrity [######################] 100%
(7/7) loading package files [######################] 100%
(7/7) checking for file conflicts [######################] 100%
(7/7) checking available disk space [######################] 100%
:: Processing package changes...
(1/7) installing libmaxminddb [######################] 100%
Optional dependencies for libmaxminddb
geoip2-database: IP geolocation databases
(2/7) installing python-ply [######################] 100%
(3/7) installing bind [######################] 100%
(4/7) installing c-ares [######################] 100%
(5/7) installing cyrus-sasl-gssapi [######################] 100%
(6/7) installing sssd [######################] 100%
(7/7) installing rpcsvc-proto [######################] 100%
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
Creating group named with gid 40.
Creating user named (BIND DNS Server) with uid 40 and gid 40.
(2/5) Reloading system manager configuration...
(3/5) Creating temporary files...
(4/5) Arming ConditionNeedsUpdate...
(5/5) Reloading system bus configuration...
==> Retrieving sources...
-> Downloading autofs-5.1.7.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 1741 0 --:--:-- --:--:-- --:--:-- 1760
100 320k 100 320k 0 0 1132k 0 --:--:-- --:--:-- --:--:-- 1132k
-> Downloading autofs-5.1.7.tar.sign...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 1648 0 --:--:-- --:--:-- --:--:-- 1653
100 833 100 833 0 0 4952 0 --:--:-- --:--:-- --:--:-- 4952
==> Validating source files with sha256sums...
autofs-5.1.7.tar.xz ... Passed
autofs-5.1.7.tar.sign ... Skipped
==> Verifying source file signatures with gpg...
autofs-5.1.7.tar ... FAILED (unknown public key E7677380F54FD8A9)
==> ERROR: One or more PGP signatures could not be verified!
')

Obviously an error with a key import which is also discussed in the AUR package page comments.

That leaves the question wether it's a good idea to try to install autofs from AUR on armv7. I have about 14 Pi's (and counting..) which all use autofs to connect to my NFS server and sometimes USB storage devices. Even if I'm able to solve this key thing, what will happen with the next version on AUR, will it still be possible to build for armv7?

So I guess it's back to the drawing board and try to use systemd. I think I can manage the NFS, not sure about removable USB storage though.
unformatted
 
Posts: 121
Joined: Tue Mar 09, 2021 5:23 pm

Next

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 10 guests