LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2017, 01:50 PM   #1
Slacker133701
LQ Newbie
 
Registered: Jul 2016
Distribution: Slackware64 14.2
Posts: 12

Rep: Reputation: Disabled
Question Arch Linux - Automount CIFS Shares with fstab


Hello,

I cannot seem to figure out why this share will not automatically mount on boot.

//192.168.1.4/music /mnt/pandora/Music cifs credentials=/home/mike/.smbcredentials,uid=1000,gid=1000,iocharset=utf8,sec=ntlm 0 0

I am running Arch Linux with i3wm. The share is not even accessible pre/post launching i3

I have tried _netdev I thought maybe it was because there was a lag in the networking that did not help.

Everything mounts fine if I do "sudo mount -a "

How do I check the logs for this? I looked into /var/logs/journal but could not find anything.

I tried also using x-systemd.automount however this WORKS but it only works when I try to access the path. I need these paths readily available upon boot.

What am I doing wrong?!

Thanks in advance,
Slacker133701
 
Old 07-04-2017, 02:18 PM   #2
WFV
Member
 
Registered: Apr 2012
Location: CA
Distribution: Arch
Posts: 169

Rep: Reputation: Disabled
I'm not familiar with cifs mounts or network mounts, but
Quote:
Everything mounts fine if I do "sudo mount -a "
have you checked mtab after running that command? then copy the mtab entry for that mount to fstab?
 
Old 07-04-2017, 02:30 PM   #3
Slacker133701
LQ Newbie
 
Registered: Jul 2016
Distribution: Slackware64 14.2
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hmm, this does not work has it comes up with invalid arguments when sudo mount -a after using mtabs contents.

I'm guessing it has to do with the network possibly.

What logs should i be looking at?

I enabled systemctl enable network-online.target but _netdev does not seem to do anything.
 
Old 07-04-2017, 02:49 PM   #4
Slacker133701
LQ Newbie
 
Registered: Jul 2016
Distribution: Slackware64 14.2
Posts: 12

Original Poster
Rep: Reputation: Disabled
that is journalctl output

Code:
Jul 04 11:32:30 mm systemd[1]: mnt-pandora-Music.mount: Mount process exited, code=exited status=32
Jul 04 11:32:30 mm systemd[1]: Failed to mount /mnt/pandora/Music.
Jul 04 11:32:30 mm systemd[1]: mnt-pandora-Music.mount: Unit entered failed state.
Jul 04 11:34:05 mm systemd[1]: Mounting /mnt/pandora/Music...
Jul 04 11:34:05 mm systemd[1]: mnt-pandora-Music.mount: Mount process exited, code=exited status=32
Jul 04 11:34:05 mm systemd[1]: Failed to mount /mnt/pandora/Music.
Jul 04 11:34:05 mm systemd[1]: mnt-pandora-Music.mount: Unit entered failed state.
 
Old 07-04-2017, 03:37 PM   #5
Slacker133701
LQ Newbie
 
Registered: Jul 2016
Distribution: Slackware64 14.2
Posts: 12

Original Poster
Rep: Reputation: Disabled
This has been SOLVED!

sudo systemctl disable dhcpcd
sudo pacman -S NetworkManager
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
Reboot
has solved this issue!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some apps hangs if fstab automount shares not present on boot razor7 Linux - Desktop 3 10-19-2016 12:26 AM
[SOLVED] strange fstab cifs automount issue aagaag Linux - Newbie 3 08-31-2014 11:56 AM
Re-mounting fstab cifs shares with crontab every 30 seconds? tstein Linux - Newbie 1 08-12-2012 04:09 PM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration