[SOLVED] CIFS mount at boot time fail.

Kernels & Hardware, configuring network, installing services

[SOLVED] CIFS mount at boot time fail.

Postby mooreted » 2010-11-20 19:48

Running Debian stable. I added the following command to rc.local and made it executable:

mount -t cifs -o username=ted,password=computer,uid=mooreted,gid=users "//192.168.1.121/Storage Volume" /mnt/vortex

After rebooting dmesg throws the following error:

[ 21.400697] CIFS VFS: Error connecting to IPv4 socket. Aborting operation
[ 21.400708] CIFS VFS: cifs_mount failed w/return code = -101

However, if I run the command as root after the system boots it works fine.

Been using this method on other distros for over a year. No idea what the problem is.
Last edited by mooreted on 2010-11-22 19:36, edited 1 time in total.
mooreted
 
Posts: 321
Joined: 2007-07-23 03:39

Re: CIFS mount at boot time fail.

Postby peter_irich » 2010-11-20 20:25

I have no problems with a such resources mounting as user.
Place record with it in /etc/fstab with "users" option like
Code: Select all
<resource> <mounting_point> cifs <options> 0 0

and mount it as user by command
Code: Select all
mount <resource>


Peter.
peter_irich
 
Posts: 862
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russia

Re: CIFS mount at boot time fail.

Postby mooreted » 2010-11-20 21:54

The reason I stopped using fstab for this is there are spaces in the filenames so I have to use something like vortex\%40/folders because fstab doesn't like spaces and doesn't respect quotes.
mooreted
 
Posts: 321
Joined: 2007-07-23 03:39

Re: CIFS mount at boot time fail.

Postby mooreted » 2010-11-22 00:49

Well, I'll try the /040 for the spaces in fstab and see if I can get it to work. I was kind of hoping there was a way to get it to work the way I'm used to doing it.

I guess the network is coming up after rc.local, which seems weird to me, but that's what the error is telling me.
mooreted
 
Posts: 321
Joined: 2007-07-23 03:39

Re: CIFS mount at boot time fail.

Postby mooreted » 2010-11-22 19:35

Ok, fstab is working with this entry:

//192.168.1.121/Storage\040Volume /mnt/vortex cifs username=ted,password=computer,uid=mooreted,gid=users 0 0
mooreted
 
Posts: 321
Joined: 2007-07-23 03:39


Return to System configuration

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable