Questions related to restarting Ubuntu machines.

learn more… | top users | synonyms

394
votes
6answers
1.1m views

How do I shut down or reboot from a terminal?

How can I shut down or reboot Ubuntu using terminal commands?
38
votes
4answers
31k views

Should I always restart the system when I see “System restart required”?

These two nice SE posts (1, 2) comment on restarting one's ubuntu machine but they leave me with a few questions: How do you actually do the restart (I'm a beginner and using 12.04.1 LTS)? Should I ...
34
votes
5answers
18k views

Alt + sysrq + REISUB doesn't reboot my laptop

On occasion, my laptop has become stuck so I've used the magic key combination of Alt + SysRq + REISUB to perform a safe reboot. However, it doesn't seem to work for me as when I press the B key to ...
29
votes
2answers
21k views

How to disable Grub's menu from showing up after failed boot

I am performing a test in which I hard-reboot a machine with Ubuntu during its boot sequence (just before login prompt appears). After the reboot, GRUB's menu shows up with no timeout (not its rescue-...
25
votes
8answers
60k views

Stuck on reboot and shutdown

I've recently installed Ubuntu 12.04 and I love it. However I have one problem- I am unable to shutdown or reboot properly. When I shutdown my laptop (Acer Aspire 5560) it hangs on the 5 dots and ...
24
votes
4answers
123k views

Reboot a Server from Command Line?

How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which ...
22
votes
3answers
41k views

How can I make a specific set of iptables rules permanent?

Is there a "best practice" or standard to make a few iptables rules permanent? I mean: automatically applied upon a system reboot? I am using a VPS with Ubuntu Server 10.04 LTS (Lucid Lynx). Thank ...
20
votes
7answers
21k views

How to reboot into Windows from Ubuntu?

I'm looking for a way to reboot into Windows from Ubuntu on a 10.10/Vista dual boot system. The specific use case is that I would like to be able to ssh into my running Ubuntu instance and issue a ...
18
votes
10answers
3k views

When is it necessary to reboot an Ubuntu system?

Under what circumstances is a reboot of an Ubuntu system necessary? I often read in answers that after changes in the system the system is to be restarted, but is that absolutely necessary?
18
votes
5answers
7k views

Why does Ubuntu need to reboot so often?

Ubuntu seems to require a reboot after almost every apt update, even those that do not include a new kernel version. Why?
17
votes
3answers
14k views

How can I safely shutdown/reboot/logout KDE from the command line?

I am not talking about shutdown and reboot commands. I want to initiate the same routine from command line that would be performed if I would press the logout/reboot/shutdown button inside the KDE ...
16
votes
1answer
41k views

Is reboot the same as init 6?

Is reboot the same as init 6 for ubuntu? I'm running Ubuntu 12.04 on Amazon EC2. When ssh'ed into the box I can type runlevel and I get: N 2 Looking at man reboot I see that: When called with -...
16
votes
2answers
17k views

Execute a script upon logout/reboot/shutdown in Ubuntu

I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I ...
14
votes
1answer
1k views

What happens if you use @reboot reboot in crontab file?

What would happen if you use: sudo crontab -e And add the line: @reboot reboot Will it go into a infinite loop of rebooting?!
14
votes
3answers
50k views

How to successfully restart a network without reboot? [duplicate]

When I am using Ubuntu, sometimes the network goes down and there is no option to bring back the wired network. There is always option for wireless, but no option for wired network. In such case I try ...
13
votes
6answers
17k views

Reboot after shutdown (Ubuntu 14.04 (also 12.04); Dell latitude E7440)

I have a rather serious shutdown/reboot issue with my Ubuntu OS on my brand new Dell latitude E7440 netbook. The issue does not seem to depend on the OS version: it occurs with 12.04, 13.10 and now ...
12
votes
4answers
10k views

Where is the restart option?

I just did a fresh install of 11.10 and noticed that the restart option is missing. Is there a way I can put it or turn this option on?
12
votes
4answers
6k views

I can't shut down nor reboot without console

After update from 11.04 to 11.10 an wired conduct appears in my machine: Shutdown GUI methods (including reboot) cause only a log off, and in the login screen, shutdown nor reboot options do anything ...
11
votes
2answers
2k views

Reboot without sudoer privileges?

I've been trying to get my ubuntu restart without having to edit the sudoers. This has been possible before (in lucid I think) using a dbus command: dbus-send –system –print-reply –dest=org....
11
votes
2answers
3k views

Crazy boot and reboot times after upgrading to ubuntu 15.04 (a stop/start job is running for session c2)

After upgrade to 15.04 my ubuntu loads really slowly, slower than Windows 8 on the same machine, which insults me. I turned off splash screen, and when I boot the system I get this: A start job is ...
10
votes
10answers
4k views

Maximum time for which a Linux PC can be UP? [closed]

Actually I had a linux system ( running Ubuntu 12.04.3 ) for days without reboot. I ran in to some errors like sleep getting hang and some network mounted file system not getting mount even able to ...
10
votes
5answers
19k views

Execute command before shutdown/reboot

I have a machine running a couple of vagrant VM. The problem I have is that sometimes I forget to shutdown those VM before I shutdown or reboot my machine. Because of that my machine get stuck with ...
10
votes
0answers
5k views

How can I choose which OS grub will reboot me into—before I reboot? [duplicate]

LILO had a simple feature that allowed one to select the boot menu entry that should be used on the next reboot while in Linux, thus one could select the OS to be booted into on shutdown and didn't ...
9
votes
2answers
4k views

Scheduling a reboot on a remotely located Ubuntu server

I work on a ubuntu server located in a place where I don't usually go. I use ssh over openvpn to access it. The machine has multiple wired interfaces, many static routes and multiple default gateways ...
9
votes
2answers
14k views

why is rtkit-daemon eating 100% of my CPU?

I sometimes have an rtkit-daemon process eating 100% of my CPU and making the system unresponsive. I reboot and things are fine after that. What is rtkit-daemon supposed to do and why would it be ...
9
votes
3answers
17k views

How do I configure Ubuntu to reboot every day at a given time?

Using the terminal or a bash file, how can I configure Ubuntu to reboot every day at (say for instance) 3 AM? In other words, I want to schedule an automatic reboot through the terminal. I haven't ...
9
votes
1answer
8k views

`shutdown -r now` command completely shutting down instead of restarting

Hi we've just installed Ubuntu 12.04 LTS onto a new server. It's on a SuperMicro X9SCA-f Motherboard . Now we're aiming to locate this in a remote server room - however when we execute a shutdown -r ...
8
votes
1answer
655 views

Why does my system boot so slowly?

I installed Ubuntu 10.10 a few days ago. It is really awesome but the problem is that it takes unusually long time (about 20 minutes) for the login screen to appear after the Ubuntu startup screen. ...
8
votes
3answers
3k views

How do I use REISUB with an Apple slim aluminum keyboard?

I'm using the Apple slim aluminum keyboard, which doesn't have the SysRq key: What key(s) should I press for the magic SysRq key when I need to type REISUB?
8
votes
1answer
80 views

How to make /sbin/shutdown, /sbin/reboot etc. require sudo again in 16.04?

For whatever reason, we do no longer need to be root (or using sudo) to run /sbin/shutdown, /sbin/reboot etc. This seems to be because those executables are now symlinks to /bin/systemctl which ...
7
votes
2answers
8k views

connecting a SSH tunnel on reboot?

How can i reestablish a Tunnel if my localhost goes down? i have 2 machines, Remotehost and localhost, on my localhost im running autossh to keep the tunnel alive in case of network problems. ...
7
votes
5answers
11k views

Safely close virtualbox machine on host reboot

I'm running Windows 7 inside Virtualbox on Ubuntu 11.10. Everything works fine. I'm running it at startup, but I have a problem with rebooting. When I type sudo reboot now the state of the virtual ...
7
votes
2answers
423 views

Add some default text to Ctrl-Alt-F1 console to remind myself how to reboot properly

I do know there are questions and good answers, what to do if Ubuntu just hangs (like this one: http://ubuntu.stackexchange.com/questions/4408/what-should-i-do-when-ubuntu-freezes). My problem is that ...
7
votes
1answer
424 views

Can I call the GNOME restart confirmation prompt from the command line?

When I click --> Restart, the following prompt appears: Can I cause this to appear from the command line?
7
votes
8answers
32k views

Why do I get a reboot instead of a shutdown?

After two days of installation, strangely my Ubuntu machine is restarting instead of shutdown from both desktop GUI and command line. sudo shutdown -h now sudo halt (doesn't shutdown, instead freezes ...
7
votes
1answer
3k views

What is the difference between reboot and shutdown -r?

The title says it all: What is the difference between executing shutdown -r and reboot?
7
votes
2answers
1k views

Warm reboot directly to Grub

Is it possible to warm-reboot Linux, directly reloading GRUB without passing through the BIOS? I have a computer whose BIOS is buggy and takes a while due to its hating my disks so if I can reboot ...
7
votes
1answer
8k views

When you run `update-rc.d myscript default` - what is called on startup/shutdown?

What gets called on startup/shutdown when you run update-rc.d myscript default? Docs seem fuzzy, I want concrete. I am guessing that this happens: At startup (specifically at entry to runlevel 2, ...
7
votes
1answer
225 views

Ubuntu 14.04 - crontab @reboot hang my PC

Trying to resolving the bug for KWORKERS HIGH CPU, as suggested in this answer. I put in my crontab the row: @reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe06 After the reboot, the ...
7
votes
1answer
1k views

Logout/Shutdown taking very long, how to find the problem?

Some months now, it's taking very long to logout/shutdown/reboot my ubuntu box. it doesn't happen with a fresh profile it still takes ages even when i close all running programs first (foreground ...
6
votes
1answer
4k views

Permanently change keyboard layout

I am using Xmonad and LXDE, so I don't want to use gnome-settings-daemon. But there is a problem - without it I cannot switch into or type in Cyrillics. I found some temporary solution - when I enter ...
6
votes
6answers
10k views

Ubuntu 12.04 not shutting down properly

When I shutdown or reboot my Ubuntu 12.04 it doesn't ever finish shutting down. I end up stuck on a black/blank screen and have to hold the power button to shut it down. Does anyone know where I can ...
6
votes
1answer
138 views

Why does `reboot` and `poweroff` work without super user privileges in Ubuntu 16.04?

There already are a lot of questions about why shutdown and reboot require root privileges. There are many good answers available too. Why do we need to be root in terminal for shutdown and restart? ...
6
votes
2answers
7k views

Asking all remaining processes to terminate… fail

Ubuntu 12.10 64 bits with Unity. When I restart or shutdown the PC, it takes too long to do it. It shows the line Asking all remaining processes to terminate... [fail] and after Killing all remaining ...
6
votes
3answers
2k views

“Restart to complete updates” message remains after reboot

No matter how many times I restart my computer I keep getting this message "Restart to complete updates". Can you please suggest what to look for and how to fix the problem?
6
votes
0answers
298 views

Why do I need sudo to reboot from the command line? [duplicate]

When I enter reboot on the command line, I get: reboot: Need to be root and asked the root / sudo password. When I reboot via the gui I can do that without my sudo password. Why is that? What's ...
5
votes
1answer
2k views

Sony Vaio FW350 reboots instead of waking up after sleep/suspend

After I suspend and try to wake up my laptop it just automatically reboots every time. I had this problem in 11.04, but it happened occasionaly. Now I'm with 11.10 and it occurs every time. It is a ...
5
votes
2answers
10k views

How do I force a secure reboot?

When my Ubuntu freezes, is there a way to force reboot other than to hit the hardware reset button on my computer in order to ensure as best as possible that I don't corrupt any hard drive partition? ...
5
votes
1answer
178 views

Why does rebooting with control alt delete not require superuser privileges

When you press Control Alt Delete in a Terminal, your system reboots. This does not prompt for authentication to reboot. However, running sudo reboot does require authentication as a sudoer to execute....
5
votes
3answers
259 views

Can't reboot netbook with any of the reboot parameters [closed]

I have a Sony VPCW218AG netbook that I've dual-booted with Ubuntu 10.10. Unlike the preinstalled Windows 7, Ubuntu will not reboot on this computer. Rebooting from Gnome, using the reboot command and ...