Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] CIFS mount at boot time fail.

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
mooreted
Posts: 351
Joined: 2007-07-23 03:39

[SOLVED] CIFS mount at boot time fail.

#1 Post by mooreted »

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.

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: CIFS mount at boot time fail.

#2 Post by peter_irich »

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.

mooreted
Posts: 351
Joined: 2007-07-23 03:39

Re: CIFS mount at boot time fail.

#3 Post by mooreted »

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: 351
Joined: 2007-07-23 03:39

Re: CIFS mount at boot time fail.

#4 Post by mooreted »

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: 351
Joined: 2007-07-23 03:39

Re: CIFS mount at boot time fail.

#5 Post by mooreted »

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

Post Reply