Questions tagged [reboot]

rebooting is the process of bringing down a system in a state where it will complete reinitialise, without removing power from the system. Use this tag for question related to problems with being able to reboot a system. For problems booting into a particular installed OS, use the appropriate bootmanager tag (e.g. [grub])

1
vote
2answers
1k views

Is reboot -f a safe way to cold-reboot?

On the machine I'm currently at, sudo reboot will only give me a warm reboot. Is sudo reboot -f a safe way to do a cold reboot (through BIOS)? I'm booting through MBR, not EFI and I'm using upstart (...
1
vote
0answers
37 views

Do we need to reboot RHEL Servers, after making changes for control-alt-delete override? [closed]

We are planning on disabling the RHEL Server reboot triggered by control-alt-delete. for which we are going to follow the Steps mentioned here. However, that link does not say whether we need to ...
0
votes
1answer
932 views

How to umount /var /usr safely on systemd without reboot

I have a Linux server on a VM which the reboot does work as powering off due to misconfiguration of a third part provider. I do not have access to VM configuration. The person who installed the ...
0
votes
0answers
170 views

System Reboot or shutdown in terminal prompts for retry after closing inhibitors and logging out other users

I was trying to shutdown or reboot my system given as a BYOD by organization for which I work. So, far I have tried this : And as you can see, each time I get this error : User root is logged in on ...
0
votes
0answers
27 views

Spontaneous turning off after reboot from Windows

How should I troubleshoot spontaneous turn off of my notebook running Debian Stretch? What happens: Boot to Windows (dual boot system with windows and Debian on separate drives) Reboot Boot into ...
1
vote
1answer
823 views

How to set ansible playbook to reboot servers

I want to be able to write one playbook to update all my servers in different environments - stage and prod. I do not want to reboot these servers every time there is an update to the kernel, I only ...
0
votes
1answer
77 views

3 Questions about having to do a hard shutdown and reboot

When I attempt to do a soft reboot or shutdown, the display hangs and the system is unresponsive for an inordinate amount of time. I therefore have to shutdown or reboot my setup by holding the power ...
2
votes
0answers
89 views

Is it possible to declare a regulator in the device tree that can power down the system

If I have, for example, a fixed-regulator declared in my device tree, how can I request Linux to call the disable function after shutting down? Note, I use a custom regulator driver (not fixed-...
1
vote
1answer
521 views

Systemd watchdog kills services after changing system time manually

I have been investigating to fix what appears to be a problem with systemd watchdog but with no success. I have a bunch of services that are of Type=notify. If the system time is set backwards, every ...
0
votes
1answer
202 views

unix throws error “sh: mntroot: not found” when doing sshpass with @host command, how to solve this?

My requirement : i want to pass some commands with sshpass command. ex 1: sshpass -p 'sshpass' ssh -oKexAlgorithms******* user@host touch /mnt/us/pass above sshpass example works perfectly. ex 2: ...
1
vote
0answers
3k views

Reboot is not working

I have the VM running with ubuntu(14.04.4). Sometimes, I just want to restart the VM by reboot command. When I execute the command, it prompts "success" but nothing happened. I checked the syslog, no ...
0
votes
2answers
3k views

My machine always reboot into the GRUB prompt instead of GRUB menu

I got a problem that is after rebooting grub CLI always appears instead of grub menu. For me the problem is not being unable to boot into any kernels (it is simple: type exit and enter twice do the ...
0
votes
1answer
101 views

fsck not performed during boot in spite fstab configured correctly

today we notice about very strange issue the following partition ( from /etc/fstab) defined with "2" in the end of the line that means that fsck will be activate during boot since the data on that ...
1
vote
1answer
810 views

Crontab job to restart application services after reboot of server

I have several applications that weren't configured to start up automatically. I am trying to figure out a way for those services to start up automatically after a reboot. Eg. This is one command ...
3
votes
1answer
141 views

systemd reboot threshold limit

Related: Limit system reboot burst I'm working for a commercial product that runs a camera service. This service is critical for the normal functionality of the system. So far, it is going good and I'...
2
votes
1answer
295 views

How to Force fsck for all other non-root partitions

We have the following disks and there mount point: /dev/sdb /appTdb/sdc ext4 defaults,noatime 0 0 /dev/sdc /appTdb/sdd ext4 defaults,noatime 0 0 /dev/sdd /appTdb/sde ext4 defaults,noatime 0 0 /dev/...
1
vote
0answers
704 views

how to know why Linux redhat machine performed reboot

we have cluster with redhat machines version 7.2 on pluto05 machine we saw that machine rebooted before one day uptime 13:51:06 up 1 day, 1:46, 2 users, load average: 0.30, 0.14, 0.08 and from ...
1
vote
1answer
68 views

Are runlevels 0 and 6 a result or a transition?

The runlevels 0 and 6 have the meaning of shutting down or rebooting the system. If I enter the command init 0, the system will shut down as a result. However my question is if the system is ...
0
votes
1answer
76 views

Output of cron on the ssh shell ?

OS: Centos 7 | Shell: Bash | Virtual Machine: Virtualbox I have created a short script to check few servers on startup of my application and need to run this on every reboot. I have configured the ...
1
vote
0answers
1k views

Any difference between a reboot vs. shutdown/restart on AIX?

Is a reboot functionally different than performing a shutdown/restart on AIX servers? If they are the same, why are the timestamps different between the 'last system boot' and 'last reboot'? $ who -...
2
votes
0answers
608 views

Is /var/run/reboot-required a reliable indicator of a needed reboot?

After updating two Ubuntu 16.04 servers with an update that did not include the kernel, but did include packages systemd and systemd-sysv, I checked the following file: ls -la /var/run/reboot-...
1
vote
2answers
2k views

What differences it will make, if i use “telinit 6” instead of “reboot” command to restart my computer? [duplicate]

I am trying to understand Run Levels in Unix, I found Runlevel 6 is state of reboot. So I tried to switch to run level 6 using the command telinit 6 and it worked same as reboot on my computer. I am ...
1
vote
0answers
156 views

GlusterFS peer rejected and no data replication following reboot

I'm experimenting with glusterfs on ubuntu16.04. Setup consists of: Gluster-server node1: ubuntu16-2 Gluster-server node2: ubuntu16-3 Gluster-client: ubuntu16-1 I've setup a gluster volume named '...
1
vote
1answer
688 views

“shutdown -r” works but “reboot” does not

Fresh install of Centos 7 KDE kernel: 3.10.0-693.21.1.el7.x86_64 After I do a yum update to update all of the packages, reboot no longer works. I tried to track the problem with no avail. For fun, I ...
0
votes
1answer
31 views

How to power off normally after Debian crashed?

The keyboard did not work, but worked after I pressed Alt+SysRq+R. Then I pressed Alt+SysRq+B, and the computer did not reboot. What else can I do? I have found Ctrl+Alt+Delete will reboot the ...
0
votes
1answer
2k views

Is it possible to reload lvm.conf without reboot?

I enabled issue_discards in lvm.conf file on machine with ssd and I'd like to perform blkdiscard on one of logical volumes. Can i do that without rebooting machine? I'm able to unmount physical volume ...
4
votes
2answers
1k views

Ask before executing 'reboot'?

I frequently (all day every day) have a minicom terminal tab open and execute commands on an embedded Linux system from my Ubuntu laptop. Sometimes I have to execute the reboot command, and sometimes,...
5
votes
1answer
1k views

How do I reboot over a ssh connection without a return code of -1?

The system I am working with uses ssh to remotely connect to a Linux machine. It then executes a single shell command and analyses the output from the shell command. If I run reboot, I get exit code ...
1
vote
1answer
7k views

Ubuntu: “Reached target Shutdown”, safe to pull the plug?

I have a small Celeron machine which runs Ubuntu 16.04.3 LTS, and every time I need to reboot it (about once a month), I have to power it off, pull the plug and power it on again. The thing is that ...
0
votes
0answers
50 views

recover ssd after mounting iso file to ssd! [duplicate]

I accidentally mounted iso file to the solid state drive /dev/sda, which contains windows operating system. After unmounting iso in ubuntu this drive get unreachable at all and unfortunately system ...
0
votes
1answer
77 views

Keep file data always available to Bash, without repeated execution (also after reboot)

I have a file named ~/myScripts/assignments.sh which contains various assignments such as variables and aliases. Here's a taste from that file: drt="/var/www/html" rss="/etc/init.d/php*-fpm restart &...
1
vote
1answer
890 views

Run a script just before poweroff of reboot

Been pulling my hair out over this one for the last two weeks. I can't for the life of me figure out how to get this working: The situation I'm running a Debian 9 server with a couple of VirtualBox ...
0
votes
2answers
345 views

Can't connect to local MySQL server through socket

All commands in debian9's interactive non-login shell (graphical mode). I want to backup mysql before reboot or shutdown. who test tty7 2018-02-01 18:26 (:0) test@world:~$ pwd /home/test ...
0
votes
0answers
392 views

Ubuntu - Grub menu won't show up anymore after low battery shutdown

I have dualbooted my MacBookAir and have been using my Ubuntu 16.04.3 LTS (Xenial Xerus) partition without any issue for a long time. Now when I restart my computer, the screen goes black and computer ...
0
votes
1answer
37 views

What could have caused a symbolic link to be deleted?

About a week ago I changed the timezone on my VPS using the following command: sudo ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime A couple of days later I get up in the morning and find the ...
0
votes
1answer
368 views

How to put several “reboot” in nohup?

We need a oneliner for rebooting systems to ensure that they are really rebooting, because many times, our reboot just hangs and thus we can only resolve that by going into the console. Something like ...
0
votes
2answers
553 views

Command to reboot machine when no users are logged in?

Is there a command to reboot a machine whenever the next time that there are no current users logged in occur? Currently, I have to SSH to machines and use the "w" command to see the users logged in ...
3
votes
1answer
15k views

sudo reboot -> Failed to talk to init daemon

On my Raspberry Pi runs jessie. After installing mosquitto I can not run sudo reboot anymore. This error appears: "Failed to talk to init daemon.". What could be the problem? I have already ...
3
votes
0answers
267 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
1
vote
1answer
1k views

Why `journalctl --list-boots` doesn't match what `uptime` and `who -b` report?

Here's a test script I used: last_reboot=$(last reboot | grep 'still running' | awk '{for (i=5; i<=NF; i++) printf $i FS}' | awk '{for (i=1; i<=NF - 2; i++) printf $i FS}') if [ "$last_reboot" ]...
0
votes
0answers
46 views

Safe reboot cron job with fallback on SysRq reset issue

I'm trying to setup a cron job to reboot devices daily. With a safe callback to a SysRq reset if for some reason the reboot does hang (issue being that SSH gets killed and the device never reboots so ...
1
vote
1answer
1k views

Fedora workstation 27 freezes after login

I am using Asus zenbook pro ux501vw and have recently successfully installed fedora 27 and then shut down with it. When I restarted it for the very first time, I typed in my password and it went to a ...
3
votes
1answer
717 views

Software cold reboot

I'm finding that grub-reboot works only on a cold reboot (shutdown and then manual boot), but not on a simple reboot or shutdown -r. With these usual reboot commands, Ubuntu 16.04 occasionally shows a ...
1
vote
2answers
1k views

How to run shell script in background while start On CentOS? [duplicate]

I have a shell script contain loop like this: while true do if ... ; then ... else ... break fi done I want this script to run backend while OS start. I have try to add this script ...
1
vote
2answers
147 views

How to check if you have permission to reboot without actaully running the reboot command?

Is there a way to check if you have permission to reboot without actually running sudo reboot? I don't want to try it, because if I have permission, then it will just reboot the server and I don't ...
1
vote
1answer
93 views

Why isn't my Apache server starting automatically wnen I reboot my server?

I'm using Amazon Linux. I just Apache via yum, however, I can't get it to automatically start when I reboot my server, despite the fact it starts on the command line ... [myuser@mymachine ~]$ sudo ...
-1
votes
3answers
2k views

SSH service not working after fresh restart

I have a ASUS Tinker Board. I have been customizing the provided Debian image so that I can use the board. However, the SSH service never works after a fresh boot, until I login to the server ...
0
votes
1answer
542 views

Problem with rebooting Linux Mint 18 Cinnamon 32-bit

I was browsing on FireFox in Linux mint 18 cinnamon and I couldn't log in my google account, so I closed the browser, but after I tried to turn it back on, it showed me a notification: "Firefox is ...
0
votes
1answer
295 views

restarting a script upon boot in screen/tmux

I have a script that runs in dot net, that works fine when starting it through putty- either in screen or in tmux. However i have been trying for in total over 8 hours to get it to work with systemd ...
5
votes
1answer
1k views

Is the `reboot` command safe to use?

The reboot command appears to work differently depending on the distribution. For example on Ubuntu/Debian and CentOS it shuts down services first while on Arch Linux it reboots immediately (at least ...