Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I've been setting up Plex on an ASUS Tinkerboard, part of the tutorial I'm following directs me through setting up network shares. The issue I'm having is when I get to setting up a permanent network share.
Tutorial is below...
sudo su
apt install cifs-utils -y
mkdir -p /mnt/shares/media
# mount a public network share...
mount.cifs //192.168.1.199/share1/ /mnt/shares/media/
# or mount a private network share with credentials
mount.cifs //192.168.1.199/share1/ /mnt/shares/media/ -o user=user1,pass=user1password
# mount a share at system boot (preferred)
echo "username=user1" >> ~/.smbcredentials
echo "password=user1password" >> ~/.smbcredentials
chmod 600 ~/.smbcredentials
echo "//192.168.1.199/share1 /mnt/shares/media cifs credentials=/root/.smbcredentials,_netdev 0 0" >> /etc/fstab
exit
Now when I use the command
mount.cifs //192.168.1.199/share1/ /mnt/shares/media/
Everything works fine, but obviously this don't last after a reboot. (please note, I've not bothered including my own shares, here, but aside from changing the names and the IP address, the path structure looks the same.)
However the instructions for a permanent share will not work. Hoping someone might be able to advise.
Last edited by haemogoblin; 10-02-2022 at 05:10 PM.
However the instructions for a permanent share will not work. Hoping someone might be able to advise.
Did you, in source location for those instructions, read the part about replacing "user1" with the real users login, and "user1password" with the password for that user?
At this point you might want to share with us the contents of your /etc/fstab file so we can take a look.
You might also want to review the location and contents of that credential file.
Finally: why are you using a CIFS mount? That is the Microsoft way, and I tend to avoid using anything that Microsoft can break.
Per this article, you can enable automounting of a Samba share by adding it to your /etc/fstab file.
Hola Frank. If you check the original post, he has steps to add that mount to /etc/fstab. It is uncertain if these have been implemented properly, but they are in there.
So I've been setting up Plex on an ASUS Tinkerboard, part of the tutorial I'm following directs me through setting up network shares. The issue I'm having is when I get to setting up a permanent network share.
However the instructions for a permanent share will not work. Hoping someone might be able to advise.
Shouldn't /etc/fstab end with a blanc line?
It was at least in "the old days" and I still have the habit. But I'm not sure.
Anyway, try to add a blanc line, reboot and watch the result. Doesn't harm...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.