Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

attach drive on network up

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
ntn888
Posts: 9
Joined: 2021-09-05 01:35
Location: sydney
Has thanked: 2 times
Contact:

attach drive on network up

#1 Post by ntn888 »

i'm running debian buster.

i put a script inside /etc/network/if-up.d/

however it fails to attach the s3 drive. if i manually run it it attaches.

Code: Select all

#!/bin/sh

s3fs babutest /mnt/s3mnt -o passwd_file=/root/.pwd-s3fs -o url=https://s3.eu-central-1.wasabisys.com

ntn888
Posts: 9
Joined: 2021-09-05 01:35
Location: sydney
Has thanked: 2 times
Contact:

Re: attach drive on network up

#2 Post by ntn888 »

i did some probing and simplified the script (and worked):

Code: Select all

#!/bin/sh
echo "script run" > /home/user/ifuptest.txt
i suppose something is preventing the wasabi drive when auto running??

ntn888
Posts: 9
Joined: 2021-09-05 01:35
Location: sydney
Has thanked: 2 times
Contact:

Re: attach drive on network up

#3 Post by ntn888 »

no worries, i instead put it onto post-up in "/etc/network/interfaces" and it fired up!

ntn888
Posts: 9
Joined: 2021-09-05 01:35
Location: sydney
Has thanked: 2 times
Contact:

Re: attach drive on network up

#4 Post by ntn888 »

one thing remaining... how could i make the mount user accessible?

ntn888
Posts: 9
Joined: 2021-09-05 01:35
Location: sydney
Has thanked: 2 times
Contact:

Re: attach drive on network up

#5 Post by ntn888 »

found it: -o allow_other
cheers!

Post Reply