LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-30-2012, 12:30 PM   #1
cybernet2u
LQ Newbie
 
Registered: Aug 2009
Distribution: centos
Posts: 16

Rep: Reputation: 0
Angry recover grub centos 6 ( not working )


recently i install windows on my system knowing that i can recover grub easily.

anyway

so i setup a usb stick with centos 6 netinstall x64
i started rescue installed system, when asked for rescue image i selected /dev/sda1 ( where centos is installed )

and then i started the shell
Code:
$ chroot /mnt/sysimage
$ grub-install --recheck /dev/sda
no errors reported ... la la la

after reboot i see windows logo ... starting
and i feel like this

any suggestions ?
i'm i doing something wrong ?

Last edited by cybernet2u; 08-30-2012 at 12:34 PM. Reason: ??
 
Old 08-31-2012, 08:35 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 605

Rep: Reputation: 79
Quote:
Originally Posted by cybernet2u View Post
recently i install windows on my system knowing that i can recover grub easily.

anyway

so i setup a usb stick with centos 6 netinstall x64
i started rescue installed system, when asked for rescue image i selected /dev/sda1 ( where centos is installed )

and then i started the shell
Code:
$ chroot /mnt/sysimage
$ grub-install --recheck /dev/sda
no errors reported ... la la la

after reboot i see windows logo ... starting
and i feel like this

any suggestions ?
i'm i doing something wrong ?
I have to say I never used the recheck option...
Boot into single user using CD.
Mount the filesystems (including proc and sys)
chroot into your system
grub
root (hd0,0) # change accordingly to your setup
setup (hd0)

If you get errors that hd0 does not exist for example, you could change the device.map file to map hd0 (or another name) to an actual drive (for example sda).
Be careful with doing this!
 
Old 09-02-2012, 10:51 PM   #3
cybernet2u
LQ Newbie
 
Registered: Aug 2009
Distribution: centos
Posts: 16

Original Poster
Rep: Reputation: 0
Wink

because i was to cocky about my knowledge i didn't even run fdisk -l knowing that /dev/sda1 can't change wonce the OS is installed, but apparently i was so wrong

the correct path was /dev/sdb1.
i solved the problem, thanks for the support,


cybernet2u
 
  


Reply

Tags
centos, grub rescue, recover


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
How do you recover when grub boots to 'grub>'? m223464 Linux - General 7 05-07-2012 07:11 AM
[SOLVED] Dual Boot Slackware with CentOS using CentOS GRUB frankbell Slackware 9 10-26-2011 11:04 AM
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
How to recover CentOS rahilmaknojia Linux - Server 3 08-03-2008 12:31 AM
How to Recover GRUB!!! arun-linux Linux - Software 2 04-13-2008 01:31 PM


All times are GMT -5. The time now is 05:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration