LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Safe mode, it that the same as run level 1 ? (https://www.linuxquestions.org/questions/slackware-14/safe-mode-it-that-the-same-as-run-level-1-a-739326/)

crusader7 07-11-2009 01:48 AM

Safe mode, it that the same as run level 1 ?
 
Hello,

If there is a problem in windows you can run in safe mode. From what I understand, safe-mode basically disables a bunch of features making it easier to find the cause of a problem.

Does running in single user mode do the same thing?
If it does, shouldn't I setup safe mode in lilo?

wildwizard 07-11-2009 02:01 AM

Quote:

Originally Posted by crusader7 (Post 3604017)
Does running in single user mode do the same thing?

No, you can not equate the two as the operating systems are totally different.

Quote:

If it does, shouldn't I setup safe mode in lilo?
No, if you ever really need single user mode you can start it by adding "single" to the lilo command after your kernel image name.

Also single user mode does not require you to restart the machine as you can "drop down" to single user mode at any time with "telinit 1"

And single user mode is not used for diagnosing system faults as is Windows "Safe Mode", but rather as a method to stop users and daemons from modifying files while the sysadmin applies system updates.

onebuck 07-11-2009 08:17 AM

Hi,
Quote:

Originally Posted by crusader7 (Post 3604017)
Hello,

If there is a problem in windows you can run in safe mode. From what I understand, safe-mode basically disables a bunch of features making it easier to find the cause of a problem.

Does running in single user mode do the same thing?
If it does, shouldn't I setup safe mode in lilo?

There are times/situations when you might need to boot your OS into the 'single' mode. You can't always 'telinit 1' when a problem occurs that causes unstable operations. Or when booting you experience conditions that will not allow switching. The boot option for 'single' will allow you to enter into a state that will provide the means to perform maintenance safely.

By placing this in your bootloader then the means to boot single is contained therefore providing 1 key entry to boot single. But you could always just pass the 'single' kernel parameter via the boot line.

crusader7 07-11-2009 10:53 PM

Would this be correct?

Quote:

image = /boot/vmlinuz
root = /dev/hdc1
label = Slack
read-only

image = /boot/vmlinuz
boot:single
root = /dev/hdc1
label = Slack1
read-only

niels.horn 07-11-2009 11:55 PM

Quote:

Originally Posted by crusader7 (Post 3604786)
Would this be correct?

The correct syntax would be:

Code:

image = /boot/vmlinuz
root = /dev/hdc1
label = Slack
read-only

image = /boot/vmlinuz
append = " single"
root = /dev/hdc1
label = Slack1
read-only


crusader7 07-13-2009 01:36 PM

Thank you so much.
I have broken my system several times and had trouble getting it to reboot. I think this will help to fix things.

onebuck 07-13-2009 02:29 PM

Hi,

Glad to hear things are joy.

You can tag the thread as solved with the thread tools by checking solved.


All times are GMT -5. The time now is 03:21 PM.