SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-06 17:39:00

kwukduck
New Member
Registered: 2012-11-06
Posts: 5

Windows share not mounted at boot + ls issue

Hello,

I'm new to #! and so far i really like it.
I ran into an issue trying to permanently mount a windows share using fstab
I tested this on linux-mint as well and it has the same problem, so i suppose it's not a bug within crunchbang but rather i'm doing something very wrong...

i added this line to /etc/fstab

//server/share /home/user/sharefiles cifs username=USER,password=PASS,file_mode=0777,dir_mode=0777 0 0

i tested the new fstab with 'sudo mount -a' and indeed the share was mounted and showed content in thunar.

so i rebooted the system, i noticed nothing got mounted...
but after i run 'sudo mount -a' again the share gets mounted and shows up in thunar... i also tried using a credentials file instead of user/pass, but no change.

another thing i noticed is that even though the files show up in thunar, the terminal does not show any files or directories in the mountpoint when i 'ls' or 'ls -al', however i AM able to 'cd' into subfolders of the share from the mountpoint and after i cd back to the mountpoint and 'ls' again it shows everything...

so i'm having two issues here.
- the network share not mounting at boot from fstab
- the mountpoint not showing any content with 'ls' after it gets mounted manually with 'mount -a', but does show content in thunar or midnight-commander.

Any help would be highly appreciated.

Offline

Be excellent to each other!

#2 2012-11-06 19:13:25

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Windows share not mounted at boot + ls issue

I have no personal experience with windows shares, but perhaps this helps?

Offline

#3 2012-11-06 20:20:23

EnochRoot
#! Junkie
From: London, UK
Registered: 2011-10-15
Posts: 285
Website

Re: Windows share not mounted at boot + ls issue

Not much help, I've noticed the same issue on my box, it used to work, but at some point stopped working - exact same symptoms as you, a sudo mount works, but entry from /etc/fstab doesn't work at boot time - my supposition is that filesystem being mounted before network established etc for some reason. Am going to investigate autofs which should do the same thing in a different way, but not looked at it yet.

However once mounted ls etc works fine, suggesting something else going on with your problem...

Last edited by EnochRoot (2012-11-06 20:55:43)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo