MP 0.51 freezes in Mint w CIFS mount if net is disconnected

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
grafical
Posts: 28
Joined: Sat Apr 21, 2012 3:08 pm

MP 0.51 freezes in Mint w CIFS mount if net is disconnected

Post by grafical » 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)?

borfthedog
Posts: 3
Joined: Tue Mar 12, 2013 9:30 am

Re: MP 0.51 freezes in Mint w CIFS mount if net is disconnec

Post by borfthedog » Tue Mar 12, 2013 9:38 am

Hi grafical,

I have also shared drives and, when mounting as you mention, I am able to navigate the drive and see folders and files, but it seem they are not recognized properly: I can't see/generate thumbnails, edit metadata, etc. Double-click on a jpeg file will open external editor.

Any idea of what can be happening? permissions when mounting using cifs? I am using Ubuntu 12.10.

Thans...

User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: MP 0.51 freezes in Mint w CIFS mount if net is disconnec

Post by oops66 » Wed Mar 13, 2013 9:20 pm

grafical wrote:...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)?
Hello,
I have tried by hand (with & without wifi) with:

Code: Select all

sudo mount.cifs "//192.168.1.254/disque dur/images" /home/user/custom -o guest
...And browse with the XnviewMP-linux version the shared directory and it seems to work properly...

Code: Select all

sudo umount custom
An other way to try:
http://newsgroup.xnview.com/viewtopic.p ... 97#p110097
XnViewMP 0.51 Linux X64 - Ubuntu 12.04 X64
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

Post Reply