Find the answer to your Linux question:
Results 1 to 3 of 3
Hi every one, I'm able to reboot my target board with the processor [mpc5200] using the command [reboot -f] from the bash prompt. But i can't able to reboot by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    2

    What is the difference between command [reboot vs reboot -f]


    Hi every one,
    I'm able to reboot my target board with the

    processor [mpc5200] using the command [reboot -f]

    from the bash prompt.
    But i can't able to reboot by the command [reboot].
    What should i need to do if i want to use the

    command [reboot]
    Plz help me.
    Thanks in Advance

  2. #2
    Just Joined! linuxscope's Avatar
    Join Date
    Sep 2007
    Posts
    13
    Reboot notes that the system is being brought down. ther tells the kernel to halt, reboot or poweroff the system. If halt or reboot is called when the system is not in runlevel 0 or 6, shut­
    down( will be invoked instead.

    Reboot -f is force halt without invoking shutdown.

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    2

    Issue of reboot

    Thanks for the reply,

    The inittab is a file it is following path.
    rootfs/etc/inittab

    The content in the file is given bellow. I had placed initdefault as runlevel-5
    id:5:initdefault:
    si:5:sysinit:/etc/rc.d/rc.sysinit
    sh:5:respawn:/bin/bash
    s1::ctrlaltdel:/sbin/shutdown -r now
    s2:owerfail:/sbin/shutdown -h +2

    I'd placed rc5.d & rc6.d in the following path rootfs/etc/rc.d/ .
    Eventhough when i tried to reboot the system from kernel using the command "reboot".

    I'm receving the statement as follows,
    INIT: Switching to runlevel: 6
    INIT: Sending processes the TERM signal
    INIT: no more processes left in this runlevel


    When i tried to reboot the system with the command "reboot -f". The target board reboots properly.

    what are all the things i need to check.

    Please give me a clear solution

    Thanks in Advance

  4. $spacer_open
    $spacer_close

Posting Permissions

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