Linux beginner here, running suse 11.1. I’ve found a ton of instructions and how to’s on mounting windows shares in linux. However i cant seem to get them mounting at boot after editing fstab.
No, and I’m sure this is a known bug with something. Google your issue and thousands of posts come up - I’ve tried all the fixes (using _netdev option, setting up a crontab with @reboot etc), nothing works.
Here’s the acid test. First, unmount your manual mount. Next, if you do this:
sudo mount -av
Do you get any errors, or is the share mounted? You may need to add a “domain=” option in, and fstab doesn’t like usernames with spaces in them.
But I have the same problem as you. I can do “mount -av” after a reboot, or use a manual mount command, and the share is mounted.
But no matter what, I can’t get it to mount automatically on reboot. Has to be a bug somewhere…
weigy104 wrote:
> Hi there,
>
> Linux beginner here, running suse 11.1. I’ve found a ton of
> instructions and how to’s on mounting windows shares in linux. However i
> cant seem to get them mounting at boot after editing fstab.
>
> My fstab currently looks like this:
>
…]
> It works fine when i mount manually using
>
> mount -t cifs -o username=server_user,password=server_password
> //192.168.1.107/music /home/richard/music
>
> any ideas?
Here’s a diagnostic test that will indicate whether the problem can be tweaked to work: Are the fstab cifs mounts working if you execute this command after booting has finished
sudo mount -a
If that will mount them then there is a workaround that will force them to mount automatically. So, does it work?
Hi Blah99. It was your post that prompted me to throw in my 2 cents. I believe your problem is an error in your crontab entry involving @reboot. It should be a root cron entry and it’s syntax is like this:
@reboot sleep 10;mount -a
Notice that’s all on one line.
If it doesn’t work then take the sleep 10 to sleep 15 and then to 20, but 10 should work. If it still doesn’t work, check your crontab setup, including whether the daemon is running (Yast → System → Services Runlevels → cron). You can check the root crontab with this command in a console after you su to root:
Hello, everybody!
I have absolutely same problem: shared folder doesn’t mount automatically.
My system is Linux openSuse 11.1 x86. (Samba 3.2.4). I try to mount the WindowsXP shared folder //desktop/D$ to /home/d.jurin/D (0777). As a first step, I’ve tried to use //etc/samba/smbfstab configuration file.
No, not tested either.
But I thought that since it seems to work when the user is logged and not before that, the system might not be aware of that user existing… or something like that
If the server //desktop has a fixed IP, I’ve found that using the IP address rather than the netbios name can solve the issue for some client machines.
But if not, the crontab method will certainly work for you.
The problem is that the fstab mounts execute before the network is up. That’s the reason for the “_netdev” option. (_netdev stops the execution until the network is up). But obviously, _netdev doesn’t pause the mount for long enough for some computers – so that’s the bug. But what does work is the crontable entry:
@reboot sleep x;mount -a
because you can adjust x seconds up until it’s absolutely certain the network is up and then the fragment “mount -a” must work.
Probably time for a bug report – it’s been a problem on and off for ppl since the cifs mount was introduced in place of smbfs in openSUSE. But it doesn’t strike everybody, just some.
yes, i have tried static IP, no results. About crontab method, it’s not clear for me, how exactly to place string “@reboot sleep 10;mount -a” to the cron table. Could you please explain me how to do it?
So, this propblem looks like the openSuse bug, doesn’t it?