LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2015, 08:30 AM   #1
tmssyed
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
Centos 6 Grub Issue


Machine is booted into Grub Menu
I am using rescue linux

by doing fdisk -l

it shows
Disk /dev/sda : bla bla bla
Device Boot
/dev/sda1 *

so i install grub using this command in shell

grub-install /dev/sda1

it shows

installation finished. No error reported
This content of the device map /boot/grub/device.map


After re-boot it again shows grub menu
 
Old 03-17-2015, 08:41 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Since the information you provide shows CentOS as the only system installed, you should install to /dev/sda which would be the master boot record. The method you used installs to the partition so you would need some other boot code from some other bootloader in the master boot record in order to boot CentOS. I believe 6.0 still used Grub Legacy. Do you have a separate boot partition? The info you posted is very limited. If you have the CentOS installation Live CD or some other Live CD, go to the site below and download and run the bootinfoscript. It will output a results.txt file which you can post here and you should get some help with that. Read the instructions in the link in the Description box on the page.

http://sourceforge.net/projects/bootinfoscript/
 
1 members found this post helpful.
Old 03-17-2015, 09:10 AM   #3
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Probably this should help http://www.linuxquestions.org/questi...6/#post5078530
 
Old 03-22-2015, 08:19 AM   #4
tmssyed
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Since the information you provide shows CentOS as the only system installed, you should install to /dev/sda which would be the master boot record. The method you used installs to the partition so you would need some other boot code from some other bootloader in the master boot record in order to boot CentOS. I believe 6.0 still used Grub Legacy. Do you have a separate boot partition? The info you posted is very limited. If you have the CentOS installation Live CD or some other Live CD, go to the site below and download and run the bootinfoscript. It will output a results.txt file which you can post here and you should get some help with that. Read the instructions in the link in the Description box on the page.

http://sourceforge.net/projects/bootinfoscript/
I will run the script and will show results here soon,

For now I have booted from centos live cd
i don't find any thing under my boot /
i have installed grub using grub-install on rescue Linux yet no files appear on boot /
is it save to copy files of "boot" folder from other computer as it has same OS n configuration
 
Old 03-22-2015, 12:49 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Did you mount the /boot partition for the installed CentOS? Actually, you haven't indicated whether you have a separate boot partition or if the boot files are in the boot directory on the / (root filesystem) partition. You need to mount that partition from the Live CD to see/access files there. Did you do that?

Quote:
is it save to copy files of "boot" folder from other computer as it has same OS n configuration
Maybe, if the other OS is also CentOS 6.0. Better to post the bootinfoscript output to get a more definitive answer.
 
Old 03-27-2015, 10:49 AM   #6
tmssyed
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Did you mount the /boot partition for the installed CentOS? Actually, you haven't indicated whether you have a separate boot partition or if the boot files are in the boot directory on the / (root filesystem) partition. You need to mount that partition from the Live CD to see/access files there. Did you do that?



Maybe, if the other OS is also CentOS 6.0. Better to post the bootinfoscript output to get a more definitive answer.
I have copied the files to /boot and re install grub and edit grub.conf...then yum update from rescue mode, it works

I still don't know the reason why the machine got crashed and there was nothing Under /boot.

System was running fine..nothing was updated or configured , it just got crashed.
 
Old 03-27-2015, 12:15 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Did your problem got solved?

If not give the output of 'fdisk -l', 'df', 'mount'.

Specify which partition your /boot folder mounts on. Contents of /boot folder.

Specify what version your grub is? Legacy grub have version like 0.97. And newer grub2 has version 1.99 or 2.0.
 
Old 03-27-2015, 02:50 PM   #8
tmssyed
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
Did your problem got solved?

If not give the output of 'fdisk -l', 'df', 'mount'.

Specify which partition your /boot folder mounts on. Contents of /boot folder.

Specify what version your grub is? Legacy grub have version like 0.97. And newer grub2 has version 1.99 or 2.0.
Yes problem is solved , but i want to know why this problem occurred, to prevent this happening in future.

There was no sudden power-outage nor updates nor hardware config , it just got crashed.
 
Old 03-28-2015, 11:02 PM   #9
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Do you use mechanical HDD with platters and not SSD's?

If so, sometimes some sectors get mapped to others. So a temporary failure. It may indicate a HDD failure. You may run a test of hard disk health either by vendor provided utility or using smartctl tool.
 
Old 03-31-2015, 08:31 AM   #10
tmssyed
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
Do you use mechanical HDD with platters and not SSD's?

If so, sometimes some sectors get mapped to others. So a temporary failure. It may indicate a HDD failure. You may run a test of hard disk health either by vendor provided utility or using smartctl tool.
It's a RAID , the health of logical drive is ok.
 
  


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
CentOS 5.5 Grub Issue romko Linux - Server 5 01-24-2011 06:48 PM
Ubuntu / CentOS / Grub issue lassik Linux - Newbie 6 04-30-2010 04:56 AM
[SOLVED] CentOS 5.4 / Grub issue? System hangs on boot Xyan Red Hat 12 04-26-2010 02:15 PM
Booting Centos 5.4 Issue: "CentOS CD Not found in any of the media drives. Please i g.navink Red Hat 1 04-07-2010 04:12 PM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 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