LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-24-2013, 09:53 PM   #1
john aka jondi
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Rep: Reputation: 0
Unhappy Unable to re-install grub in centos 6.4


Hi All,

I recently download centos 6.4 minimal 1386 from http://centos.mirror.net.in/centos/6.4/isos/i386/ and installed it on my old Pentium4 32 bit machine at home. It has got one 80gb HDD and splited into 3 partitons. Two of them are ntfs filesystem consist of Windows XP present in them since long before. I made the third partition to ext4 and installed centos 6.4 in it. One day the XP went crashed and I had to reinstalled it for my parents. But then the trouble started, I lost the Dual Boot Selection at the machine startup.

I thought I would probably need to reinstall the grub of centos. So I put the same installation cd "CentOS-6.4-i386-minimal" into CD Drive which was used to install the centos and chose the "Rescue Mode".

Reference urls that google gave me:
http://www.centos.org/docs/5/html/In...mode-boot.html
http://www.confignotes.com/2010/12/h...grub-on-rhel6/


Steps I followed up:
- Selected “Rescue installed system”.
- Selected “Local CD\DVD” for the Rescue Method.
- On the “Rescue Screen”, selected "Continue".
- On the “First Aid Kit quickstart menu”, selected “shell Start shell”.
- I got the shell as "bash-4.1#" successfully.
- Then I tried to run “chroot /mnt/sysimage” and hit the following error

===========
bash-4.1# chroot /mnt/sysimage
chroot: failed to run command '/bin/sh' : No such file or directory
bash-4.1#
===========


How can I solve this error?. Can anyone please help me on this?

/dev/sda5 is the boot partition
/dev/sda6 is the '/' partition

Last edited by john aka jondi; 11-24-2013 at 10:14 PM.
 
Old 11-25-2013, 03:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,294

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Reboot from the iso and follow the same steps, but before running chroot, make sure that it actually mounted your "/" and "/boot" filesystems under /mnt/sysimage by running the df command.
 
Old 11-26-2013, 07:31 AM   #3
john aka jondi
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
Reboot from the iso and follow the same steps, but before running chroot, make sure that it actually mounted your "/" and "/boot" filesystems under /mnt/sysimage by running the df command.
Thanks brother, yes "/" and "boot" were not properly mounting under /mnt/sysimage. Finally I had to do it manually and chroot worked fine. Also reinstalled grub
 
Old 11-26-2013, 12:32 PM   #4
john aka jondi
LQ Newbie
 
Registered: Aug 2010
Posts: 16

Original Poster
Rep: Reputation: 0
You can check the complete procedure in my blog

http://penguinbliss.wordpress.com/20...einstall-grub/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to install ipwatchd on centos 5.8 nileshkumar Linux - Newbie 5 02-22-2013 05:55 AM
Unable to install CentOS 6.3 using LiveDVD linux_walker Linux - Newbie 17 02-19-2013 01:31 PM
install unubtu 12.04 show"unable to install grub in /dev/mapper. my patition tomli21228 Linux - Server 2 09-20-2012 01:45 PM
Unable to Install LibreOffice in CentOs 6.2 gemmajid Linux - Newbie 6 04-02-2012 10:04 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration