nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Need Some Grub Advice

This is a discussion on Need Some Grub Advice within the Ubuntu / Debian forums, part of the Linux Distribution category; Something mysterious happened on my remote dedicated server today that screwed up the boot process so that it was getting ...


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-08-2008, 10:40 AM
Junior Member
User
 
Join Date: Aug 2008
OS: Debian
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
websissy is on a distinguished road
Default Need Some Grub Advice

Something mysterious happened on my remote dedicated server today that screwed up the boot process so that it was getting an error 2 during the GRUB bootstrap.

Code:
        GRUB Loading stage1.5.
        GRUB loading, please wait...
        Error 2
Once this error occurred, the boot process froze and there was no way to get control back or login either because the boot process never completed.

Not knowing what was wrong (I wasn't seeing this message because it was happening during boot-up) I contacted my server host and requested server KVM/IP access. Once I had enough access to SEE the error, I contacted them again explaining I could do nothing to fix the problem if I could not get keyboard access.

So somebody there modified the GRUB start-up files enough to cause it to stop and ask me which of two bootstraps I want to run. That gave me the entry point I needed to grab control, check what was happening and decide how to fix it.

I at least have the system booting again. I'm still getting errors later in the boot process but at least it's booting and not locking up like it was before.

The problem NOW is I can't figure out how to tell GRUB to SAVE my changes to its startup process so I won't have to re-enter them every time I reboot the server. At the moment, I must be present and choose the boot up process I want to modify within 10 seconds or I have to restart the system all over again with CTRL-ALT-DEL from the KVM console and try again. Then I make my changes and the reboot proceeds and completes ( with the forementioned errors ) but the next time I restart the server, I'm right back in the same situation again.

Does anyone here who know enough about using GRUB in console mode to tell me how to force it to SAVE my changes? So I don't have to make the same changes every time I reboot the server?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 14-08-2008, 07:52 PM
Junior Member
User
 
Join Date: Aug 2008
OS: Debian
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
websissy is on a distinguished road
Default

The solution to this problem turned out to be: make the tested change in the menu.lst file in /boot/grub. Saving it there made it permanent.

Hope this helps someone else later.
Reply With Quote
  #3 (permalink)  
Old 16-08-2008, 04:28 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default Default Grub config file location

Red Hat / CentOS / Fedora Linux => /etc/grub.conf (/boot/grub/grub.conf)

Debian / Ubuntu Linux => /boot/grub/menu.lst
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
/boot/grub/grub.conf , /boot/grub/menu.lst , /etc/grub.conf , boot loader , grub , linux


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
career Advice vikas027 The Hangout 5 17-08-2008 10:21 PM
Seeking advice on server virtualization satimis Getting started tutorials 4 20-06-2008 01:38 PM
Boot thru grub linux_sym Getting started tutorials 5 24-03-2008 11:55 PM
Seeking advice on webmail software satimis Mail Servers 9 30-11-2007 08:55 PM
Ubuntu GRUB Problem surmandal Linux software 7 01-09-2007 10:31 PM


All times are GMT +5.5. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38