[SOLVED] Problems mounting shares at boot with fstab
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I have a server running Linux Mint 19.3. It has various directories shared out via Samba. I can access those shares from anything in my house so I think that's good to go.
I have a headless box running Mint 19.2 that is an FTP server that people can log into and it has mounts that point to the 19.3 server box and all is well. Shares on the 19.2 headless FTP server are mounted via fstab:
From the FTP box, Classic cars and Friends works fine. The only problem is the last one... the .253/crap share. 253 is my test Debian 10 box. Here is the SMB.conf file from my Debian 10 test box:
Code:
[crap]
path = /mnt/crap/
read only = yes
guest ok = yes
guest only = yes
map to guest = bad user
I'm sharing out the /mnt/crap folder on the Debian 10 box (192.168.1.253). I can see this share from any and all boxes in my house. But when I try to map it via the fstab file on the headless FTP server, it's not mounting at boot. If I start X on the FTP server and login to the GUI and go to the Network icon, I can see my Debian 10 test box and I can see the 'crap' folder and I can open it up anonymously and see the files inside perfectly. What am I missing with the fstab mounting at boot?
I see this in dmesg on the FTP server when it boots:
Code:
[ 15.257176] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[ 15.263147] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[ 15.270375] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
So I tried adding vers=1.0 for the 'crap' mount and it made no difference. Heck, I get that same error for the other 2 shares and they seem to work fine so maybe that's a red herring?
Please show me the contents of the file "/var/log/boot.log" on your Linux Mint headless server. I'm hoping that will shed some light on why this is happening.
Also does the directory "/mnt/asus_test" even exist? If not, you need to create it manually. (In case you didn't already know that.)
Please show me the contents of the file "/var/log/boot.log" on your Linux Mint headless server. I'm hoping that will shed some light on why this is happening.
Also does the directory "/mnt/asus_test" even exist? If not, you need to create it manually. (In case you didn't already know that.)
Yep, "/mnt/asus_test" exists.
I have a boot.log file in that dir but it's empty. I sorted by timestamp on that dir and here's the newest to oldest (snipped off the very bottom). If you need to see any of these, just let me know.
I might be able to push that day back a few years if I get all this working and replace Mint with Debian considering their (Debian's) slow/stable roll out cadence.
Mint do a Debian version (LMDE4), just Mint + Debian 10 repositories currently (no Ubuntu packages).
It's very stable.
That brings up a very good discussion. I've looked very closely at LMDE 4. As a newbie, I've been struggling the past few days with Samba sharing in Debian 10. In LMDE 4, it's beyond simple..... just right click and share a folder. If prompts you to install Samba and reboot. Making shares read only/full access is just point and click. I guess that is part of the polish the Mint team puts on Debian. I could have given up but I wanted to learn how to do the same in pure Debian. Another weird thing though, when I do the simple/easy sharing in Mint, I don't see any of the shared directories in their smb.conf file so I don't know where they're hiding the magic but hey, Samba sharing works perfectly in Mint and is VERY easy to get going.
I also noticed that when Debian 10 hit, I don't think Mint released LMDE 4 until several months later. When a new version of Debian drops, I'd like to switch to it sooner vs. later.
My last concern with using LMDE 4 is Plex. LMDE (even though it's pure Debian just with an updated Cinnamon desktop and a few other minor tweaks) isn't an officially supported distro according to the mods/devs over on the Plex forums so if I run into problems, I'd like to be using a fully supported distro. ie, Debian.
When doing all this playing around, I would often run testparm and don't recall it ever spitting out some obvious "You did something silly, it will cause problems" type of message on the screen.
As for Thunar, looks like it can be customized a bit in Debian to do some 'right click sharing' type of commands. Will have to look into that. Thanks!!
Hmmm, now that you mention it, I think I did see that. But since it wasn't preceded with an: ERROR ERROR ERROR!!!!!!! THIS IS IMPORTANT AND WILL CAUSE PROBLEMS type of label, I didn't think anything of it. Thought it was just informational.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.