hi
I have my system dual-booting with Vista and F8 but was wondering how I shutdown linux from the terminal? shutdown isn't recognised by bash...? (I have a console login which then sends me to an X selection screen-in case it hinders the problem)
here is my power management options if anything needs altering
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_VERBOSE is not set
# CONFIG_DISABLE_CONSOLE_SUSPEND is not set
CONFIG_PM_TRACE=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND_SMP_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_HIBERNATION_SMP_POSSIBLE=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=""
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=m
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_BLACKLIST_YEAR=1999
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
Shutting down F8 from terminal
Page 1 of 19 Replies - 907 Views - Last Post: 13 April 2008 - 12:43 PM
Replies To: Shutting down F8 from terminal
#2
Re: Shutting down F8 from terminal
Posted 10 April 2008 - 10:13 PM
What do you mean by isn't recognized. It just doesn't do anything?
How about using the command "halt"?
I don't know about F8, but I know in Ubuntu I have to do "sudo halt".
Maybe you need sudo?
Per
How about using the command "halt"?
I don't know about F8, but I know in Ubuntu I have to do "sudo halt".
Maybe you need sudo?
Per
#3
Re: Shutting down F8 from terminal
Posted 11 April 2008 - 01:15 AM
Most likely you're not doing it as root - Linux, unlike Windows, only the superuser can shut down the system.. You'll have to change to root before you can shutdown.
Either, like pertheusual said, you can try sudo shutdown -h now. Alternately, you can do -
I give both options because I'm not sure if Fedora 8 sets up sudo or not. If neither of these work, can you copy and paste the full error?
Either, like pertheusual said, you can try sudo shutdown -h now. Alternately, you can do -
[email protected] # su - Enter password: root $ shutdown -h now
I give both options because I'm not sure if Fedora 8 sets up sudo or not. If neither of these work, can you copy and paste the full error?
#4
Re: Shutting down F8 from terminal
Posted 11 April 2008 - 02:40 AM
MorphiusFaydal, on 11 Apr, 2008 - 01:15 AM, said:
Most likely you're not doing it as root - Linux, unlike Windows, only the superuser can shut down the system.. You'll have to change to root before you can shutdown.
Either, like pertheusual said, you can try sudo shutdown -h now. Alternately, you can do -
I give both options because I'm not sure if Fedora 8 sets up sudo or not. If neither of these work, can you copy and paste the full error?
Either, like pertheusual said, you can try sudo shutdown -h now. Alternately, you can do -
[email protected] # su - Enter password: root $ shutdown -h now
I give both options because I'm not sure if Fedora 8 sets up sudo or not. If neither of these work, can you copy and paste the full error?
The message is:
root-) shutdown -h now
bash: shutdown: command not found
#5
Re: Shutting down F8 from terminal
Posted 11 April 2008 - 05:00 AM
shutdown, init, reboot are all in /sbin (or /usr/sbin) which are only accessible from super user mode.
#6
Re: Shutting down F8 from terminal
Posted 11 April 2008 - 12:27 PM
#7
Re: Shutting down F8 from terminal
Posted 11 April 2008 - 12:44 PM
Okay, if something still doesn't work, we still need more info. Did it say "command not found" again?
And if so, when you do "su", do you have a space and a dash after it like in the example given above?
Also, check if "sudo" is installed, then you can just run "sudo shutdown -h now". It's only one command instead of two.
Per
And if so, when you do "su", do you have a space and a dash after it like in the example given above?
Also, check if "sudo" is installed, then you can just run "sudo shutdown -h now". It's only one command instead of two.
Per
#8
Re: Shutting down F8 from terminal
Posted 11 April 2008 - 01:48 PM
you have to do a su - with the - to get the correct environment for root
#9
Re: Shutting down F8 from terminal
Posted 13 April 2008 - 12:18 AM
Yeah, make sure you don't forget that hyphen. It makes it load the proper $PATH variable for root, rather than just acting as your regular user with root permissions. Seeing as how `shutdown` is in /sbin, it's not in the default $PATH, and thus won't work if you just `su`, rather than `su -`. You could `/sbin/shutdown -h now`, but it's shorter to tack that hyphen onto the `su`.
#10
Re: Shutting down F8 from terminal
Posted 13 April 2008 - 12:43 PM
I usually do "sudo init 0", works better than the shutdown command if you don't need things like a timer.
Page 1 of 1

New Topic/Question
This topic is locked



MultiQuote




|