Shutdown and reboot troubles with a smbfs or cifs mounted Samba share

Bug #212019 reported by mb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

I have Problems with reboot oder shutdown when a smb share is mounted in fstab

what to do to reproduce this:
1. install ubtuntu 8.04 beta and update it with latest packages from the repos
2. install smbfs
3. # mkdir /media/Fileserver
4. Add to /etc/fstab: //server/fileserver /media/Fileserver smbfs (or cifs) defaults,uid=1000,gid=1000 0 0
5. # mount -a
6. your SMB share will appear on Desktop
7. shutdown or reboot your system
8. it will hang and you will get something like “CIFS VFS: server not responding. No response for cmd 50 ...”

this worked on my mashines to fix it:

cd /etc/rc0.d

# mv S31umountnfs.sh K15umountnfs.sh

cd /etc/rc6.d

# mv S31umountnfs.sh K15umountnfs.sh

But it is really annoying to do all those steps on a new PC setup. (an we have lot of them with ubuntu)

It would be great to have a easier and faster way to create network smb filesystem on a client PC.

Regards
Maximilian

Revision history for this message
Jim (jdblaich) wrote :

Does not appear to work under 7.10.

Also, what is the uid=1000,gid=1000?

Don't you have to pass it credentials pertaining to username and password?

But I totally agree. I hate to use the word pathetic, but this whole process just lacks the "human being" aspect of dealing with computing. If anything they should take the approach that anything that takes the "human being" aspect of the equation should become the highest priority. I saw some requests in brainstorm.ubuntu.com that were performance related for real geeky stuff. Wrong.

Revision history for this message
Jim (jdblaich) wrote :

OK, I figured out both.

The uid is the user ID which is always 1000 for the current user

The gid is the users group ID and it is always 1000 for the default group the user is in.

I was using the credentials with a pointer to a hidden text file. This file was very insecure. Good to be able to do it this way and have it now gone.

As far as it not working under 7.10. The first reboot it won't work. But under subsequent reboots it does work. Certainly makes shutting down so much more pleasant.

Revision history for this message
mb (maxbloemer) wrote :

credentials is not needed if Samba Server has:

 security = share
and
 guest = ok
 guest only = yes

Jim: What do you mean with working/now working? Shutdown with or without walkaround (S31umountnfs.sh stuff) enabled?

Revision history for this message
Laurens Simonis (laurens.s) wrote :

I have the same problem as the original bugreport, although on an earlier version of ubuntu. I will try http://ubuntuforums.org/showthread.php?t=293513 later, as that might fix it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.