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.
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.
[SOLVED] CIFS mount at boot time fail.
Last edited by mooreted on 2010-11-22 19:36, edited 1 time in total.
-
- Posts: 1403
- Joined: 2009-09-10 20:15
- Location: Saint-Petersburg, Russian Federation
- Been thanked: 11 times
Re: CIFS mount at boot time fail.
I have no problems with a such resources mounting as user.
Place record with it in /etc/fstab with "users" option like
and mount it as user by command
Peter.
Place record with it in /etc/fstab with "users" option like
Code: Select all
<resource> <mounting_point> cifs <options> 0 0
Code: Select all
mount <resource>
Re: CIFS mount at boot time fail.
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.
Re: CIFS mount at boot time fail.
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.
I guess the network is coming up after rc.local, which seems weird to me, but that's what the error is telling me.
Re: CIFS mount at boot time fail.
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
//192.168.1.121/Storage\040Volume /mnt/vortex cifs username=ted,password=computer,uid=mooreted,gid=users 0 0