LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Laptop won't shut down if SSHFS is mounted (https://www.linuxquestions.org/questions/linux-software-2/laptop-wont-shut-down-if-sshfs-is-mounted-4175412954/)

NotAComputerGuy 06-23-2012 02:37 AM

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 :)

hydraMax 06-30-2012 12:53 AM

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.

NotAComputerGuy 07-04-2012 07:42 AM

Quote:

Originally Posted by hydraMax (Post 4715513)
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 :)

TobiSGD 07-04-2012 09:12 AM

Quote:

Originally Posted by hydraMax (Post 4715513)
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.

NotAComputerGuy 07-06-2012 05:18 AM

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.


All times are GMT -5. The time now is 10:43 AM.