How to boot single-user from LILO?

How to boot single-user from LILO?

Post by Adam Port » Wed, 15 Mar 1995 14:35:25



How do I pass the "single" parameter to my linux kernel from LILO?  I
want to boot single-user because halfway through the fsck, the kernel
tries to do a SCSI reset (before the "second half") and hangs.

I want to boot single-user and try to fsck by hand.

Any suggestions?

--
                                                        -- Adam
=============================================================================

Systems Programmer:CAIP Center,Rutgers University,Piscataway,NJ: 908/445-0655

 
 
 

How to boot single-user from LILO?

Post by Bryan Taylo » Wed, 15 Mar 1995 15:22:46



> How do I pass the "single" parameter to my linux kernel from LILO?  I
> want to boot single-user because halfway through the fsck, the kernel
> tries to do a SCSI reset (before the "second half") and hangs.

> I want to boot single-user and try to fsck by hand.

> Any suggestions?

During LILO config, pass the init0 command line option to it?  Or
there is a file during startup called, (I think) rc.init that has the
startup parameters.  I still new at this, thought I would try though.
I know that init[0] is the single user command though.



 
 
 

How to boot single-user from LILO?

Post by Robert Milln » Thu, 16 Mar 1995 01:27:25



> How do I pass the "single" parameter to my linux kernel from LILO?  I
> want to boot single-user because halfway through the fsck, the kernel
> tries to do a SCSI reset (before the "second half") and hangs.

> I want to boot single-user and try to fsck by hand.

> Any suggestions?

My lilo.config used the PROPMT and TIMEOUT flags to give me a
LILO prompt that I can start using 10 secs before a boot.  This is more
or less a matter of personal pref but it makes things nicer for me.
With "Linux" assigned to boot my Linux partition "Linux single" boots
into single mode.

        Rob
--




 
 
 

How to boot single-user from LILO?

Post by bill davids » Thu, 16 Mar 1995 06:09:56



| My lilo.config used the PROPMT and TIMEOUT flags to give me a
| LILO prompt that I can start using 10 secs before a boot.  This is more
| or less a matter of personal pref but it makes things nicer for me.
| With "Linux" assigned to boot my Linux partition "Linux single" boots
| into single mode.

Being a devout paranoid, I add the following steps:
 1 - set SETUP to boot hard disk before floppy
 2 - define a password to LILO
 3 - use the restrict LILO option
 4 - took read permission off lilo.conf

The reason I post this is that you have told lots of people how to
boot a Linux system in single user mode, and while I don't believe
in "security by obscurity" I do believe that posting something which
may be a security issue should be accompanied by info to control
that risk if people wish to do so.

I do this for all my clients gateways, etc, unless they particularly
don't want it, in which case I get a signed list of things I told
them were possible holes. Avoids "you never told me that" bad feelings.

 
 
 

How to boot single-user from LILO?

Post by micha » Thu, 16 Mar 1995 12:06:03


When LILO apears hit your ctl and tab keys together, then your tab key.  
This will interrupt LILO and display all teh available kernals identified
in lilo.conf. Then type the name of the kernal you wish to boot then S.

As an example vmlinux S

Good luck...

: How do I pass the "single" parameter to my linux kernel from LILO?  I
: want to boot single-user because halfway through the fsck, the kernel
: tries to do a SCSI reset (before the "second half") and hangs.

: I want to boot single-user and try to fsck by hand.

: Any suggestions?

: --
:                                                       -- Adam
: =============================================================================

: Systems Programmer:CAIP Center,Rutgers University,Piscataway,NJ: 908/445-0655
--
-------------------------------------------------------------------
APlatform - an Internet Service Provider in Mountain View, CA
http://www.aplatform.com - ftp.aplatform.com - voice (415) 941-2647

 
 
 

How to boot single-user from LILO?

Post by Thomas Graich » Wed, 15 Mar 1995 18:38:10


: How do I pass the "single" parameter to my linux kernel from LILO?  I
: want to boot single-user because halfway through the fsck, the kernel
: tries to do a SCSI reset (before the "second half") and hangs.

: I want to boot single-user and try to fsck by hand.

: Any suggestions?

: --
:                                                       -- Adam
: =============================================================================

: Systems Programmer:CAIP Center,Rutgers University,Piscataway,NJ: 908/445-0655

--

 _______________________________________________________||_____________________
                                                  __||
 Perfection is reached, not when there is no  __||       thomas graichen
 longer anything to add, but when there   __||      freie universitaet berlin
 is no longer anything to take away   __||              fachbereich physik
                                  __||
 - Antoine de Saint-Exupery - __||

 
 
 

How to boot single-user from LILO?

Post by Thomas Graich » Wed, 15 Mar 1995 18:45:32


: How do I pass the "single" parameter to my linux kernel from LILO?  I
: want to boot single-user because halfway through the fsck, the kernel
: tries to do a SCSI reset (before the "second half") and hangs.

: I want to boot single-user and try to fsck by hand.

sorry my last posting went a bit wrong - tin left me - you simply has to press
the control button while lilo starts up - then you get the lilo boot: prompt
and now you just have to enter

        lilo boot: linux single

where linux is the name i gave the kernel with the label line in lilo.conf -
hope this helps - t

 _______________________________________________________||_____________________
                                                  __||
 Perfection is reached, not when there is no  __||       thomas graichen
 longer anything to add, but when there   __||      freie universitaet berlin
 is no longer anything to take away   __||              fachbereich physik
                                  __||
 - Antoine de Saint-Exupery - __||

 
 
 

1. single-user vs. multi-user boot

Hi all.  I am in need of some help with single vs. multi-user boot.  I am running
on a Sun Sparc running SunOS 4.1.3.  Currently, when the machine boots up in normal
multi-user mode, it automatically goes into X and runs a certain program.  However,
if booted in single-user mode, we'd like to automatically go into X and run a
different program.  Currently, if booted in single-user mode, it simply goes into
a shell.  I've tried to figure things out by reading the rc, init, and boot man
pages, as well as experimenting with the rc files.  What I've found is that the
order of rc files called for multi-user boot is:  rc.boot, rc.single, rc, and
rc.local.  In single-user boot, the order is:  rc.boot, and rc.single, then into
the shell.  I have also found that it does exit rc.single before going into the
shell.

Is there any way to test in rc.single whether or not the system is booting single
or multi-user?  Also, what exactly causes the shell to come up in single-user mode
since it does indeed exit rc.single, but does not enter rc?  Could something else
besides the shell (like xinit) be called?  

Any and all advice, including other possible sources of information, would be
greatly appreciated.

--Matt Richmond
--

                                      |  own and do not necessarily reflect
That which does not kill us, makes us |  those of E-Systems, Melpar.
strong                                |
          --Freidrich Nietzsche       |

2. Help on vbix & libXm.so.2

3. SECURITY ISSUES: Single user restriction at lilo boot:

4. HELP: Chinon CDS-545 bootup problem with Linux-1.3.61

5. ### Help: Booting in Single User Mode from Lilo

6. SLACKWARE: No Imake.tmpl file??

7. Urgent: single user boot from lilo

8. Kernel RAM size and Dial-on Demand?

9. Why Solaris Boot in Single-User Mode?

10. Installed 2.4, but it only boots up in single-user mode?

11. How do I disable single-user boot-up?

12. Booting as single-user?

13. How to boot in single-user mode?