seduction
Language:
EN
DE
Siduction Forum
»
Siduction Forum
»
Scripting & Kernelhacking
»
Scripting & Kernelhacking (EN)
»
script that mounts NAS with nfs only when availble
manual
news
wiki
bugs
git
gallery
packages
download
donate
imprint
Advanced search
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
2021/03/05, 18:01:03
1 Hour
1 Day
1 Week
1 Month
Forever
Links
Debian Transitions
New/Byhand
Distrowatch
Google+
Help
Help
Contact
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: script that mounts NAS with nfs only when availble (Read 6564 times)
0 Members and 1 Guest are viewing this topic.
Lanzi
User
Posts: 1.674
script that mounts NAS with nfs only when availble
«
on:
2020/04/29, 11:12:43 »
I do not know if this is complicated. Maybe it is not.
My NAS is sometimes switched off, but usually switched on.When I start one of my other computers it would be cool, if the mount the NAS if it's witched on and then mount it (i use nfs, because it seems the easiest and I do not have windows, so no need for samba).
i mount my nas with
Code:
[Select]
mount 192.168.178.12:/Multimedia /home/user/NAS
Any ideas how I could do that?
Logged
Carnophage
User
Posts: 21
Re: script that mounts NAS with nfs only when availble
«
Reply #1 on:
2020/04/29, 12:32:09 »
I use systemd's automount options for something similar + auto unmount after idle, I configured mine based on
https://wiki.archlinux.org/index.php/fstab#Automatic_unmount
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Siduction Forum
»
Siduction Forum
»
Scripting & Kernelhacking
»
Scripting & Kernelhacking (EN)
»
script that mounts NAS with nfs only when availble