You are not logged in.

#1 2008-07-31 19:59:39

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Strange CIFS/fstab problem

Hi,

I have the following defined in fstab:

//192.168.1.20/media1 /mnt/media1 cifs uid=500,username=jack,password=X,rw 0 0
//192.168.1.20/media2 /mnt/media2 cifs uid=500,username=jack,password=X,rw 0 0
//192.168.1.20/media3 /mnt/media3 cifs uid=500,username=jack,password=X,rw 0 0
//192.168.1.20/media4 /mnt/media4 cifs uid=500,username=jack,password=X,rw 0 0

During boot, these all fail with:
mount error = 113 : No route to host

More details in errors.log:

Jul 31 20:47:55 tmain CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Jul 31 20:47:55 tmain CIFS VFS: cifs_mount failed w/return code = -113
Jul 31 20:48:01 tmain CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Jul 31 20:48:01 tmain CIFS VFS: cifs_mount failed w/return code = -113
Jul 31 20:48:07 tmain CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Jul 31 20:48:07 tmain CIFS VFS: cifs_mount failed w/return code = -113
Jul 31 20:48:07 tmain CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Jul 31 20:48:07 tmain CIFS VFS: cifs_mount failed w/return code = -113

However if once im all booted up i type mount -a everything mounts fine.

They are mounting after the network is started, so i dont know why it cant find a route to the host? I have no firewalls on or anything.

Any ideas?

Jack

Last edited by tntcoda (2008-07-31 20:00:07)

Offline

#2 2008-07-31 23:14:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Strange CIFS/fstab problem

Are you using DHCP on the network interface on this box? Can you post your DAEMONS line from rc.conf? And the output from `ifconfig -a` please? smile

Offline

#3 2008-08-01 00:21:08

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: Strange CIFS/fstab problem

thanks for the reply, Im not using DHCP no, just configured eth0 with static details.

ifconfig output:

[jack@tmain ~]$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:50:8D:9F:F2:C8  
          inet addr:192.168.1.15  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8dff:fe9f:f2c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:576053 errors:0 dropped:0 overruns:0 frame:0
          TX packets:355439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:803838693 (766.6 Mb)  TX bytes:31122263 (29.6 Mb)
          Interrupt:23 

eth1      Link encap:Ethernet  HWaddr 00:50:8D:9F:F2:C9  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:22 Base address:0x2000 

eth2      Link encap:Ethernet  HWaddr 00:1E:E5:29:BD:73  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0x4000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:192 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4288 (4.1 Kb)  TX bytes:4288 (4.1 Kb)

rc.conf:

eth0="eth0 192.168.1.15 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)

...

DAEMONS=(syslog-ng network netfs ntpd hal fam alsa crond)

Offline

#4 2008-08-01 07:37:26

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Strange CIFS/fstab problem

http://mandrivausers.org/index.php?showtopic=42519
Another unresolved issue the same by the looks of it...

I know it's not fixing the issue, just fixing the symptom, but can you add `mount -a` to /etc/rc.local to get them to mount?

Offline

#5 2008-08-01 10:23:43

tntcoda
Member
Registered: 2007-07-24
Posts: 115

Re: Strange CIFS/fstab problem

Thanks very much, I would never have narrowed it down to the wireless NIC tongue

If thats the problem I think I will just remove it as it isnt really used.

Offline

#6 2009-07-31 12:22:03

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: Strange CIFS/fstab problem

I recently had the same problem, but now the mounting doesn't even work with mount -a.
My network is configured by DHCP and my /etc/fstab looks like this:

//192.168.0.8/stefan /mnt/buffalo/stefan cifs users,_netdev,defaults,uid=1000,gid=1000,username=stefan,password=qasw12 0 0
//192.168.0.8/share /mnt/buffalo/share cifs users,_netdev,defaults,uid=1000,gid=1000,username=stefan,password=qasw12 0 0
//192.168.0.5/stefan /mnt/workaholic/stefan cifs users,_netdev,defaults,uid=1000,gid=1000,username=stefan,password=stefan 0 0
//192.168.0.5/daten/public /mnt/workaholic/share cifs users,_netdev,defaults,uid=1000,gid=1000,username=stefan,password=stefan 0 0

nearly the same error:

Jul 31 14:06:40 max-musterpc kernel: CIFS VFS: cifs_mount failed w/return code = -113
Jul 31 14:06:46 max-musterpc kernel: CIFS VFS: Error connecting to socket. Aborting operation
Jul 31 14:06:46 max-musterpc kernel: CIFS VFS: cifs_mount failed w/return code = -113
Jul 31 14:06:46 max-musterpc kernel: CIFS: Unknown mount option _netdev
Jul 31 14:06:46 max-musterpc kernel: CIFS VFS: Error connecting to socket. Aborting operation
Jul 31 14:06:46 max-musterpc kernel: CIFS VFS: cifs_mount failed w/return code = -113
Jul 31 14:06:47 max-musterpc kernel: CIFS VFS: Error connecting to socket. Aborting operation
Jul 31 14:06:47 max-musterpc kernel: CIFS VFS: cifs_mount failed w/return code = -512
Jul 31 14:06:47 max-musterpc kernel: CIFS VFS: Error connecting to socket. Aborting operation
Jul 31 14:06:47 max-musterpc kernel: CIFS VFS: cifs_mount failed w/return code = -512

Daemons:

DAEMONS=( @slim @dbus network netfs  @hal @syslog-ng @crond @alsa @samba @cron @mpd @lastfmsubmitd @lastmp )

has anybody an idea how this problem could be solved?

sry for bad english

Offline

#7 2009-08-01 00:27:18

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Strange CIFS/fstab problem

I have something similar as well. It just looks like, when netfs is run, network has been 'completed' but the connection isn't actually up yet. Its not been a big deal, so I generally just mount -a and forget about it.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2009-08-01 14:55:43

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: Strange CIFS/fstab problem

Problem solved, it was a problem with the NAS hmm

Offline

#9 2011-12-16 17:06:35

ironoxid
Member
Registered: 2011-12-16
Posts: 2

Re: Strange CIFS/fstab problem

Check if STP is active on your switch port: more details on http://blog.sviluppoweb.eu/2011/12/16/m … -to-solve/

Offline

#10 2011-12-16 21:36:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,796

Re: Strange CIFS/fstab problem

ironoxid,
Welcome to Arch Linux.  Note that this thread is more than two years old;  I am going to go ahead and close it.  It would be nice had the thread been marked solved.  Oh well.

Our Policy.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB