Questions tagged [reboot]

Questions related to restarting Ubuntu machines.

Filter by
Sorted by
Tagged with
40 votes
2 answers
57k 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 ...
DirtyDenimDan's user avatar
51 votes
12 answers
19k views

Ubuntu 20.04 interface font too small after restart, even with high scaling factor

So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to ...
Yan Tavares's user avatar
552 votes
14 answers
1.1m views

How do I change the hostname without a restart?

I want to change the OS hostname but I do not want to restart. I have edited /etc/hostname but it requires a restart to get implemented. How to avoid this?
Deepak Rajput's user avatar
106 votes
9 answers
311k views

Ubuntu 16.04 hangs on shutdown/restart

My Ubuntu 16.04 hangs on shutdown/restart requiring me to press and hold the power key to turn the machine off... I don't know how to report this as a bug and what commands to run to show the ...
Tdenham's user avatar
  • 1,061
68 votes
6 answers
60k 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 ...
James White's user avatar
  • 2,271
961 votes
5 answers
2.7m views

How do I shut down or reboot from a terminal?

How can I shut down or reboot Ubuntu using terminal commands?
Raja G's user avatar
  • 102k
224 votes
20 answers
1.3m views

How to fix "sudo: unable to open ... Read-only file system"?

The title might not be as descriptive as I would like it to be but couldn't come up with a better one. My server's file system went into Read-only. And I don't understand why it does so and how to ...
John's user avatar
  • 2,413
41 votes
7 answers
81k 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 ...
andrewsomething's user avatar
19 votes
1 answer
12k views

What's the difference between the magic REISUB reset and holding down the power key?

I found from googling that each letter stands for these: unRaw (take control of keyboard back from X), tErminate (send SIGTERM to all processes, allowing them to terminate gracefully), kIll ...
prab4th's user avatar
  • 756
30 votes
5 answers
123k views

Execute command before shutdown/reboot [duplicate]

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 ...
SERPRO's user avatar
  • 489
28 votes
7 answers
83k 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 ...
Max Beer's user avatar
  • 281
12 votes
10 answers
59k 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 ...
RameshKatkam's user avatar
7 votes
3 answers
21k views

kworker blocked for more than 120 seconds Ubuntu 17.10

I decided to upgrade to 17.10 on my Thinkpad. Now every time I try to shut it down via console or menu) or reboot it, it takes ages. TTY gives me several errors connected to hung_task_timeout_secs, ...
Dappel's user avatar
  • 71
50 votes
7 answers
145k views

How do I restart a Unity session from the terminal?

The command for restarting Gnome2 is: sudo /etc/init.d/gdm restart What is the equivalent for Unity?
rjbgbo's user avatar
  • 663
48 votes
3 answers
103k 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 ...
J. Bruni's user avatar
  • 1,332
28 votes
9 answers
9k 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?
A.B.'s user avatar
  • 90.4k
32 votes
2 answers
25k 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-...
borfig's user avatar
  • 533
17 votes
6 answers
31k 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 ...
Kees's user avatar
  • 173
12 votes
4 answers
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 ...
jgomo3's user avatar
  • 716
10 votes
2 answers
40k views

Disable wifi power management

Problems: 1) Power management makes Wifi connection unstable. I need to disable it completely 2) My wifi doesn't automatically turns on after sleep. I should do it myself Info Laptop: Dell ...
Sabine's user avatar
  • 201
4 votes
4 answers
14k views

Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04

I have not tried a version of Ubuntu prior to 11.10 on my machine. The laptop will not shut down or restart. Shutting down causes it to pause at "Will now Halt", where upon it sits until the battery ...
user55397's user avatar
139 votes
12 answers
998k views

Apache not able to restart

Trying to restart apache from terminal using the following command: sudo service apache2 restart When executing that command, I'm getting below error: Job for apache2.service failed. See "...
Gautam Savaliya's user avatar
27 votes
9 answers
19k views

After rebooting I need to log in each time in Chrome

If I reboot Ubuntu, then I need to log on each site and into Google Chrome account. What is the reason? My system is Ubuntu 16.04 and Google Chrome 53.0.2785.101 (64-bit).
Novah's user avatar
  • 273
18 votes
5 answers
10k 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 ...
Byte Commander's user avatar
  • 108k
16 votes
4 answers
4k views

How resilient is Ubuntu to repeated "power-off" shutdowns?

My company is considering the use of Ubuntu as an OS for use on a hardware device. It would be installed on compact flash drive - apparently this is not standard flash drive but a specific type of ...
mathematician1975's user avatar
12 votes
4 answers
31k views

18.04 Boot freezes at "Started Hold until boot process finishes up"

I have been encountering some trouble trying to boot 18.04. When I attempt to boot it becomes stuck "Started Hold until boot process finishes up", and ctrl+alt+f1/f2have no effect Following some ...
NolanC's user avatar
  • 121
10 votes
8 answers
34k views

Ubuntu 16 reboots seconds after shutdown

I've just updated my ubuntu 15 to ubuntu 16. Now, every time I shutdown, the computer reboots after a few seconds! I've already googled for solutions but nothing worked. My computer is a HP probook ...
soap's user avatar
  • 395
65 votes
6 answers
37k views

Why do we need to be root in terminal for shutdown and restart?

When we install/remove/update packages or make any changes which require administrative privileges we are prompted for the password of admin user who has the sudo privileges - this happens both via ...
Aditya's user avatar
  • 13.4k
8 votes
2 answers
18k views

ubuntu won't shutdown or freezes at splash screen

I am using ubuntu 14.04 64 bit. The problem I am facing is, I can not shutdown my machine. Every time I shutdown or reboot the computer (both from terminal and GUI) it get stuck at boot splash screen ...
salmanwahed's user avatar
99 votes
5 answers
461k 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 ...
user avatar
17 votes
2 answers
23k views

what has replaced dconf-tools for Ubuntu 20.04

This strikes me as a bit chaotic, but I'm new to Ubuntu. I want to have the option to restore open apps when I shut down or logout of Ubuntu 20.04. As usual, I did a search, and found two articles ...
Seamus's user avatar
  • 636
13 votes
1 answer
7k 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 ...
Felipe Hummel's user avatar
11 votes
1 answer
6k 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 ...
user17738's user avatar
  • 233
6 votes
1 answer
13k views

How to run a command BEFORE shutdown on Ubuntu 21.04

I just want to run (as root) a command or script before each reboot/shutdown/poweroff on Ubuntu 21.04 (when I run the shutdown or poweroff commands, or using GNOME/KDE GUI options). I've tried putting ...
Smeterlink's user avatar
3 votes
1 answer
1k views

ubuntu server restarting instead of shutting down

Whenever I try to shutdown my pc by using sudo shutdown -... now (it doesn't matter what I fill in for the ...), it always shutdowns down for about 3-4 seconds, and than just powers up again. I'm sure ...
user2520938's user avatar
3 votes
2 answers
5k views

Need a few reboots to connect to wireless

I am running xubuntu 12.10 on my msi wind U100 netbook. I have a problem with the wireless connection. Whether the wireless connects automatically to a known wifi hotspot (both at home and starbucks)...
deehzee's user avatar
  • 61
2 votes
2 answers
24k views

How to keep ndiswrapper configuration after reboot?

I've been using ndiswrapper on my old wireless card without any problem, until I upgraded to Ubuntu 11.10. ndiswrapper is not included by default anymore so I installed it from the Software Center, ...
Mel T's user avatar
  • 21
2 votes
1 answer
1k views

Shutdown or Restart only logs me out

My workstation at work is running 11.10 (lightdm). Shutting down or restarting has always worked up till last week. My workstation is generally left on through the week and shutdown at weekends. ...
neildeadman's user avatar
181 votes
6 answers
200k 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 ...
tim peterson's user avatar
  • 2,285
57 votes
5 answers
33k views

Why does apt-get not require restarts, where the update manager does?

Oftentimes I try to ‘beat’ the update manager by opening a console and entering the sequence sudo apt-get update sudo apt-get upgrade which, to the best of my knowledge, should update all packages ...
Jan's user avatar
  • 757
30 votes
3 answers
82k views

Laptop USB ports stop working: how to restart them without restarting the PC? [duplicate]

Possible Duplicate: USB slots stop working suddenly from time to time The usb ports of my laptop fail for some reason from time to time. This concerns apparently mainly the external mouse and ...
user avatar
19 votes
3 answers
8k 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?
ændrük's user avatar
  • 76.8k
15 votes
7 answers
18k views

"Shutdown" or "Restart" logs out

While logged in as a sudo user, click the right top power icon, then select and click Shutdown menu, it comes up with a dialog asking if I want to close all programs. The dialog has two options: ...
jenls's user avatar
  • 151
6 votes
2 answers
3k views

Ubuntu doesn't retain mouse cursor size between reboots

I'm having an annoying problem here, every time I boot system, I have to manually set my cursor size from 24 to 16, I can't seem to find a way to save... make that 16 permanent even after boot, does ...
Eimis's user avatar
  • 405
6 votes
1 answer
2k views

How to check if installing a package will require a reboot?

I often install packages and updates for them, although sometimes it is not convenient to do a reboot if one of the packages needs it, so is there any way of telling BEFORE installing the package/...
user avatar
4 votes
2 answers
7k views

Can't stay logged in on Google Chrome

I'm using Google Chrome 31.0.1650.63 on Ubuntu 13.04 (raring). It was all working fine but since last day whenever I restart my computer, I'm automatically logged off all the sites (such as Stack ...
Amal Murali's user avatar
3 votes
2 answers
37k views

ubuntu live-usb doesn't save settings

When I boot my laptop using my live-usb, and then change the settings (e.g. desktop wallpaper) and then reboot, the settings go back to default. How do I make the live-usb save the settings?
captainawzm's user avatar
2 votes
2 answers
13k views

Cannot reboot/shutdown Ubuntu 16.04

I hadn't any problem with 14.04, but 16.04 is so buggy. I can't reboot Ubuntu after installation is completed from live USB/DVD and I must press the power button. Also sudo reboot and sudo poweroff ...
Dante's user avatar
  • 2,329
1 vote
3 answers
9k views

Nightly server shutdown and auto reboot with cron

My question relates to the following question: Daily server reboot cron? I want to shutdown my server at 10.15pm and auto restart at 6am. I added the following line in crontab, but it would just ...
mike_03's user avatar
  • 11
0 votes
2 answers
1k views

After switching mouse buttons is with xinput, each computer restart resets the settings

How does one go about "saving" settings in Ubuntu? I change my buttons on my trackpad using xinput set-button-map 11 3 2 1 (I'm a lefty) and it works during that session. However, when I ...
IWI's user avatar
  • 123