You are not logged in.

#26 2011-12-24 00:11:25

YellowSnowIsBad
Member
From: /dev/null
Registered: 2010-06-11
Posts: 46

Re: shutdown hangs when cifs share mounted

Was this issue ever resolved? I am having the same problem.

Offline

#27 2011-12-24 00:22:49

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: shutdown hangs when cifs share mounted

I still have the issue also even with new initscripts. Vote the task: https://bugs.archlinux.org/task/27409

Last edited by student975 (2011-12-24 00:23:49)


"I exist" is the best myth I know..

Offline

#28 2011-12-24 00:26:29

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: shutdown hangs when cifs share mounted

well a workaround can be :
mount cifs with "_netdev" option and put "rc.d stop netfs" in /etc/rc.local.shutdown


O' rly ? Ya rly Oo

Offline

#29 2011-12-29 19:16:40

YellowSnowIsBad
Member
From: /dev/null
Registered: 2010-06-11
Posts: 46

Re: shutdown hangs when cifs share mounted

That done the trick. wink

Offline

#30 2012-01-22 10:03:01

donbex
Member
Registered: 2010-12-23
Posts: 53

Re: shutdown hangs when cifs share mounted

Hello,
I found out I was experiencing this very same issue with my cifs mounts because I inadvertently mounted them with the "dev" option. Removing it got me rid of a couple of cifs warning messages on mount, too.

Hope this helps.

Offline

#31 2012-01-23 04:51:55

phoenixlzx
Member
Registered: 2011-02-15
Posts: 49
Website

Re: shutdown hangs when cifs share mounted

I follow this method but it doesnt work.but I have noticed that there is an error during boot:'Unexpect token near line 507 '<' `' or something like that.

I removed a '<' in line 507 in /etc/rc.d/functions (modified file follow this post) and turn off my laptop.It reports error in tty1 but it halted properly.then I rebooted for twice it just works fine.Maybe I break the functions file and it worked?Will it harm my machine?

Offline

#32 2012-01-23 07:54:45

donbex
Member
Registered: 2010-12-23
Posts: 53

Re: shutdown hangs when cifs share mounted

What do you mean by "modified file follow this post"?
My system is currently up to date and my /etc/rc.d/functions at line 507 reads "remove_leftover() {", so there is no '<' in it.

Offline

#33 2012-01-23 08:39:48

phoenixlzx
Member
Registered: 2011-02-15
Posts: 49
Website

Re: shutdown hangs when cifs share mounted

I mean,I added

# avoid cifs
                if [[ $fstype = @(cifs) ]]; then
                        continue
                fi

and

modified line

if in_array _netdev "${opts[@]}" || [[ $fstype = @(cifs) ]]; then

and my /etc/rc.d/functions line 507 is :

done <  (findmnt -mrunRo TARGET,FSTYPE,OPTIONS /) umount -r "${mounts[@]}"

and the original is:

done < <(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /) umount -r "${mounts[@]}"

Color disappeared in tty1 so it means that I break the file.But it really works for me... hmm

Offline

#34 2012-01-23 11:06:20

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: shutdown hangs when cifs share mounted

phoenixlzx wrote:

I follow this method but it doesnt work.but I have noticed that there is an error during boot:'Unexpect token near line 507 '<' `' or something like that.

I would suggest not changing things that are foreign to you. You've entirely broken the file, and the function (meaning it does nothing at all). You have a script in /etc/rc.d with a /bin/sh shebang, which is where this error comes from. Fix the script, don't break /etc/rc.d/functions.

phoenixlzx wrote:

I removed a '<' in line 507 in /etc/rc.d/functions (modified file follow this post) and turn off my laptop.It reports error in tty1 but it halted properly.then I rebooted for twice it just works fine.Maybe I break the functions file and it worked?Will it harm my machine?

Please post your DAEMONS array.

Offline

#35 2012-01-23 15:38:55

phoenixlzx
Member
Registered: 2011-02-15
Posts: 49
Website

Re: shutdown hangs when cifs share mounted

My DAEMONS array:

DAEMONS=(@syslog-ng @crond acpid sysfsutils hdapsd dbus alsa !networkmanager connmand bluetooth laptop-mode hddtemp)

I re-installed initscripts to get a original functions,it didnt report error but still hang on Unmounting Non-API Filesystems.

Now I do not turn off my computer,suspend instead.:(

Last edited by phoenixlzx (2012-01-23 15:46:31)

Offline

#36 2012-01-23 16:54:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: shutdown hangs when cifs share mounted

Your daemons array would be your problem. Nowhere in there are you using netfs. cifs mounts hang on shutdown because the network goes away and the kernel can't contact the remote to properly do the umount. Add 'netfs' somewhere after connmand.

Offline

#37 2012-01-24 01:41:27

phoenixlzx
Member
Registered: 2011-02-15
Posts: 49
Website

Re: shutdown hangs when cifs share mounted

falconindy wrote:

Your daemons array would be your problem. Nowhere in there are you using netfs. cifs mounts hang on shutdown because the network goes away and the kernel can't contact the remote to properly do the umount. Add 'netfs' somewhere after connmand.

Added,but still hang on 'Unmounting Non-API Filesystems'.Now I'm using an original functions file.

Offline

#38 2012-01-24 11:26:42

phoenixlzx
Member
Registered: 2011-02-15
Posts: 49
Website

Re: shutdown hangs when cifs share mounted

I have updated to the newest kernel and it fixed.;)

Offline

Board footer

Powered by FluxBB