Ubuntu :: Shutdown Command For GRUB?
Jun 4, 2010At the GRUB menu, what is the command to shut down? Typing "halt" in the command line doesn't work and only hangs the computer on the command line screen. Heard that "init 0" works?
View 1 RepliesAt the GRUB menu, what is the command to shut down? Typing "halt" in the command line doesn't work and only hangs the computer on the command line screen. Heard that "init 0" works?
View 1 Replieslooking for a command that shutdown/reboot my ubuntu just same as process that happened when I press shutdown buttonIn fact I need to close all programs that are running and then PC shutdown (that happened when I press shutdown button).
View 9 Replies View Relatedmy Setup is Fedora 14 x64 + radeon hd 4830 i've downloaded .run package from ati site with latest driver for x64 systems. installed it, but didn't edited grub.conf becouse i didn't understood anything there (probably didn't spent enough time to get things understand) Now i've lost possibility to enter my Fedora system. during boot it lost it's modern blue boot screen (with filling drop), it was replaced by standard old boot screen with triple-color stripe. after this boot screen monitor start blinking going on and off. and on last step i'm getting "Fedora 14 boot bla bla bla something" on screen. nothing works except Ctrl+Alt+Delete. system reboots showing successful daemons shutting sequence. How can i edit grub menu from initial grub screen is it possible to it's own 'e' option or 'c' from grub command line?
View 4 Replies View RelatedI have been using ubuntu from past two years. Because of battery failure my laptop shutdown forcefully. Now if i choose ubuntu from login screen, it displaying grub login screen. how to recover ubuntu. And i am using ubuntu 9.10 and installed ubuntu through wubi in HP dv67676tx.
View 1 Replies View RelatedI'm use ubuntu 8.10 ( on a msi 645 notebook ) and i'm trying to shutdown from grub. I have add these entries to menu.lst after the ### END AUTOMAGIC KERNEL LIST
title Halt
halt
I only get a black screen but the pc is still running someone said it only put grub to sleep or something. I also tried this commands sudo shutdown -h now or init 0, poweroff... but there all "unrecognized commands" in grub... Is there a possibilty to shutdown from grub.
Does anybody know of a command to get this Gnome shutdown dialog?
View 7 Replies View Relatedam starting to get this figured out. finally got the wifi working on a HP touchsmart tx2 laptop and once i give ubuntu a total system shutdown command this system restarts, is this normal or do i need to fix something?
View 2 Replies View RelatedI've installed Alarm Clock and was planning to use it to shut down my PC at a certain time every day. What command would I use to execute the shutdown, "sudo shutdown -P" ?
View 5 Replies View RelatedI was playing with the Gnome-shell and my gui crashed. I was stuck in full-screen Terminal (i.e., Ctrl Alt F2) but I could not figure out how to shutdown/restart the computer.Anybody know if there's a command for this that works from within Terminal?
View 8 Replies View RelatedWhen I shutdown my server it seems to lock up. I use ssh for a headless unit and I can reboot fine, but I told it to shutdown and disconnected me and stopped logging (as far as I can tell) and then nothing. The lights stayed on and I had to press the power button. Is there a way to keep the logger running or to look someplace other then messages. I'm not great with logs.
View 8 Replies View RelatedI use Rapidshare a lot to download files and wanted a simple terminal command or program that would shutdown my monitor so I don't have to manually do it.
View 9 Replies View RelatedCan I use the grub command line to reinstall grub from a ubuntu cd?
View 1 Replies View RelatedI know that there is a nice little launcher that will run the script for Grub to select a menu option upon shutdown for a reboot [URL]
I however would like to use this from Windows XP and have grub select menu item 2 during a reboot. Does anyone know if there is any way to set Grub commands from within Windows?
I want my server to automatically shutdown at 23:59 and startup at 8:00. The startup is handled through by bios but the shutdown is to be managed through cron. I thought I had this working, I actually swear I had it working because I thought the uptime command showed the appropriate uptime. I happened to be up and was streaming a movie from my server when at the time it should've shutdown it actually just restarted. If I run the shutdown -h now command by itself it works well but the scheduled command just restarts the server. Here is the what is shown when I enter crontab -e.
View 9 Replies View RelatedIs there a command to remotely shutdown a computer on the local network? I have a computer running as a file/print server and I have no screen or keyboard connected to it. Would be great if I could shut it down from my laptop. I have the needed credentials (as I'm guessing these would be needed in the command?)
View 2 Replies View Relatedtechnically, this is UNR with lxde installed after extended UNR use. i like being able to hit my power button in gnome, and getting a message asking what you want to do, or cancel if needed. well, in lxde, the shutdown button brings up a similar message. could i map the power button to show that popup in lxde?
View 1 Replies View RelatedI created a new partition in Windows Vista which, after rebooting, screwed up Grub. I believe that I need to reinstall Grub and everything should be fine, and I remember reading the command to do this on this forum, but I can't find it. When I boot, I now get a black screen with white letters instead of the Grub boot menu. It says something about "Minimal Grub" at the top and gives me a prompt that looks like this.
grub>
I can boot the live CD and I have internet access with it, but I can not remember the terminal command to repair Grub. Can someone tell me this command?
A failed upgrade, from disk images, of Fedora 10 to 11 resulted in no GRUB bootloader main menu appearing on bootup (no WIN, no LINUX choices from which to boot). I am booted directly into the GRUB command shell...so, no WIN, no LINUX, nothing. And my understanding of GRUB shell commands is very low.I have 2 hard disks, WIN on the first, LINUX on the second. I believe GRUB Bootloader is on the first disk.Sadly, I have no external install media.An old grub.conf hardcopy indicates that root =/dev/sdb2, root (hd1,0), kernel /vmlinuz....olderversion...(relative to /boot),initrd /initrd...olderversion... (relative to boot). and WINDOWS on (hd0,1), with chainloader +1
I need to somehow get past this grub shell, and re-install/re-instate the grub bootloader, so it can boot normally.What grub command(s) must I use? I've played around with the commands, but with no success.I worry that if I can't resolve this, the whole machine may be useless.
I am running Debian Squeeze on an Intel DH55TC motherboard. When I issue a shutdown command
shutdown -h now
The system goes shutting down. Eveything looks fine, and the main console shows all process being stopped. In the end it says "System will now halt". Then a few seconds later, it restarts. It is unclear what is causing this, because nothing is written to the screen. It just goes blank and starts rebooting. Looking afterwards in syslog doesn't show anything also.
I guess there is some bash shell trick to run poweroff when an other command is over, like let's say su -c 'yum update'.
Creating a shell script with these two commands, the one below the other, would be sufficient? I can't try it now.
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 RelatedI was reading that if I want to do a one time scheduled command, I should use at, which I've never done, as opposed to cron, which i'm kinda familiar with. But what I want to do is reboot my server at 3am tomorrow and force it to check the file systems with a shutdown -rF. For this do I even need to use "at" or could I just say shutdown -rF 3:00.Will that also know that I mean 3am tomorrow and not say in 3 minutes from now or 3pm?
View 14 Replies View RelatedI have a custom command I've made to quickly shut down all of my xen instances.
Code:
[root@LCENT02 ~]# virtdown
-bash: syntax error near unexpected token `2'
As you can see it fails when I try to run it on the command line. It is stored in an ~/.env file in my home directory. What is odd to me is if I open the .env file and copy the command from there and paste it into the command line, it does actually work!
Code:
[root@LCENT02 ~]# for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Domain 1 is being shutdown
Domain 2 is being shutdown
Domain 3 is being shutdown
And this is how I have the command entered into my .env file:
Code:
alias virtdown="for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Why would this command work if you paste it onto the command line but not use the custom command virtdown?
I shutdown around 4 - 5 hours ago which would be around 14:00 to 15:00 time range. But as you can see there's no entry for it. Why? and how can i find when i last shutdown?
Code:
last
lyle pts/1 :0.0 Tue Jul 6 19:18 still logged in
lyle :0 Tue Jul 6 19:15 still logged in
lyle tty7 :0 Tue Jul 6 19:15 still logged in
[Code]....
I have set up the sodoers file to allow everyone in "group1" full sudo permissions without needing to enter their password.
Is there any way to allow users to perform everything except the shutdown command?
With this issue:
$ sudo shutdown -r now
sudo: shutdown: command not found
Code:
grub-install -v
grub-install (GNU GRUB 0.97)
I loaded GRUB, and now when I reboot it goes straight into the 'grub>' command line. Initially GRUB had the root as (hd0,2), whereas the boot is on (hd0,1)...(hd0,2) is my '/home' partition, and (hd0,1) is my '/' partition... So on a bootup I ran...
Code:
root (hd0,1)
setup (hd0)
Now when I boot I still get the 'grub>' command line, but now the root is correct.
From 'grub>' I can type...
Code:
grub> configfile /boot/grub/menu.lst
GRUB will then show the menu, and I can click the listings to load them. All's fine, but why doesn't GRUB just load the menu.lst without my prompting? How can I automate this process of typing 'configfile /boot/grub/menu.lst' each time I boot?
I can only boot fedora and red hat on my pc, I like fedora but Im having acpi problems and need to upgrade BIOS, which should be done from windows I hear. So I deleted fedora partition and plan on re-installing after all this.I've used http://www.ultimatebootcd.com/Iboot loads up but than complains of not finding something with acpiI tried knoppix but i think i was suppose to extract before I burned Ill try again if suggestedany ideas on how to get windows up i've tried many windows disc to no success
View 10 Replies View RelatedHow 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.
I've used the following script here: [URL] to upgrade Alsa to 1.0.21 in Ubuntu 8.04. Now whenever I run:
Code:
sudo shutdown -h <time> or sudo reboot from the terminal I get a rather annoying beep sound. What's even more annoying is if I use the shutdown command to specify a time I get a beep every 10 minutes or so.
I've tried disabling the terminal beep in the terminal profile, disabling the beep in System/Preferences/Sound, adding "blacklist pcspkr" to /etc/modprobe.d/blacklist, and running gconf-editor from the terminal and setting /desktop/gnome/peripherals/keyboard/bell_mode to 'off' rather than 'on'.