Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29454 - [networkmanager] Disconnect a connexion unmount my disks

Attached to Project: Arch Linux
Opened by Anthony Ruhier (Anthony25) - Saturday, 14 April 2012, 19:06 GMT
Last edited by Ionut Biru (wonder) - Monday, 16 April 2012, 18:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I disconnect a connexion in the network manager, it's unmounting my disks (even if they are declared in the fstab).

Additional info:
* package version(s) :
networkmanager : 0.9.2.0-3
network-manager-applet : 0.9.2.0-1
desktop-privileges : 0.2-3
gnome 3.2.2

* config and/or log files etc.

In /var/log/daemon.log :

Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan0): device state change: disconnected -> unavailable (reason 'none') [30 20 0]
Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan0): deactivating device (reason 'none') [0]
Apr 14 21:02:53 localhost NetworkManager[872]: <info> Policy set 'NEUF_FE14 Ralink' (wlan1) as default for IPv4 routing and DNS.
Apr 14 21:02:53 localhost NetworkManager[872]: <info> Policy set 'NEUF_FE14 Ralink' (wlan1) as default for IPv4 routing and DNS.
Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan0): taking down device.
Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan1): device state change: activated -> unavailable (reason 'none') [100 20 0]
Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan1): deactivating device (reason 'none') [0]
Apr 14 21:02:53 localhost avahi-daemon[868]: Withdrawing address record for 192.168.1.102 on wlan1.
Apr 14 21:02:53 localhost avahi-daemon[868]: Leaving mDNS multicast group on interface wlan1.IPv4 with address 192.168.1.102.
Apr 14 21:02:53 localhost avahi-daemon[868]: Interface wlan1.IPv4 no longer relevant for mDNS.
Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan1): removing resolv.conf from /usr/sbin/resolvconf
Apr 14 21:02:53 localhost NetworkManager[872]: <info> (wlan1): taking down device.
Apr 14 21:02:53 localhost dbus[629]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Apr 14 21:02:53 localhost dbus[629]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 14 21:02:53 localhost avahi-daemon[868]: Withdrawing address record for fe80::2c0:caff:fe36:7d0d on wlan1.
Apr 14 21:02:53 localhost ntfs-3g[13839]: Unmounting /dev/sdc1 (DDE 750Go)
Apr 14 21:02:53 localhost NetworkManager[872]: <info> WiFi hardware radio set disabled
Apr 14 21:02:53 localhost NetworkManager[872]: <info> WiFi now disabled by radio killswitch
Apr 14 21:02:53 localhost ntfs-3g[13829]: Unmounting /dev/sda4 (Data)


Steps to reproduce:
Just disconnecting the connexion.
This task depends upon

Closed by  Ionut Biru (wonder)
Monday, 16 April 2012, 18:12 GMT
Reason for closing:  Not a bug
Comment by Jelle van der Waa (jelly) - Sunday, 15 April 2012, 14:08 GMT
Do you have any custom dispatcher scripts?
Comment by Anthony Ruhier (Anthony25) - Sunday, 15 April 2012, 17:48 GMT
I have 2 dispatcher scripts : one for netfs and the other for ntpd, but I already had the problem before installing the ntpd script.

I join my netfs script to this comment.

PS : and I am sorry for all the mistakes I made in the bug report ;)


Edit : Thanks to you I have understood from where this bug comes : I share my disks over the network, and when the Networkmanager disconnect a connexion, it unmounts all folders shares whith NFS and samba.
But it unmounts my disks to, so how I could just disable the share when the network is down and keep my disks mounted ?

Edit 2 : Actually even the disks that I don't share in samba are unmounted when I do "rc.d netfs stop"...
   10-netfs (0.2 KiB)
Comment by Anthony Ruhier (Anthony25) - Sunday, 15 April 2012, 22:35 GMT
Problem fixed in remove the script 10-netfs in /etc/NetworkManager/dispatcher.d/.

Many Thanks jelly to your help.
Comment by Jan de Groot (JGC) - Monday, 16 April 2012, 14:17 GMT
ntfs-3g is a FUSE filesystem. looking at /etc/rc.d/netfs, it unmounts all network filesystems defined in $NETFS. Looking at /etc/rc.d/functions, this is $NETFS:
NETFS="nfs,nfs4,smbfs,cifs,codafs,ncpfs,shfs,fuse,fuseblk,glusterfs,davfs,fuse.glusterfs"

That includes FUSE filesystems, meaning that ntfs-3g filesystems will get unmounted by this script.
Comment by Anthony Ruhier (Anthony25) - Monday, 16 April 2012, 18:02 GMT
OK thanks, but I don't think that this script is useful for me, that's why I deleted it.

Many thanks to have helped me solving my problem, I request the closure of the bug ;)

Loading...