Junos OS

last person joined: 6 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Junos can't boot , stay at debugging subshell

    Posted 03-31-2009 22:54

    Dear sir,

     

    I upgrade the Junos (M10i) ,when I reboot the router , the router stayed at "debugging subshell" .Below is the log.

     

    _________________

    ad1: 38154MB <HTE541040G9AT00> [77520/16/63] at ata0-slave using UDMA33
    Mounting root from cd9660:/dev/md0c
    Disabling watchdog
    =================== Bootstrap installer starting ===================
    Initialized the environment
    Routing engine model is RE-850
    Sourcing /sbin/RE-850
    Discovered that flash disk = ad0 , hard disk = ad1
    WARNING: R/W mount of /var denied.  Filesystem is not clean - run fsck
    mount: /dev/ad1s1f: Operation not permitted
    ERROR: mount_partition: Mount /dev/ad1s1a /mnt failed
    You are now in a debugging subshell (you may not see a prompt)...
    #

     

    _______________-

     

    How I can do to reboot the router at nomal.



  • 2.  RE: Junos can't boot , stay at debugging subshell
    Best Answer

    Posted 04-01-2009 01:58
    The boot failed because one of the filesystems is in an inconsistent state.  You'll need to manually run fsck on the /var partition (/dev/ad1s1f) and get things cleaned up before it will boot normally.


  • 3.  RE: Junos can't boot , stay at debugging subshell

    Posted 04-01-2009 20:27

    Thanks for Bantoph & Loup2.

    I had solved this case.

     

    First  I used command" fsck /dev/ad1s1a"  It would't run

    Then I used command" fsck -y ufs /dev/ad1s1a" and "fsck -y ufs /dev/ad1s1f"

    Then reboot the router.

     

    And then I was OK.

     



  • 4.  RE: Junos can't boot , stay at debugging subshell

    Posted 08-12-2009 04:43

    Hi,

    I have a similar problem and followed the same suggested solution but the router still returns to debugging subshell after a reboot. 

     

    Timecounter "TSC" frequency 398935746 Hz quality 800
    Timecounters tick every 1.000 msec
    md0: Preloaded image </boot/modules/mdimg> 5783552 bytes at 0xc09ed554
    ad1: 38154MB <FUJITSU MHV2040AS 00000096> at ata0-slave UDMA33
    Trying to mount root from cd9660:/dev/md0
    Disabling watchdog
    =================== Bootstrap installer starting ===================
    Initialized the environment
    Routing engine model is RE-5.0
    Discovered that flash disk = ad0 , hard disk = ad1
    ERROR: discover_install_drive: tmp/preinstall/install.conf not found
    You are now in a debugging subshell (you may not see a prompt)...

     

    This is in the debugging subshell prompt with the directories output.

     

    # pwd
    /
    # ls
    anim        dev        mnt        tmp
    bin        etc        packagemnt    usr
    boot        instrootmnt    sbin        var
    # df -k
    Filesystem  512-blocks   Used    Avail Capacity  Mounted on
    /dev/md0         11296  11296        0   100%    /
    devfs                2      2        0   100%    /dev
    devfs                2      2        0   100%    /dev
    /dev/ad1s1f   73308120 643000 66800472     1%    /mnt

     

     

     

    I was able to run the fsck in /dev/ad1s1f  but it failed when I ran it in /dev/md0.

     

    # fsck -y /dev/admd0
    fsck: exec fsck_cd9660 for /dev/md0: No such file or directory
    # fsck /-y /dev/ad1s1f
    ** /dev/ad1s1f (NO WRITE)
    ** Last Mounted on /mnt
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    200 files, 160750 used, 18166280 free (464 frags, 2270727 blocks, 0.0% fragmentation)

     



  • 5.  RE: Junos can't boot , stay at debugging subshell

    Posted 12-07-2016 12:59

    My customer had a similar issue on a MX960 with RE-1800 and we fix it by

    doing a “request system snapshot”.



  • 6.  RE: Junos can't boot , stay at debugging subshell

     
    Posted 04-01-2009 02:04

    Hi

     

    Which versions of Junos where you starting at and moving to ?

     

    We've had one problem (complete crash after upgrade) when we moved from V8.2 to V8.5

    We had the command mirror-flash-on disk in the global "system" configuration of the router and the M10i was stuck in the db prompt after upgrade.

     

    I think the simpliest way to start your router back is to use a reinstall media software on a PCMCIA compact flash:

     

    See the posts regarding this kind of installation:

    http://forums.juniper.net/jnet/board/message?board.id=JUNOS&message.id=204

    http://forums.juniper.net/jnet/board/message?board.id=JUNOS&message.id=208

     

    I don't know if you are in the same case as I was ?

    HTH