KDE 4 Netwok Manager shutting down before SMB/NFS Dismount

Hi All,

I have an issue using a wireless laptop where the network manager shuts down before CIFS/NFS can dismount my NAS drive causing a one minute delay in shutdown. I came across a solution for a similar situation in Ubuntu but I’m not sure how to apply the fix for opensuse 11.2.

Any wise old penguins out there know the best way around this one to promote CIFS/SMB dismount before wireless network ?

Thanks

PS - This is the ubuntu fix:

CIFS: VFS server not responding
CIFS: No response for cmd 114 mid 3

It’s a bug in Gutsy and it looks like it’s a bug in Hardy as well but there is a work around.

The reason for getting the error message is the fact that the network (NetworkManager) is being shutdown before dismounting of the Samba shares, and dismounting a network share without a network well that won’t work so well :slight_smile:

You can use the following work around:
cd /etc/rc6.d
ls -la

You should see :
S<nr>wpa-ifupdown the nr is probably 15
and
S<nr>umountnfs.sh that nr is probably 31

Type:
sudo mv S31umountnfs.sh S14umountnfs.sh

The point is to give the umountnfs.sh a lower as your wpa-ifupdown.sh

Follow the above steps also for /etc/rc0.d (Thanks to Deb Early for the suggestion)

That sounds right. Note that you are renaming files to change the order of the shut down be sure there is not already a file of the same name (number) . You may have to rename several files to get the order you want.Remember that the S## part is the only thing that counts here.

There used to be a neat utility called Unix level or something like that. But I can’t find it any more. It was easy to change the order as well as adding and removing services. Yast-Service Level allows you to add and remove but I don’t see a way to set the order.

The order is implied in the dependencies in the metadata at the top of the init script.

Had an other idea which is to use the HALT_POWERDOWN_INSERT="" command to unmount the nas. Any one know if this gets executed first or will it run in parallel ? I don’t have my laptop this weekend so I can’t try it until tomorrow but it looks an easier and simpler solution ?

Thanks