Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I can't reboot my Ubuntu 9.04 x86_64 box. I just see the following, and then nothing happens. I've entered this several times now.

$ sudo reboot
[sudo] password for yang:
$
Broadcast message from yang@harvard.csail.mit.edu
        (/dev/pts/7) at 4:31 ...

The system is going down for reboot NOW!

Probably relevant information: my amd-managed NFS mounts have gone haywire, after the NFS/NIS servers (same host) became inaccessible for several hours. I can create fresh new NFS mounts just fine, but the existing ones are not responding (or more precisely, barely responding). E.g., ls on the directories hangs for minutes, and then fails with only some of the subdirectories actually getting listed (albeit in red) and others resulting in "No such file or directory" error messages.

It's because my NFS mounts have gone haywire that I'm trying to reboot (I tried unmounting these to no avail). I've been waiting for a reboot for three days now.

I'm running Ubuntu 9.04 with regular updates. I don't have physical access to the computer, so it's important that I be able to reboot it and not simply shut down. And BTW, if anyone knows how to deal with the hung NFS mounts without rebooting, that'd be good to know as well.

Thanks in advance for any help.

share|improve this question
add comment

4 Answers

up vote 3 down vote accepted

You could always try "reboot -f" or even "echo b > /proc/sysrq-trigger". That should reboot even the most stubbornly hung system.

share|improve this answer
    
Thanks, reboot -f did the trick, though I'm still curious about what happened with NFS. –  Yang Oct 12 '09 at 17:27
add comment

Sometimes, you need to get someone with physical access to a machine to help you hit the reset button. That may actually be the fastest way to reboot the machine. As for the NFS issue, it may be a locking issue. Try mounting your NFS with the -o nolock option to see if it helps issues.

share|improve this answer
add comment

Try unmounting the NFS mounts with:

umount -f /path/to/nfs/share

-f is "force", which is generally a bad idea, but in the case of NFS, not a problem.

share|improve this answer
    
I get: umount.nfs: Server failed to unmount 'harvard:(pid14936,port1022)' umount2: Device or resource busy umount.nfs: /nfshome: device is busy umount.nfs: Server failed to unmount 'harvard:(pid14936,port1022)' –  Yang Oct 12 '09 at 17:24
    
Even with -f? Weird. –  wfaulk Oct 12 '09 at 23:21
    
Yes, that was with -f. –  Yang Oct 13 '09 at 6:58
add comment

If you have to unmount it, you can use umount -l for a lazy unmount. This can break things. It removes the filesystem immediately and clears up references to the filesystem later and depending on which filesystem you're unmounting can bring the whole system down.

share|improve this answer
    
That command just hangs. –  Yang Oct 12 '09 at 17:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.