Author Topic: PSLinuxOS 2010 waits for 6 minutes before reboot  (Read 1353 times)

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
PSLinuxOS 2010 waits for 6 minutes before reboot
« on: April 23, 2010, 06:34:56 PM »
I have searched the forums but have not found anything that addresses this problem.

I have a fresh install of PCLinuxOS 2010 on my Dell Precision 470 machine. Windows boots from the first SATA drive, Linux from the second. The Linux unstallation is fresh and updated, with a few samba drives manually mounted to the filesystem after login to KDE.

When I try to reboot the system, the splash screen is shown for ages, and pressing ESC (or any other key) doesn't show the terminal (it works at boot). After a long time it finally reboots. Checking /var/log/messages shows that nothing happens for 6 minutes after the last successful command and the reboot.

Because earlier the shutdown didn't turn the machine off, I added "acpi=force" to '/boot/grum/menu.lst' as recommended on this forum. However, I am not sure how to fix this one.

Can anyone help?

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #1 on: April 23, 2010, 06:42:49 PM »
Try unmounting the SAMBA drives before going for a reboot to see if it is they are slowing things.

When booting you can add the boot code
splash=verbose
to the boot stanza and you should then be able to see all the screen messages on boot up and shut down.
Maybe you can get further info from those.

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #2 on: April 23, 2010, 07:00:20 PM »
Unmounting samba before the reboot does the magic. If samba is mounted it hangs at the following lines:

...
turning off swap                          [ok]
-f                                               [ok]

and it stays there for 6 minutes.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #3 on: April 23, 2010, 07:03:52 PM »
I don't use SAMBA so have no knowledge what may be causing the problem.

Maybe someone with some knowledge of it will have some suggestions for you. At least the problem has been located.

Good luck   ;)

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #4 on: April 23, 2010, 07:23:45 PM »
It is interesting that shutdown actually works. Both run levels get the same commands executed except for the last ones being 'halt' and 'reboot', yet the reboot hangs for 6 minutes. Temporarily I can solve this by executing a command in runlevel 6 to unmount all samba shares at the beginning...



Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #5 on: April 24, 2010, 03:51:01 PM »
Somehow the run level hack didn't work. The same problem occurs during shutdown if the samba shares are mounted.

Is there a way I can execute a command automatically in KDE at shutdown? Otherwise I may forget to manually unmount the shares.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6237
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #6 on: April 24, 2010, 03:59:45 PM »
why dont you unmount your remote shares before shutdown or reboot? you may loose important information one day.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #7 on: April 24, 2010, 07:46:54 PM »
This is something the OS should do when shutting down. I never had this problem with PCLinuxOS 2007 (nor with any other distros I tried)...

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12518
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #8 on: April 24, 2010, 07:52:28 PM »
This is something the OS should do when shutting down. I never had this problem with PCLinuxOS 2007 (nor with any other distros I tried)...

Me either. Wonder why it is affecting you?  Maybe boot in verbose mode and then later shutdown in verbose mode so you can maybe identify where it is getting stuck? Press F3 at the boot screen and remove splash=silent


Thanks to everyone who donates. You keep the servers running.

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #9 on: April 24, 2010, 08:39:21 PM »
Happened to me this morning.  Had an external usb drive (not flash) plugged in and mounted at the time.  Was also running rsync at the time.  Not sure if there is any relevance to that but it took a long time to shut down.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #10 on: April 24, 2010, 11:12:12 PM »
The boot screen show nothing interesting. The last lines before it hangs are these:

...
turning off swap                          [ok]
-f                                               [ok]

So this is what I am watching for 6 minutes, after that the system suddenly restarts without showing "unmounting proc filesystem" etc, messages you normally see when I shut the system down after manually unmounting the samba shares.

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #11 on: April 25, 2010, 06:57:17 PM »
I have just installed PCLinuxOS 2010 on my laptop. The same thing is happening. If the samba shares are mounted, the system hangs for 6 minutes before restarting or shutting down. Not good! This behaviour should be easily duplicated. Here is the config:

in /etc/samba create file auth.192.168.0.1.<username> with the following:
username=<username>
password=<password>

create mount directory in /mnt/<share_dir>
this directory should be owned by <username>!!!

add info into /etc/fstab:
//<server_ip>/<samba_share> /mnt/<share_dir> cifs user,credentials=/etc/samba/auth.192.168.0.1.<username>,noauto,exec 0 0

allow user to mount/unmount samba share:
chmod u+s /sbin/mount.cifs
chmod u+s /sbin/umount.cifs

And just mount the samba share as a user:
mount /mnt/<share_dir>

This is not an ideal setup, but being the only user on my computer it is sufficient for me.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #12 on: April 25, 2010, 07:11:21 PM »
belantos,
                 have you tried deleting your set up and then setting up the shares through the PCLOS Control Centre - Network Sharing ?

Offline belantos

  • Jr. Member
  • **
  • Posts: 47
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #13 on: April 26, 2010, 05:30:54 AM »
What difference it makes? There is a mounted remote samba share that all systems apart from the latest PSLinuxOS were able to unmount at shutdown or reboot. It shouldn't matter how I create it. I can manually mount it and unmount it. The system should be able to do just the same automatically. And it used to do it. Not any more.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: PSLinuxOS 2010 waits for 6 minutes before reboot
« Reply #14 on: April 26, 2010, 05:36:21 AM »
What difference it makes? There is a mounted remote samba share that all systems apart from the latest PSLinuxOS were able to unmount at shutdown or reboot. It shouldn't matter how I create it. I can manually mount it and unmount it. The system should be able to do just the same automatically. And it used to do it. Not any more.

I am aware what should or shouldn't be and what is expected, I simply asked if you had tried such an approach in your quest to solve your problem.
It appears, from your reply, you do not wish to try it and that is your decision to make.

regards.