MP 0.51 freezes in Mint w CIFS mount if net is disconnected
Posted: Wed Feb 27, 2013 3:52 am
I've got shared drives on a Windows 7 machine. I've mounted them in Linux Mint 14/cinnamon /etc/fstab with CIFS under /home/username/shares/
This is the line in /etc/fstab:
//192.168.0.50/Storage /home/username/shares/Storage cifs rw,user,uid=username,gid=username,credentials=/home/username/.cifscred,_netdev 0 0
This mounts the drives on startup with no problem. The drives automatically appear on my desktop. In MP v0.51 the mount shows up as 'Storage' in the directory tree, just like I'd expect it to. MP can open it across the network, build thumbnail databases, manipulate images, etc etc. No problem so far.
However, I routinely disable wifi on the laptop to save battery. With wifi disabled, the CIFS mount stays mounted. For most things, that's not a problem but in MP, the mount still shows up in the directory tree and causes MP to completely freeze, even if I don't touch the mount. As long as the mount is in the directory tree while wifi is disabled, MP completely freezes.
Another example: With MP closed, I turn off wifi (again, the mount stays mounted). I then try to open MP. It will not open. It completely freezes before displaying any of its UI, and must be killed.
I've tried changing the mount point to /mnt/Storage/ (which doesn't create the folder on the desktop) but it still shows up in MP and immediately freezes. As soon as I turn wifi back on, MP returns to normal.
Is there any kind of workaround for this, aside from unmounting shares every time prior to opening MP and then remounting them? Is there some "conditional" way of mounting CIFS shares (i.e. if network is enabled, mount CIFS. If network disabled, unmount)?
This is the line in /etc/fstab:
//192.168.0.50/Storage /home/username/shares/Storage cifs rw,user,uid=username,gid=username,credentials=/home/username/.cifscred,_netdev 0 0
This mounts the drives on startup with no problem. The drives automatically appear on my desktop. In MP v0.51 the mount shows up as 'Storage' in the directory tree, just like I'd expect it to. MP can open it across the network, build thumbnail databases, manipulate images, etc etc. No problem so far.
However, I routinely disable wifi on the laptop to save battery. With wifi disabled, the CIFS mount stays mounted. For most things, that's not a problem but in MP, the mount still shows up in the directory tree and causes MP to completely freeze, even if I don't touch the mount. As long as the mount is in the directory tree while wifi is disabled, MP completely freezes.
Another example: With MP closed, I turn off wifi (again, the mount stays mounted). I then try to open MP. It will not open. It completely freezes before displaying any of its UI, and must be killed.
I've tried changing the mount point to /mnt/Storage/ (which doesn't create the folder on the desktop) but it still shows up in MP and immediately freezes. As soon as I turn wifi back on, MP returns to normal.
Is there any kind of workaround for this, aside from unmounting shares every time prior to opening MP and then remounting them? Is there some "conditional" way of mounting CIFS shares (i.e. if network is enabled, mount CIFS. If network disabled, unmount)?