LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-07-2016, 04:41 AM   #1
anon247
Member
 
Registered: Sep 2012
Distribution: Neon (atm)
Posts: 44

Rep: Reputation: Disabled
Weird fstab partial mounting. Manually works fine. Likely pebcak error.


Hiya,

I'm pretty new, and using KDE Neon. I've been mucking around with systemd and fstab and i've decided for now to just use fstab and not use systemd .mount units because it confused me too much at this stage of my learning (and after faffing about for half a day with it).

So, i've just gone a traditional fstab entry. My problem is that i login and when i open Dolphin, the IP address/share of what i'm trying to mount shows up green (as opposed to orange when it's not mounted) but when i click on it - it is empty. Similarly if i go into the location i assigned the mount - no files/folders.

fstab:
Code:
//192.168.1.3/Apps  /home/[username]/Apps  cifs  user=[username],password=[password],uid=1000,gid=1000 0 0
When i mount manually it all works perfectly normally - i can see my files/folders in the location i expect them to be. Using:
Code:
sudo mount -t cifs //192.168.1.3/Apps /home/[username]/Apps -o user=[username],password=[password],uid=1000,gid=1000
I'm at a loss as to what i'm doing wrong.

Help appreciated Thanks.
 
Old 09-07-2016, 05:57 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
A google search for ip address fstab cifs produced this:

http://askubuntu.com/questions/15712...-share-on-boot

Can you try the proposed solution?
 
Old 09-07-2016, 07:08 AM   #3
anon247
Member
 
Registered: Sep 2012
Distribution: Neon (atm)
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
A google search for ip address fstab cifs produced this:

http://askubuntu.com/questions/15712...-share-on-boot

Can you try the proposed solution?
Thanks for the helping hand I've been Googling like mad and i hadn't come across that page. I should remember to use DuckDuckGo for these sorts of things because Google has a habit of narrowing results - the filter bubble.

Anyway, the only thing different in that post to what i'd tried before was adding domain=workgroup. I had tried using the hidden credentials file before but i thought to remove it from my fstab to eliminate that as being a source of the issue - perhaps i've been doing that wrong (but i don't think so based on that link).

So anyway i made a new .nascreds file and chmodded it, including the workgroup this time. I did a mount -a and presto it all worked. But remember manually doing it had always worked. I rebooted and instead of getting nothing in the folders i get a big red error:

Code:
An error occured while accessing Apps on 192.168.1.3 the system responded: mount: only root can mount //192.168.1.3/Apps on /home/me/Apps
One thing i noticed though is when i do $ id - there is 126 sambashare - do i need to use this anywhere instead of uid/gid=1000 which is my id? The entry "uid=shareuser,gid=sharegroup" in that page made me think i shouldn't be using 'my' id.

Last edited by anon247; 09-07-2016 at 07:11 AM.
 
Old 09-07-2016, 07:48 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Oh well, some progress perhaps. I have to say that I'm out of my depth here and hoping that someone more knowledgeable will step in.

In the meantime, what does your fstab currently look like?

Also, did you install cifs-utils?
 
Old 09-07-2016, 08:20 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The system is trying to mount the remote filesystem before the network is up and therefore fails. Try adding the _netdev option which says to wait.
 
Old 09-07-2016, 04:31 PM   #6
anon247
Member
 
Registered: Sep 2012
Distribution: Neon (atm)
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga
Also, did you install cifs-utils?
Sorry, i missed that earlier. Yes - i have done that.


Quote:
Originally Posted by michaelk View Post
The system is trying to mount the remote filesystem before the network is up and therefore fails. Try adding the _netdev option which says to wait.
Sadly that didn't help. Same permissions issue.

Should i note that /home is encrypted? Does that make any difference? Perhaps my .nascreds file should be placed somewhere other than /home? If recommended i'll try that when i get home.
 
  


Reply



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
HostAPD not starting automatically but works fine manually Ali3n0id Linux - Software 3 03-04-2015 04:20 PM
\vi/etc/fstab works fine . vi /etc/fstab throws bash command not found in Rescue mode jsaravana87 Linux - Server 1 05-13-2013 02:08 PM
Same user is fine on shell, not fine from Apache, weird.. demia Linux - Server 4 04-30-2009 01:09 AM
Mounting XP Network Drive on Linux machine works manually but not on boot up? tcarr Linux - Networking 6 12-27-2008 01:32 PM
Broblem mounting an smbfs in fstab without username/pass and weird names polemon Linux - Networking 6 10-25-2005 12:17 PM

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

All times are GMT -5. The time now is 08:58 PM.

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
Open Source Consulting | Domain Registration