PDA

View Full Version : CIFS unmount / shutdown problems


Gsundbrunn
22nd February 2006, 07:40 AM
Hi,

I successfully mount two windows shares during startup with cifs and fstab entry. Works perfectly. But If I do a reboot or a shutdown, the system hangs in th emiddle of the shutdown process with the following message:

"This utility only unmounts cifs filesystems".

I had to power off the PC. Any help appreciated! Do you need more information?

Best regards

Stefan

Jman
24th February 2006, 05:50 AM
You're sure they're cifs, as opposed to smb? I ask because of the error message.

Gsundbrunn
24th February 2006, 07:30 AM

What I do is to mount windows shares in the fstab:

//192.168.1.199/web /mnt/webdev cifs auto,owner,rw,username=stefan,workgroup=nettech,pa ssword=geheim,uid=500,gid=500 0 0
//192.168.1.11/storage /mnt/storage cifs auto,owner,rw,username=stefan,workgroup=nettech,pa ssword=geheim,uid=500,gid=500 0 0

and then - during the shutdown - the above mentioned error occurs every time. Its a litte annoying and - I guess - critical, as i have to power off the pc manually. The system hangs while showing this error. I cannot send a kill or break or whatever.

Best regards

Stefan

Gsundbrunn
24th February 2006, 09:19 AM
Strange for me to see this:

[root@licdev01 stefan]# mount
//192.168.1.11/storage on /mnt/storage type cifs (rw,mand,nosuid,nodev)

And then:
(rw,fd=4,pgrp=1889,minproto=2,maxproto=4)[root@licdev01 stefan]# umount /mnt/storage
This utility only unmounts cifs filesystems.
This utility only unmounts cifs filesystems.

???? Thats what i really donīt understand - the system says, that the mounted share is type=cifs, but if I try to unmount it, I got the message that only cifs filesystems can be unmounted.

Need help please :-)

Regards

Stefan

gaptag
26th February 2006, 12:28 AM
Gsundbrunn, I'm having *exactly* the same problem!! If I check 'mount' it shows my remote drive mounted as type "cifs", yet when I shutdown or run umount on the mountpoint then it complains that it can only unmount cifs!?!?

The exact same config worked fine in FC4.

Gsundbrunn
26th February 2006, 05:19 AM
Seems to be a Bug....

gaptag
27th February 2006, 11:18 PM
Stefan, I got thinking about it and on a hunch I disabled SELinux. Lo-and-behold, no problems now. I put SELinux back into permissive mode instead of enforced and I can still mount/unmount no problems, but can see in /var/log/audit/audit.log that selinux is complaining about some kind of permissions for umount.

I checked my mount point with ls -lZ and it showed the context as system_u:object_r:cifs_t which means little to me, even after my Redhat training! But it looks like the directory has the right context, so I'm guessing its something to do with umount.cifs's security context.

sirkware
28th February 2006, 01:40 AM
Got the same problem too. Because smbfs is not supported on rawhide, I have read here in fedoraforum to use cifs instead to mount samba shared directories. The mounting has no problem, the unmounting has. Unlike stefan, I dont power-off my laptop when I shutdown. After a couple of minutes waiting on the error of unmounting the cifs filesystem (I think it is waiting for some timeout to occur before continuing), the shutdown goes on smoothly.

Gsundbrunn
28th February 2006, 07:25 AM
Hi Gaptag!

Changing SELinux to permissive mode fixed my problems here as I can currently see. "Umount" and "mount" work perfectly now... I wait for the next restart to ckeck the rest.

Thanks a lot!

Regards

Stefan

Gsundbrunn
1st March 2006, 12:40 PM
Just a quick update - everything works really fine - even the restarts are running well.

Thanks again.

Regards

Stefan