FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help!
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help!
Hey all,
Using 6.06 LTS (Dapper Drake), and have a small problem, that I couldn't resolve on my own.
When the computer boots up, It doesnt give any errors, but fails to mount my windows share!
As soon as I log in, I can drop to a term and "sudo mount -a" and it mounts with out any problems.
I am to assume that when it trys to mount that share during boot, it hasnt yet activated ETH0, which would be the only thing I can think of that would make it fail...but I don't know where to check that (im kind of a Gnoob).
Attached is my fstab, please tell me what I should do to allow my windows share to mount @ boot.
Update:
I noticed that right before gdm starts up, there is a flash of text across the top of the console login screen. I CNTL+ALT+F1'ed over and saw what it said...
I am still assuming that NETWORKING is not active when this share attempts to mount. Is there any easy way I can change the runlevels so that networking starts before smb / fstab items are mounted?
KEWL! thanks for the tip. I know nothing about scripts in linux though ( Again...Linux Gnoob, Windows Pro ), should i put the #!/bin/sh at the beginning. or just have an empty file (EXE to Root) that looks like the code you placed on top?
With the above, I still got the same error, so I tried the following:
"sudo update-rc.d -f mediashare remove"
"sudo update-rc.d mediashare start 90 2 3 4 5 ."
I rebooted and still got the same error, and the share isnt mounted.
What do I do now...I'm so confused!
PS, just to clarify, when i excecute the following:
"sudo /etc/init.d/mediashare"
the share mounts as expected.
Last edited by TruANTOlogy; 06-19-2006 at 07:45 PM.
Hmm, that's strange.
As long as networking is up and samba is started it should work.
Maybe you could try removing the links in /etc/rc*.d and just add the line
Code:
mount //192.168.1.100/media /media/media -t cifs -o username=***********,password=*******,dmask=777,fmask=777
to /etc/rc.local, that always runs at the end of bootup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.