01-07-2015, 06:51 AM
(This post was last modified: 01-07-2015, 06:53 AM by greenisland.)
Thanks for your reply Scott. As best I can tell, it does nothing when I run it from the rc.local file.
I went back and made sure my rc.local file was exactly parallel to the suggested version, and then commented out my fstab line to be sure that was not interfering.
I rebooted, and when it came up, the network share was not connected. (tested by running df from terminal)
Then, from the same terminal, i executed the same command that was in the rc.local (by putting sudo in front).
The first time I ran it I got the same error: "mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)"
The second time I ran the exact same command, it gave no error, and when I check using df, the network share is mounted properly.
i am afraid I am stumped. I prefer this mount -t command instead of using the fstab file, but I must have something set wrong for it to fail the first time through. And of course that does not explain why it succeeds the second time the command is issued.
Thanks again for any suggestions or commentary (aside from my obvious lack of linux skill!) :-)
One more comment: I do appreciate being able to find this thread. I think it is consistent with the targeting of this distribution that a lot of your users are going to want to establish automatic connections to networked machines in a small office environment, and that doesn't seem to be much of a priority on other distributions. I've already found your samba file and instructions VERY helpful rather than just including the standard setup like a lot of distros seem to do. So thanks again.
I went back and made sure my rc.local file was exactly parallel to the suggested version, and then commented out my fstab line to be sure that was not interfering.
I rebooted, and when it came up, the network share was not connected. (tested by running df from terminal)
Then, from the same terminal, i executed the same command that was in the rc.local (by putting sudo in front).
The first time I ran it I got the same error: "mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)"
The second time I ran the exact same command, it gave no error, and when I check using df, the network share is mounted properly.
i am afraid I am stumped. I prefer this mount -t command instead of using the fstab file, but I must have something set wrong for it to fail the first time through. And of course that does not explain why it succeeds the second time the command is issued.
Thanks again for any suggestions or commentary (aside from my obvious lack of linux skill!) :-)
One more comment: I do appreciate being able to find this thread. I think it is consistent with the targeting of this distribution that a lot of your users are going to want to establish automatic connections to networked machines in a small office environment, and that doesn't seem to be much of a priority on other distributions. I've already found your samba file and instructions VERY helpful rather than just including the standard setup like a lot of distros seem to do. So thanks again.