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. Thanks, TruANT Quote:
|
Try changing the Windows' partition like this
Quote:
(removing the #) the line that has the info for the Win partition?!:D I don't think that having problems probing the ethernet is affecting this |
Quote:
the commented one is for a partition I havent got around to formatting yet. thanks ps, just to clear up any confusion, media/media is a samba share. |
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... Quote:
And if so, what scripts do I edit? Thanks, TruANT |
I think it would be easyer just to remove that line from fstab and make a script like
Code:
mount //192.168.1.100/media /media/media -t cifs -o username=[username],password=[password],dmask=777,fmask=777 Code:
update-rc.d [script name] start 20 2 3 4 5 |
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?
Thanks again! |
I tried the following:
"sudo gedit /etc/fstab" [Removed The mount entry for the share in question] "sudo gedit /etc/init.d/mediashare" Quote:
"sudo update-rc.d mediashare start 20 2 3 4 5 ." 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. |
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 |
Binary, you are uber kewl...thanks!! That worked like a charm!
|
All times are GMT -5. The time now is 02:43 AM. |