|
Can anyone help me with running a terminal command on system startup? I want to make it so when the system boots the following command is run: mount -o soft,intr,rsize=8192,wsize=8192 192.168.1.130:/nfs /home/nfs/ which mounts my external NAS to a folder in my hold directory. I have tried a few different methods I found via google, I made a script and added it to the /etc/init.d folder, added it to the rc.local file, added the script to the startup tool in MATE, none of them have worked so far.
|
# ¿ Feb 27, 2016 15:22 |
|
|
# ¿ May 21, 2024 14:33 |
|
I was following through a guide using fstab but in the following line code:
Edit: To clarify when I try the above method it returns the following: code:
Mode 7 Samurai fucked around with this message at 19:33 on Feb 27, 2016 |
# ¿ Feb 27, 2016 19:20 |
|
SurgicalOntologist posted:Going off your command line version, try //192.168.1.130/Public or //192.168.1.130/nfs. Both return "no such file or directory"
|
# ¿ Feb 27, 2016 23:42 |
|
I am apparently bad at linux, I cant seem to get this to work. I am new to Linux so its all partially stuff I sort of understand and a bunch of stuff I dont, haha
Mode 7 Samurai fucked around with this message at 01:58 on Feb 28, 2016 |
# ¿ Feb 28, 2016 01:20 |
|
Thalagyrt posted:Open up /etc/fstab in an editor with sudo, and pop a line in for the path you want to mount. Yeah I think I got the hang of it. I was thinking it worked a different way but after stepping away for a bit and coming back to it I think its working now
|
# ¿ Feb 28, 2016 03:43 |