Ricky Ford

Tech Tips & Life Stuff

Categories

Creations

Twitter: @rickylford

@MurderSmall Your podcast is amazing. I usually try and find things that I hate about a podcast to justify not list… twitter.com/i/web/status/1…
June 20th, 2019

@JaytheC0mic @Hayleigh121696 @NthngLeftToBurn @Boogie2988 He got the date wrong by over 25 years. He made this shit… twitter.com/i/web/status/1…
May 27th, 2019

All #Dauntless servers are full. My position in queue? 70,000. FML. For the love of this great game, please get you… twitter.com/i/web/status/1…
May 25th, 2019

I recently began playing around with Fedora and am actually enjoying it quite well. One thing I noticed, however, is that upon booting the camera, it is failing to mount my CIFS shares because the NetworkManager will simply not wait for the network to actually be ready before processing the CIFS shares. After a ton of research I finally found a resolution.

Under su conditions, create a file called, "really-wait-online.service" inside of "/etc/systemd/system". Inside of this file, include the following text:

[Unit]
Description=Really wait for the network
Requisite=NetworkManager.service
After=NetworkManager.service
Wants=network.target
Before=network.target network-online.target

[Service]
Type=oneshot
ExecStart=/bin/bash -c "until ifconfig | grep 'inet 10.1'; do continue; done"
TimeoutSec=20

[Install]
WantedBy=multi-user.target

Now, you're going to need to know what your internal IP address scheme is. As mentioned above, mine is 10.1.*.*. Most home networks are 192.168.*.* - be sure you know which one yours is, as we will only need the first two octets.

You need to edit the "ExecStart=" line so that after "ifconfig | grep 'inet" you type your first two IP address octets. Also make a manual edit so that the "ExecStart=" line is ALL ON ONE LINE. I cannot stress that enough. WordPress is a bit ridiculous in that it drops "continue; done'" to the next line, however that needs to be moved back up to the line before it, so that it follows directly after "'10.1'; do". If you do not move that back up, the daemon will process it accordingly and break on bootup. One last bit of edits you might need to make include modifying the quote symbols to actual quote symbols (if you copy/pasted the above instead of manually typing it out). WordPress is stupid in that it also modifies quotes to being the italicized quotes (not sure what the actual name of them are, and too lazy to look it up).

Once you've created this file, go ahead and issue "systemctl enable really-wait-online.system" in the terminal and then reboot the computer.

After your computer comes back up, you should be able to cd into the mount directory of your CIFS share and it should now show up without issue.

Posted on October 29th, 2016 by Ricky Ford in Technology.

Updated on October 10th, 2018 at 9:11 AM.

https://www.rickylford.com/technology/fedora-not-mounting-cifs-shares-at-boot/

Post Comment

Comments (0)

No comments have been posted to this article yet.

© 2011-2019 www.rickylford.com | All Rights Reserved.