You are not logged in.

#1 2009-07-03 16:03:32

modulationz
Member
Registered: 2009-06-29
Posts: 6

Problems with poweroff/reboot and samba shares

I am mounting samba shares using the cifs method as described in the Arch Wiki (http://wiki.archlinux.org/index.php/Acc … dows_share).  While I am able to mount and umount the share with no issues, I run into problems if I try to reboot or power off the machine without unmounting the samba share.  During the power off/reboot process, the machine hangs with the following message: "Unmounting Filesystem"

My /etc/fstab entry:

//dns323/backup /media/backup cifs credentials=/home/USER/.credentials,iocharset=utf8,noauto,user,noatime 0 0

Last edited by modulationz (2009-07-03 16:03:54)

Offline

#2 2009-07-03 18:06:59

Rip-Rip
Member
Registered: 2008-11-09
Posts: 32

Re: Problems with poweroff/reboot and samba shares

I think you need to add the netfs daemon to your rc.conf after the network daemon, so that it will umount the filesystem before switching off the network.

Offline

#3 2009-07-03 21:01:19

modulationz
Member
Registered: 2009-06-29
Posts: 6

Re: Problems with poweroff/reboot and samba shares

Rip-Rip wrote:

I think you need to add the netfs daemon to your rc.conf after the network daemon, so that it will umount the filesystem before switching off the network.

Thanks for the response! smile
Unfortunaly, I still have the same problem when using the following:

DAEMONS=(@syslog-ng dbus hal @network @netfs sensors @net-profiles @crond @alsa @openntpd @mpd @dropboxd @laptop-mode cpufreq)

The machine actually continues to reboot/poweroff after it "hangs" for about 45 seconds.  Is there an option to speed this up (change timeout?)?

Thanks!
Bobby

Offline

#4 2009-09-10 17:45:28

greenfish
Member
From: eating fish in /dev/null
Registered: 2008-08-30
Posts: 229

Re: Problems with poweroff/reboot and samba shares

same issues here, nefs doesn't mount my samba shares at boot, and rebooting takes about 45 seconds, is it safe to forcefully unmount a share with either a lazy unmount or the f trigger, or is there a way to tell it to "STOP YOUR CRAP AND UNMOUNT NOW?" big_smile

 CIFS VFS: Error connecting to socket. Aborting operation                                                                                                                                    CIFS VFS: cifs_mount failed w/return code = -101

ARCH64 archSKYNET server AMD  Phenom(tm) II X2 550 HDD 6TB Ram 8GB
Hobbies: Running, Pistol Marksmanship, Classic Music

Offline

#5 2009-12-07 16:40:30

caldwellbailey
Member
Registered: 2008-05-27
Posts: 8

Re: Problems with poweroff/reboot and samba shares

Has anyone solved this problem?  I have a file server that everyone in my house connects to.  They all use windows and just stay connected all the time.  I want to be able to just for them to disconnect so i can reboot.

Anyone know what I can do?

Offline

#6 2010-12-29 15:05:29

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: Problems with poweroff/reboot and samba shares

I also have various DNS323 cifs share mounts and this "delay" problem in Linux- yet a year later. I'll check netfs daemon and also try unmounting in rc.local.shutdown to see if that helps.


--
JSkier

Offline

#7 2010-12-31 19:32:07

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Problems with poweroff/reboot and samba shares

jskier, please do not necro bump old threads. Start a new thread and link to the old one if you feel it is relevant. Please read #10 in the forum rules


Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB