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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-04-2009, 10:54 PM
|
#1
|
Member
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30
Rep:
|
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.
|
|
|
02-05-2009, 08:50 AM
|
#2
|
Member
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735
Rep:
|
Hi.
My first thought is that the BIOS thinks the boot drive is some other drive ... cheers, makyo
|
|
|
02-05-2009, 12:56 PM
|
#3
|
Member
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by makyo
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
|
|
|
02-05-2009, 05:43 PM
|
#4
|
Member
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by makyo
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
|
|
|
02-05-2009, 06:15 PM
|
#5
|
Member
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 735
Rep:
|
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
|
|
|
02-05-2009, 06:26 PM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
02-05-2009, 07:14 PM
|
#7
|
Member
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by makyo
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.
|
|
|
02-05-2009, 07:17 PM
|
#8
|
Member
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by jschiwal
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
|
|
|
02-05-2009, 09:56 PM
|
#9
|
Member
Registered: Feb 2008
Location: Zagreb, Croatia
Distribution: Centos 5, OpenSuSE
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by jschiwal
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
|
|
|
All times are GMT -5. The time now is 05:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|