Find the answer to your Linux question:
Results 1 to 5 of 5
hi all When i type init 6 in the terminal, it reboots the system by unloading modules,filesystem....etc. all things are in /etc/rc... folders or anything present in kernel code...Can anyone ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Location
    India
    Posts
    78

    help in init 6.....

    hi all
    When i type init 6 in the terminal, it reboots the system by unloading modules,filesystem....etc. all things are in /etc/rc... folders or anything present in kernel code...Can anyone explain the reboot process.
    Thanks in advance.

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by East View Post
    hi all
    When i type init 6 in the terminal, it reboots the system by unloading modules,filesystem....etc. all things are in /etc/rc... folders or anything present in kernel code...Can anyone explain the reboot process.
    Thanks in advance.
    I am not sure if I understand the question.

    The 6th runlevel usually means "reboot". 0 is halt. 1 is single user. Usually, 3 is used for normal operation and 5 for X.

    Anyway, this is arbitrary. The runlevels are defined usually in /etc/inittab, and what is done on each runlevel, usually depends on that file, and the stuff in /etc/rc.d or /etc/runlevels, it depends on the init system of each distro really.

    Besides that, all what happens before init, it's kernel stuff and doesn't have anything to do with init.

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Location
    India
    Posts
    78
    Currently i am using RedHat. my doubt is once user types init 6 in the terminal, /etc/init.d/halt is called and in that all the modules and filesystem are unmounted ( is it correct?) and finally /sbin/reboot is called to reboot the system. So at this time whether the system switches to real mode or not ? I want some doc which deals about after system restart and before system boots up and things happen in BIOS like....Can anyone help me

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Is this of any use? I found it by putting init into <Linux> - Google Search.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  5. #5
    Just Joined!
    Join Date
    Jan 2008
    Location
    India
    Posts
    78
    I found /usr/src/linux2.6.23.12/arch/i386/kernel/reboot.c. In this file, when system reboots the OS switches from protected mode to real mode. when this corresponding object file will be used? is any differnce b/w /sbin/reboot and the above specified reboot.o. Can anyone explain me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...