LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-14-2015, 10:47 AM   #1
danson1
LQ Newbie
 
Registered: Mar 2015
Location: Pa.
Distribution: ubuntu 14.04
Posts: 3

Rep: Reputation: Disabled
grub


How and what line do I edit in grub to effect a shutdown/restart?
 
Old 03-14-2015, 11:14 AM   #2
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
in grub there are "halt" and "reboot" commands

Code:
title Shutdown
halt
Code:
title Reboot
reboot
should work
 
1 members found this post helpful.
Old 04-01-2015, 11:26 AM   #3
danson1
LQ Newbie
 
Registered: Mar 2015
Location: Pa.
Distribution: ubuntu 14.04
Posts: 3

Original Poster
Rep: Reputation: Disabled
Dear gengisdave, Thanx for your quick support---Dan---
 
Old 04-01-2015, 11:43 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
If using grub2 then:

Code:
menuentry "Halt" {
 insmod halt
 halt
}

menuentry "Reboot" {
 insmod reboot
 reboot
}
 
Old 04-01-2015, 01:26 PM   #5
danson1
LQ Newbie
 
Registered: Mar 2015
Location: Pa.
Distribution: ubuntu 14.04
Posts: 3

Original Poster
Rep: Reputation: Disabled
Igot the desired result from your 1st post/reply---Dan---
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
GRUB GRUB GRUB.... all over the display while booting with USB. kapsikum Linux - General 5 01-08-2010 04:29 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration