Page 7 of 7 FirstFirst ... 567
Results 61 to 66 of 66

Thread: 11.04 won't restart or shutdown

  1. #61
    Join Date
    May 2008
    Location
    Dhaka, Bangladesh
    Beans
    158
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: 11.04 won't restart or shutdown

    Quote Originally Posted by bdoe View Post
    This CIFS issue is back with a vengeance on Natty! I run Mint 11, which is based on Natty. With past Ubuntu versions, having a CIFS network share connected via wireless when shutting down or restarting the computer would hang the shutdown for a minute or two - annoying, but livable (sort of). However, with Natty, the shutdown hangs indefinitely, forcing use of the power button. I tried all the workarounds listed in that link you mentioned to no avail. Finally, as a last-ditch effort, I added a line early in my /etc/init.d/umountnfs.sh file to explicitly unmount my network share, as follows:
    Code:
    do_stop () {
    	# Write a reboot record to /var/log/wtmp before unmounting
    	halt -w
    
    	# Remove bootclean flag files (precaution against symlink attacks)
    	rm -f /tmp/.clean /var/lock/.clean /var/run/.clean
    
    	#
    	# Make list of points to unmount in reverse order of their creation
    	#
    
    	exec 9<&0 </etc/mtab
    
    umount //192.168.1.100/MyNET\ Shares/
    
    	DIRS=""
    ...
    The result? Nearly instantaneous shutdowns now!

    I found, through insertion of logger and echo statements throughout umountnfs.sh, that during shutdown through the Gnome GUI, the script never finishes executing. It hangs somewhere shortly after evaluating /etc/mtab. Seems like the SMB/CIFS situation in Ubuntu is getting worse and worse...
    How do you do that? I can't edit my umountnfs.sh file.
    Tell me how, then tell me One more thing, do I add all the text you gave here (in the box)? And where do I add it in the file?

    Sorry for disturbing people on a SOLVED thread. But my problem is nowhere near solving....

  2. #62
    Join Date
    Mar 2008
    Location
    Denmark
    Beans
    30
    Distro
    Ubuntu Studio 17.04 Zesty Zapus

    Re: 11.04 won't restart or shutdown

    Hi,

    I'm running Ubuntu 11.04 amd64 on a Dell Optiplex 990, which had the same problem and none of the solutions above worked for me. I found a solution in bug report in launchpad

    Just add the option "reboot=pci" to GRUB_CMDLINE_LINUX in /etc/default/grub
    to do this
    Code:
    sudo gedit /etc/default/grub
    look for

    GRUB_CMDLINE_LINUX=""

    and change it to

    GRUB_CMDLINE_LINUX="reboot=pci"

    save, exit and update grub
    Code:
    sudo update-grub
    Sorry for being bothering a solved thread.
    Best regards.

  3. #63
    Join Date
    Jun 2011
    Beans
    9

    Re: 11.04 won't restart or shutdown

    I have Ubuntu studio 11.04 and it gets stuck at the very end of the shutdown process and I have to manually push the power button and it goes right off I don't have to hold it. What is strange is that it will restart just fine without any manual help. Other than that the OS works just fine.

  4. #64
    Join Date
    Mar 2008
    Beans
    1

    Re: 11.04 won't restart or shutdown

    Quote Originally Posted by fabio.hipolito View Post
    Hi,

    I'm running Ubuntu 11.04 amd64 on a Dell Optiplex 990, which had the same problem and none of the solutions above worked for me. I found a solution in bug report in launchpad

    Just add the option "reboot=pci" to GRUB_CMDLINE_LINUX in /etc/default/grub
    to do this
    Code:
    sudo gedit /etc/default/grub
    look for

    GRUB_CMDLINE_LINUX=""

    and change it to

    GRUB_CMDLINE_LINUX="reboot=pci"

    save, exit and update grub
    Code:
    sudo update-grub
    Sorry for being bothering a solved thread.
    Best regards.

    I have been working on a Dell E6520 all day and finally saw this post and it fixed my problem!! Bless You!

  5. #65
    Join Date
    Apr 2007
    Beans
    5

    Re: 11.04 won't restart or shutdown

    Quote Originally Posted by VewDew View Post
    I have been working on a Dell E6520 all day and finally saw this post and it fixed my problem!! Bless You!
    Doesn't work for me. I am not sure why this thread is marrked as SOLVED but the problem still remains (at least for me). I can shutdown fine but not restart. When I restart, it hangs while shutting down.

  6. #66
    Join Date
    Jun 2011
    Beans
    58

    Re: 11.04 won't restart or shutdown

    Quote Originally Posted by fabio.hipolito View Post
    Hi,

    I'm running Ubuntu 11.04 amd64 on a Dell Optiplex 990, which had the same problem and none of the solutions above worked for me. I found a solution in bug report in launchpad

    Just add the option "reboot=pci" to GRUB_CMDLINE_LINUX in /etc/default/grub
    to do this
    Code:
    sudo gedit /etc/default/grub
    look for

    GRUB_CMDLINE_LINUX=""

    and change it to

    GRUB_CMDLINE_LINUX="reboot=pci"

    save, exit and update grub
    Code:
    sudo update-grub
    Sorry for being bothering a solved thread.
    Best regards.
    Nice, I have been looking for this answer for a while. I have the exact machine except with and i5 64 bit cpu and this fixed my problem.

Page 7 of 7 FirstFirst ... 567

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •