ConradJones Posted June 23, 2013 Posted June 23, 2013 (edited) Hi I normally have some shares mounted on my laptop (mint) to a file server (windows) if i close the lead and the laptop sits in the suspended/hibernated state the samba mounted shares hang the machine when i re open the lid and try to use them. any ideas? EDIT: seems if a program has something open it locks it. not always easy to find the program with file open Edited June 23, 2013 by ConradJones
Geoff Posted June 24, 2013 Posted June 24, 2013 (edited) You can use 'lsof' to find out what files a process has open. In this specific case, the +D option is probably what you want. lsof +D /path/to/samba/mount/point Edited June 24, 2013 by Geoff 1
ConradJones Posted June 24, 2013 Author Posted June 24, 2013 You can use 'lsof' to find out what files a process has open. you could if it didn't hang like every thing else in sight.! i found it quicker to manually work out what had the open file, turned out to be vmware workstation and an ISO on the software share.
Marci Posted June 24, 2013 Posted June 24, 2013 Lazy unmount on sleep / remount? See script at https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/24864/comments/3 1
ConradJones Posted June 24, 2013 Author Posted June 24, 2013 "If there are open files on the share we have problems again... but otherwise it works fine." Last line!
Marci Posted June 24, 2013 Posted June 24, 2013 (edited) Sorry, started googling for the script before your edit / other replies... the following could probably be popped into the stop function to check for locked files and kill the parent process causing the lock (altho you'd lose anything unsaved) if [ '/usr/bin/smbstatus | grep DENY | wc -l' != "0" ] then fuser -m -k /{mount path} fi Edited June 24, 2013 by Marci
Geoff Posted June 24, 2013 Posted June 24, 2013 Googling around yields a few suggestions. Are you using wireless to access the samba server? Doesn't doing suspend vs hibernate make a difference?
ConradJones Posted June 24, 2013 Author Posted June 24, 2013 Googling around yields a few suggestions. Are you using wireless to access the samba server? Doesn't doing suspend vs hibernate make a difference? yes wireless and @Marci i think killing the parent process maybe a little extreme,
ConradJones Posted June 26, 2013 Author Posted June 26, 2013 its an "Intel Corporation Centrino Advanced-N 6200 (rev 3e)" lsmod - i'm not a 100% which one is the wireless card. conrad@conrad-laptop ~ $ lsmod Module Size Used by pci_stub 12622 1 vboxpci 23194 0 vboxnetadp 25670 0 vboxnetflt 23479 0 vboxdrv 320372 3 vboxnetadp,vboxnetflt,vboxpci ip6table_filter 12815 0 ip6_tables 27025 1 ip6table_filter ebtable_nat 12807 0 ebtables 30642 1 ebtable_nat ipt_MASQUERADE 12759 3 iptable_nat 12810 1 nf_nat_ipv4 13263 1 iptable_nat nf_nat 25866 3 ipt_MASQUERADE,nf_nat_ipv4,iptable_nat nf_conntrack_ipv4 14487 2 nf_defrag_ipv4 12729 1 nf_conntrack_ipv4 xt_state 12578 1 nf_conntrack 83275 6 ipt_MASQUERADE,nf_nat,xt_state,nf_nat_ipv4,iptable_nat,nf_conntrack_ipv4 ipt_REJECT 12541 2 xt_CHECKSUM 12549 1 iptable_mangle 12695 1 xt_tcpudp 12603 5 iptable_filter 12810 1 ip_tables 26995 3 iptable_filter,iptable_mangle,iptable_nat x_tables 29803 11 ip6table_filter,xt_CHECKSUM,ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_state,iptable_filter,ebtables,ipt_REJECT,iptable_mangle,ip6_tables vmnet 55771 13 bridge 99533 0 stp 12976 1 bridge llc 14552 2 stp,bridge btusb 22474 0 vsock 52886 0 vmci 93386 1 vsock vmmon 76108 0 joydev 17377 0 dm_crypt 22820 1 tpm_infineon 17410 0 arc4 12615 2 coretemp 13355 0 iwldvm 241834 0 kvm_intel 132891 0 mac80211 606457 1 iwldvm kvm 443165 1 kvm_intel snd_hda_codec_hdmi 36913 1 snd_hda_codec_realtek 78399 1 snd_hda_intel 39619 3 snd_hda_codec 136453 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel snd_hwdep 13602 1 snd_hda_codec uvcvideo 80847 0 videobuf2_vmalloc 13056 1 uvcvideo videobuf2_memops 13202 1 videobuf2_vmalloc videobuf2_core 40513 1 uvcvideo snd_pcm 97451 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel videodev 129260 2 uvcvideo,videobuf2_core snd_page_alloc 18710 2 snd_pcm,snd_hda_intel snd_seq_midi 13324 0 snd_seq_midi_event 14899 1 snd_seq_midi snd_rawmidi 30180 1 snd_seq_midi snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi microcode 22881 0 snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi psmouse 95870 0 snd_timer 29425 2 snd_pcm,snd_seq intel_ips 17978 0 toshiba_acpi 18718 0 tpm_tis 18675 0 serio_raw 13215 0 lpc_ich 17061 0 iwlwifi 173477 1 iwldvm cfg80211 510937 3 iwlwifi,mac80211,iwldvm sparse_keymap 13890 1 toshiba_acpi wmi 19070 1 toshiba_acpi toshiba_bluetooth 12852 0 snd 68876 16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device mei 41158 0 soundcore 12680 1 snd mac_hid 13205 0 bnep 18036 2 parport_pc 28152 0 ppdev 17073 0 rfcomm 42641 12 bluetooth 228619 22 bnep,btusb,rfcomm lp 17759 0 parport 46345 3 lp,ppdev,parport_pc binfmt_misc 17500 1 i915 600351 9 ahci 25731 2 libahci 31364 1 ahci video 19390 1 i915 i2c_algo_bit 13413 1 i915 drm_kms_helper 49394 1 i915 sdhci_pci 18590 0 drm 286313 5 i915,drm_kms_helper sdhci 32522 1 sdhci_pci e1000e 198787 0
Geoff Posted June 26, 2013 Posted June 26, 2013 (edited) The linux driver for your Intel wifi card uses a binary firmware blob to operate. The bug causing the issue is within this binary firmware. Only intel can fix this properly. You can mitigate the situation by disabling the power saving features. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594511 I would also strongly suggest you avoid hardware that doesn't have open specs where ever possible in future. Edited June 26, 2013 by Geoff
ConradJones Posted June 26, 2013 Author Posted June 26, 2013 I would also strongly suggest you avoid hardware that doesn't have open specs where ever possible in future. Unfortunately my primary concern when buying this laptop was that it had a real serial port which are as rare as rocking horse something these days.
CyberNerd Posted June 26, 2013 Posted June 26, 2013 oops posted to wrong thread. I find USB to serial quite good on linux as the drivers are generally built in
ConradJones Posted June 26, 2013 Author Posted June 26, 2013 i was using windows at the time, but its also something to forget to put in the laptop bag, where as if your setting up a new switch you almost always get a normal serial lead with it. i just find the usb to serial just one more thing which is unecessary as far as i am concerned, they've only removed the serial ports as a cost saving exercise.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now