LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2009, 10:54 PM   #1
JosipMiller
Member
 
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30

Rep: Reputation: 15
Centos won't boot after machine is powered down


Hello,

there is first time for everything. I had OpenSuSE, CentOS 5 and Window$ installed. There were 3 physical hard drives. Bootloader was on OpenSuSE hard disk and I remove it because of media error. After that I installed GRUB onto CentOS hard disk, set up 'grub.conf' according to existing hardware setup. After reboot everything worked great but after I shut down machine and turn it back on after 2 hours I had a GRUB error with only 'GRUB' on the screen.

Then I reinstalled GRUB from install media and GRUB is OK after that and everything boots as I planned. But after next power down same error occurs.

Any ideas ?

Thanks,

Josip

Last edited by JosipMiller; 02-04-2009 at 11:56 PM.
 
Old 02-05-2009, 08:50 AM   #2
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76
Hi.

My first thought is that the BIOS thinks the boot drive is some other drive ... cheers, makyo
 
Old 02-05-2009, 12:56 PM   #3
JosipMiller
Member
 
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by makyo View Post
Hi.

My first thought is that the BIOS thinks the boot drive is some other drive ... cheers, makyo

Thanks for the reply,

My thoughts precisely. I also rearranged boot order and after that it started to boot but when I power off it fails again. It just came to me: there is also setting in BIOS called "reset configuration data". I'll try it in next few minutes.

Thanks,

Josip
 
Old 02-05-2009, 05:43 PM   #4
JosipMiller
Member
 
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by makyo View Post
Hi.

My first thought is that the BIOS thinks the boot drive is some other drive ... cheers, makyo
Nope !

More curiously, after changes in BIOS which are regarding to boot parameters GRUB boots OK but after machine is powered down same problem persists.

Maybe I'll try to remove GRUB and install it again. Can that help ?

Josip
 
Old 02-05-2009, 06:15 PM   #5
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735

Rep: Reputation: 76
Hi.

My second thought is the battery that keeps the RTC/NVRAM alive. I haven't had a battery die on an Intel box, but I had a PowerPC that lost time, knowledge of boot volume, etc., when the battery ran down. The batteries last for years -- how old is the motherboard in the box? ... cheers, makyo
 
Old 02-05-2009, 06:26 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check if the drive order during boot time matches the drive order when running. When the machine first boots, it may see (hd0) as the Linux drive, but afterwards the kernel will say it's /dev/sdb. If you can't update grub, because the install drive is the wrong one after booting, this could be the problem. The fix is to edit /boot/grub/device.map which contains a mapping between the (hdN,N) nomenclature of grub and /dev/sdXN of the kernel.

If the computer is over 3 years old, it could be the motherboard battery. But I would expect that to be the problem after a cold reboot and not a warm one, unless it has a short, and not just dead.
 
Old 02-05-2009, 07:14 PM   #7
JosipMiller
Member
 
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by makyo View Post
Hi.

My second thought is the battery that keeps the RTC/NVRAM alive. I haven't had a battery die on an Intel box, but I had a PowerPC that lost time, knowledge of boot volume, etc., when the battery ran down. The batteries last for years -- how old is the motherboard in the box? ... cheers, makyo
I checked it already.

Battery is in excellent condition, this is brand new Intel BadAxe 2 - D975XBX2 board - so I ruled that out. All data in BIOS stays the same as before. No changes because this BIOS has way to check it out so every anomaly is reported at next reboot.

Thanks,

Josip

Last edited by JosipMiller; 02-06-2009 at 02:06 AM.
 
Old 02-05-2009, 07:17 PM   #8
JosipMiller
Member
 
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
Check if the drive order during boot time matches the drive order when running. When the machine first boots, it may see (hd0) as the Linux drive, but afterwards the kernel will say it's /dev/sdb. If you can't update grub, because the install drive is the wrong one after booting, this could be the problem. The fix is to edit /boot/grub/device.map which contains a mapping between the (hdN,N) nomenclature of grub and /dev/sdXN of the kernel.
I never checked that, thanks. I'll try - hope that will solve the problem.

Josip
 
Old 02-05-2009, 09:56 PM   #9
JosipMiller
Member
 
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
Check if the drive order during boot time matches the drive order when running. When the machine first boots, it may see (hd0) as the Linux drive, but afterwards the kernel will say it's /dev/sdb. If you can't update grub, because the install drive is the wrong one after booting, this could be the problem. The fix is to edit /boot/grub/device.map which contains a mapping between the (hdN,N) nomenclature of grub and /dev/sdXN of the kernel.

If the computer is over 3 years old, it could be the motherboard battery. But I would expect that to be the problem after a cold reboot and not a warm one, unless it has a short, and not just dead.
Solved !

Obviously, hard drive has two kinds of master mode (with and without slave attached). After I disconnected malfunctioned drive with OpenSuSE which was on same cable (it is on PATA interface), drive with CentOS stays in master mode but jumper setting was not set to "stand-alone" mode. I completely forgot that Maxtors sometimes do so.

After I set jumper properly everything worked great !

Thank you all !

Josip
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need to dual boot centos 5.1 with xp but centos is already installed. extendedping Linux - Software 4 05-13-2008 08:40 PM
CentOS install errors on old machine larry_r Linux - General 2 01-24-2007 06:21 AM
CentOS machine + XP machine = XP invisible for Linux achtung_linux Linux - Networking 10 08-18-2006 03:16 AM
LXer: Moobella: Linux-Powered Ice Cream Machine LXer Syndicated Linux News 0 04-22-2006 02:21 AM
dsl don't boot from cd when laptop is powered on harys DamnSmallLinux 2 02-10-2006 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration