There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
grub

Reply  
Thread Tools
kidnewbie's Avatar
Member with 84 posts.
 
Join Date: Mar 2006
19-Sep-2006, 05:37 PM #1
grub
is there a way to add a choice in grub to shutdown the pc?

right now my grub has two choices. winxp and ubuntu. but i wanna add a third choice that could shutdown the pc. i was wondering if that was possible.

thanks
O111111O's Avatar
Computer Specs
Senior Member with 896 posts.
 
Join Date: Aug 2005
Location: Right here.
Experience: 31337
19-Sep-2006, 08:58 PM #2
Not to sound silly, but have you tried the power button? That's why I use.

When grub starts, there are no file systems mounted. If there are no filesystems mounted, it's kinda hard to corrupt them.

Also, soft shutdowns generally rely on APC hooks from the OS. Unless you can find something that can create those hooks from a DOS partition maybe, the only thing I could think of would be to create a custom kernel with an init script that simply shuts down the system.

Or, there's that power button.
__________________
That's nice, last I read; there was a free opensource dev for [insert product name here]
prunejuice's Avatar
Senior Member with 2,568 posts.
 
Join Date: Apr 2002
19-Sep-2006, 09:14 PM #3
Why would you want to shut down your computer immediately after booting up?

Not that you shouldn't have the choice, but still...
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
19-Sep-2006, 09:22 PM #4
If you have a Grub menu then press c will drop you into a Grub prompt.

Type "help" will list all the commands you can run at a Grub prompt.

Code:
Halt
is the command to shut down the PC. You can put it in the menu.lst

Like I said Grub is a mini operating system and nobody bothers to stretch it. What a shame.

Grub runs faster than anything on earth too!
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:11 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.