[SOLVED] /etc/fstab not doing what all the docs say it should
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
/etc/fstab not doing what all the docs say it should
We backup our UNIX (methusela old) box to a windows file share that is mounted on a server 2008 r2 box. there is a script that backs up all of our cobol stuff from UNIX to that share.
I can issue a mount command on my RHEL box to point at the 2008 server as such..
sudo mount -t cifs //08server/share /rheldirectory/directory -o username=myusername,password=mypassword
navigate to directory and it lists the backup folders on 08 no problem.
i put //08server/share /rheldirectory/directory cifs username=myusername,password=mypassword 0 0 in fstab and when i reboot its gone.
so obviously i'm missing something. i need to automate the copying of files from the backup to the RHEL box so we can recompile them for testing, eventually we will be solely on the RHEL environment.
and yes if i can get it to work like this i will create a credentials file. but since i'm the only user i'm not worried about people seeing the creds right now.
can you mount the directory with that fstab entry? i.e. "mount /rhelblah/blah" and nothing else? On boot, the netfs service mounts the network shares fairly late in the boot process, to give the network a chance to exist, unlike the conventional local devices which get mounted early doors. So maybe netfs isn't running on boot, which is highly likely if you can mount the directory conventionally after boot.
when i run sudo mount -t cifs yadda yadda it just goes to the next line, no output, which is what it always does if its correct. i can then see the 2k8 share in the target directory.
added _netdev to my options, rebooted, went grocery shopping, just in case i was being impatient, came back, server does not list folders on 2k8 machine, hit mount /rhel/dir and it says its already mounted to 2k8, had to run sudo mount -t yadda yadd to get it to connect where i could see it.
thats entirly possible, i found that if i do mount -a it comes back, so i included that in a script i was writing that runs on reboot. seems to work, now if i could get cobol to behave i'd be golden.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.