Escaping GRUB rescue prompt

1,278 views
Skip to first unread message

ay...@onlab.us

unread,
Apr 15, 2016, 6:08:13 PM4/15/16
to opennetworklinux
Hi,

I have an Accton 6712 onto which I am trying to install ONL. After fetching the installer, running it, and rebooting, I am brought to the grub rescue prompt. Quick inspection tells me that I can't find any of my files (including in lost+found, and the 'normal' grub module):

grub rescue> set                                                               
cmdpath=(hd0)                                                                  
prefix=(hd0,gpt4)/grub                                                         
root=hd0,gpt4
grub rescue>                                                                  
grub rescue> ls /                                                              
./ ../ lost+found/

As a result, I also don't have access to the typical grub commands e.g. exit, boot, etc.

A reboot doesn't seem to get me back to the ONIE prompt, nor a loader prompt to let me choose.
Does anyone know of a way to get back to the ONIE prompt to from the rescue prompt?


Thanks,
Ayaka

Rob Sherwood

unread,
Apr 15, 2016, 6:38:13 PM4/15/16
to akoshibe, opennetworklinux
Hi Akaya,

Short story is that's not supposed to happen.  Let me track down a reinstaller image for you and then we can debug how it happened in the first place.

- Rob
.

--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ayaka Koshibe

unread,
Apr 15, 2016, 6:40:47 PM4/15/16
to Rob Sherwood, opennetworklinux
Hi Rob,

Thanks for the reply. The installer I had used what whichever that

wget http://opennetlinux.org/binaries/latest-amd64.installer

would fetch....


Ayaka

Rob Sherwood

unread,
Apr 17, 2016, 9:55:50 AM4/17/16
to Ayaka Koshibe, opennetworklinux
Hi Ayaka,

So, there is an .ISO file that you can get from Accton that will reinstall the disk to a factory default - I apparently legally can't give you my copy; you need to get it directly from them.  I believe you can apply for this file via the Accton/Edge-Core online support with http://www.edge-core.com/OnlineReg.asp.  Hopefully someone from Accton/Edge-Core can help you with this process -- there are a bunch of them on this mailing list.

Once you get this file, you can either put it onto a USB disk or put it onto a PXE boot server, and when it loads, it will reset the system so we can fix what's going on.  

Guessing a bit as to what went wrong, if you have an older system, then perhaps it had an older version of ONIE that did not interact well with the installer.  If by chance this was the case, it would be this same process to update to the newest version of ONIE.

Let me know if this helps,

- Rob
.

Jeffrey Townsend

unread,
Apr 17, 2016, 11:42:32 AM4/17/16
to Rob Sherwood, Ayaka Koshibe, opennetworklinux
Ayaka, 

You might try the following steps to manually boot into ONIE. From there you can re-run an installer or ONIE updater. 


# This should be the partition on the ONIE partition on the AS6712. 
# It might be hd1 or hd0. Change appropriately. 
grub rescuels (hd0,gpt2)/
./ ../ lost+found/ onie/ grub/ grubenv

# These instructions will load the kernel and ONIE initrd. 
grub rescueset prefix=(hd0,gpt2)/grub
grub rescueset root=(hd0,gpt2)
grub rescueinsmod normal
grub rescueinsmod linux
grub rescuels /onie
./ ../ vmlinuz-3.2.35-onie initrd.img-3.2.35-onie tools/ grubgrub.d/ config/
grub rescuelinux /onie/vmlinuz-3.2.35-onie console=tty0 console=ttyS1,115200n8
grub rescueinitrd /onie/initrd.img-3.2.35-onie

# The system will not boot into ONIE and you can recover or re-install from there. 
grub rescueboot


Jeff

Ayaka Koshibe

unread,
Apr 18, 2016, 2:02:30 AM4/18/16
to Rob Sherwood, opennetworklinux
Hi Rob,

Thanks, I'll try to apply for the reinstaller as you suggest.

It's quite odd, I had three other switches of the same model for which
the install process went swimmingly...


Ayaka

On Sun, Apr 17, 2016 at 6:55 AM, Rob Sherwood

Ayaka Koshibe

unread,
Apr 18, 2016, 2:02:37 AM4/18/16
to Jeffrey Townsend, Rob Sherwood, opennetworklinux
Hi Jeff,

From the bit of digging that I did, I wasn't able to find any
files/directories except for an empty lost+found. But this is
definitely good to know for future reference -- thank you.


Ayaka

Ayaka Koshibe

unread,
Apr 18, 2016, 5:52:28 PM4/18/16
to Jeffrey Townsend, Rob Sherwood, opennetworklinux
Thanks for your help; I've managed to get my switch reinstalled and
now it's up and running.


Ayaka

Rob Sherwood

unread,
Apr 18, 2016, 6:00:06 PM4/18/16
to Ayaka Koshibe, Jeffrey Townsend, opennetworklinux
Good to hear, though I'm still concerned about the original problem.  Did you execute the same installer script and have a different result?  That could in theory happen if you used the rescue ISO I mentioned because that also has the effect of updating ONIE to a known good version.

That said, glad it's working now.

- Rob
.

Ayaka Koshibe

unread,
Apr 18, 2016, 6:45:20 PM4/18/16
to Rob Sherwood, Jeffrey Townsend, opennetworklinux
Once I was back in ONIE I basically retried fetching the installer,
and running it. I think that all four of the Acctons were running the
same ONIE -- is it possible that my installer happened to be faulty
during my initial run with this one switch?

In any case, thanks again.


Ayaka

On Mon, Apr 18, 2016 at 3:00 PM, Rob Sherwood
Reply all
Reply to author
Forward
0 new messages