General :: What Really Does 'reboot -f ' Command Does
May 17, 2010
What is the exact way 'reboot -f' command operates? How does it differ from regular reboot/shutdown? Is it proper to restart pc using 'reboot -f', if not why? The reason why I'm asking this: After installing live-distros via USB, I usually do this 'reboot -f' for restarting.
View 1 Replies
ADVERTISEMENT
May 4, 2011
I'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.
View 2 Replies
View Related
Jan 29, 2011
I am running Windows 7 on an HP laptop trying to create a dual boot with Ubunta 9.0.4(?). I left 300 gb in unpartioned space when I loaded Windows 7 to load linux in (new hard drive). I then partioned the 300gb thru Windows using Paragon Hard Disk Manager. After installing Ubunta, it dumps me at the command prompt. Graphics problem?
View 6 Replies
View Related
Oct 7, 2010
I am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.
View 6 Replies
View Related
Dec 1, 2008
Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually
View 5 Replies
View Related
May 8, 2010
I want to reset my password but when I reboot the grub command never comes up. Is there another way?
View 1 Replies
View Related
May 20, 2010
I would like to know if I can reboot my headless ubuntu machine from command line to a different OS on the same disk. To clarify, I want to do this without having to manually choose in GRUB.
OS1: Ubuntu on sda1- it is the default OS in an always on server.
OS2: Fedora on sda2 - have to login into this once in a while.
There are no monitors attached with the machine. So I cannot manually scroll through grub and choose Fedora. I want to know if there is a command I can issue remotely to the Ubuntu server to reboot to Fedora.
View 9 Replies
View Related
May 30, 2011
I'm trying to schedule a reboot ,using the 'at' command. Normally to reboot I have to be 'root'. I tried using sudo to start 'at',to no avail. How would I type the command ,using at, to reboot?
View 2 Replies
View Related
Jun 6, 2011
I have problem with my reboot command.
sudo reboot and sudo halt -f now don't work (they don't reboot)
but sudo halt -p is shutting down my PC.
View 9 Replies
View Related
Mar 11, 2011
I've added entries to my Openbox menu labeled Reboot and Shutdown. Problem is, reboot and shutdown h only work as root, and I never login as root. I've tried su-to-root -c reboot, but the menu entries remain unresponsive. I do not have sudo installed because I feel it is a security issue. However, I found that sudo reboot works with the menu entry, but only if my account is set to use sudo without a password in /etc/sudoers. I use tint2 as my panel, but have had no luck with finding a shutdown/reboot button.
View 4 Replies
View Related
Feb 20, 2016
How to run a script/command before shutdown/reboot in Debian Jessie.
I created a script myshutdown.sh in /etc/init.d/ to shutdown rTorrent if the reboot or shutdown now -h command was executed.
#!/bin/bash
#rTorrent Shutdown Script
echo "Shutting down rTorrent!"
kill -2 `pidof rtorrent`
I set the file as executable.
sudo chmod +x /etc/init.d/myshutdown.sh
I inserted a symlink in the rc0.d directory with the process order K04.
sudo ln -s /etc/init.d/myshutdown.sh /etc/rc0.d/K04myshutdown.sh
I also inserted a symlink in the rc6.d directory with the process order K04.
sudo ln -s /etc/init.d/myshutdown.sh /etc/rc6.d/K04myshutdown.sh
Apparently rc0.d is for shutdown and rc6.d if for reboot
After reboot it appears that rtorrent does not run (I cannot connect to rtorrent via rutorrent) but really what is going on. I am trying to do this because rtorrent does a hash check on all files if it is not shutdown properly. I just want it to shutdown automatically and safely, before the system shuts down.
View 9 Replies
View Related
Nov 4, 2010
I am using Slackware 13.1 on my Asus K40IN, I also use dual boot by LILO with Windows XP. In Windows XP I can reboot or shutdown by select Start -> Turn off Computer, or just physically push the power button, then the machine will shutdown. In my Slackware 13.1, I can physically push the power button, the machine show that it is switching to run level 0, and then it will power off. However, I can not turn it off or restart my machine by the command (run "halt" or "reboot" as root), it show identical things like when I physically push button, but when it turn to status "Restarting machine" or "Turning off machine", my computer hang there, it does not power off machine or restart it. Is there any one experienced this situation? What should I do to fix it?
View 3 Replies
View Related
Nov 13, 2015
I've upgraded a server on our LAN from fully functioning Wheezy to Jessie. All seems fine except remote administering using Putty from my windows workstation when issuing reboot from command line, it goes down and reboots but stops at login prompt asking for username and password and does not come back on the LAN network. This server does not normally have a monitor or keyboard so my ability to remote admin this server in effect is disabled.
If I log on, it will come back on the LAN network. I've checked the logs but can't see any errors. Is it in the configuration of Jessie somewhere or perhaps a Grub issue. I have 5 other production Wheezy servers that I intend to update to Jessie once I understand how to deal with this problem.
View 4 Replies
View Related
May 2, 2011
last week while I was using ssh to the computer1 inside a NAT as usual, I made another tunnel from the computer1 that I was connecting to, to another computer2 inside that NAT (ssh 192.168.1.130) and after making some changes in computer2 I typed reboot. The computer2 rebooted but the tunnel totally hung and I had to kill it in my laptop. Since that day I haven't been able to ssh to the computer1 as I am used to.
Here is some more information:
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/une/.ssh/id_rsa
[code]....
View 3 Replies
View Related
Mar 2, 2011
today i installed nvidia graphic card drivers for fedora13 using yum, after giving reboot command the system hangs during bootin.
View 1 Replies
View Related
Jan 29, 2011
Is there a command i can enter into the terminal or over an SSH session to make an Ubuntu system reboot a few hours later? Sometimes I want to reboot my server and it should take place in the middle of the night when I'm asleep.
View 4 Replies
View Related
Mar 25, 2010
Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.
The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration
Code:
shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.
When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.
The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.
So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown
Code:
[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]
The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.
View 1 Replies
View Related
Feb 16, 2011
last -a shows server rebooted, how to identify the source or cause of reboot? thx reboot system boot Wed Feb 16 08:52 (02:0 2.6.21.7-2.fc8xen
View 2 Replies
View Related
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Jul 3, 2009
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
View 4 Replies
View Related
Apr 30, 2011
I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
Can someone point me in the right direction
View 1 Replies
View Related
Jul 21, 2010
I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.
View 1 Replies
View Related
Jun 7, 2010
Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).
I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?
View 1 Replies
View Related
Apr 14, 2011
When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
View 4 Replies
View Related
Nov 20, 2009
i'm trying to redirect the output of a command to the input of the next command. not sure if i'm going about this the right way. an easy method would be just to store the output of the previous command in a file and redirect input to read that file, but i'm curious to see if this can be done without writing to any files.
View 9 Replies
View Related
Mar 20, 2011
Possible Duplicate: What does this cryptic bash command mean? Why this command crashes Linux? :(){ :|:& };:
View 4 Replies
View Related
May 9, 2011
Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.
So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:
Code:
user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else
[code]....
View 4 Replies
View Related
Apr 4, 2011
i want in the website they ask to enter some input.Code:echo -e "<p>Please Enter Year : c</p> "read Yearif i use this command it will ask the user to enter year in command. but what i want is they ask the user to enter year in web browser.
View 14 Replies
View Related
Apr 29, 2010
i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
[code]....
View 8 Replies
View Related
May 31, 2010
What's the command to delete bash command history?
View 4 Replies
View Related