LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2012, 02:37 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
Laptop won't shut down if SSHFS is mounted


Hi all,

If I shut down my laptop without unmounting a mounted SSHFS directory first, the computer hangs on this screen (apologies for the size of that picture).

None of my other computers have this problem, just this one Laptop. Can anyone help me?

Thanks
 
Old 06-30-2012, 12:53 AM   #2
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
It looks like a kernel crash, with a back trace (some information about the problem) dumped to the screen. Usually this indicates some latent programming bug in the Linux kernel (the program that ultimately runs your system), typically exposed by some quirk of your hardware design or software you are running. (Is your laptop really old, or some unusual brand?)

Perhaps the error involves some kind of interaction between the FUSE module and the kernel (sshfs is based on FUSE) or maybe some bug in the networking code. I really have no idea, though. Theoretically you study up on your kernel programming and debug the specific problem with a lot of time and energy.

A simpler approach, though, would be to try updating your Linux kernel to a newer version, and see if that fixes the problem. If you are running Linux Mint - Debian Edition (as your profile states) then you are likely running a version of the kernel from the 2.6 series, while the latest stable kernel is 3.4.4. Visit kernel.org to get the latest version.

However, building and installing your own kernel does require a bit of learning and maintenance effort. It might be less bother just to unmount your SSHFS mounts before shutting down.
 
Old 07-04-2012, 07:42 AM   #3
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by hydraMax View Post
It might be less bother just to unmount your SSHFS mounts before shutting down.
Thanks for the response, apologies for the long delay. This is what I'm currently doing, which is fine... When I remember, it's just that I occasionally forget. I'll keep my fingers crossed for a fix coming in the next Kernal update!

Thanks
 
Old 07-04-2012, 09:12 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by hydraMax View Post
If you are running Linux Mint - Debian Edition (as your profile states) then you are likely running a version of the kernel from the 2.6 series, while the latest stable kernel is 3.4.4. Visit kernel.org to get the latest version.
LMDE is based on Debian Testing, which currently uses a 3.2 kernel. But nonetheless a kernel upgrade may solve your issues. If you are uncomfortable with compiling your own kernel I would recommend to try the kernel from Liquorix.

As a workaround you can create a script /etc/rc.local.shutdown that contains this little script
Code:
#!/bin/sh
umount -av -t sshfs
and look if that works for you. Don't forget to make it executable, this script will unmount all mounted sshfs automatically at shutdown.

Last edited by TobiSGD; 07-04-2012 at 09:20 AM.
 
Old 07-06-2012, 05:18 AM   #5
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Hi,

Not that comfortable with kernels and stuff from 'strange' websites. I'm really not a computer guy, so worried about doing things wrong with the 'essential' parts of the system.

Also, that work around didn't work, any ideas what I might have done wrong? I nano'd the path/file as root, saved it then chmod +x the file.

Thank you so much for trying to help me with this, it's appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why cant users access files that they own on SSHFS mounted file system? startoftext Linux - Networking 1 08-19-2011 02:28 PM
Xubuntu won't shut down - black screen after trying to shut down Snickar-Lasse Ubuntu 2 11-30-2009 04:33 PM
[SOLVED] Copying between 2 mounted sshfs's Suppen Linux - Server 1 03-04-2009 06:38 AM
laptop lid won't shut off when closed houler Slackware 32 08-27-2005 11:59 PM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration