LinuxQuestions.org
Review your favorite Linux distribution.
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 12-20-2008, 08:10 AM   #16
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36

I know.

When I boot centos, I switch at bios boot selector.
This means asus p5b main board gives f8 key to change boot device.

So if i boot centos, the hard drive is hda.
 
Old 12-20-2008, 10:35 AM   #17
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
You have grub installed right? And you boot from grub, right?
 
Old 12-20-2008, 10:09 PM   #18
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Agrouf,


I can see grub, but could not boot this drive, after recovering vista on another hard drive.

Quote:
Originally Posted by Agrouf View Post
You have grub installed right? And you boot from grub, right?
 
Old 12-21-2008, 02:17 AM   #19
rajeshkerala
Member
 
Registered: Mar 2008
Posts: 35

Rep: Reputation: 15
Wont this work?

booting with rescue cd and doing a

grub-install /dev/hda

wont this get back both OS-es and enables centos to start dual booting...?
 
Old 12-21-2008, 04:11 AM   #20
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Dear rajeshkerala,


I want to work this drive with centos boot.

Unfortunately, "grub-install /dev/hda" command does not work.


Quote:
Originally Posted by rajeshkerala View Post
Wont this work?

booting with rescue cd and doing a

grub-install /dev/hda

wont this get back both OS-es and enables centos to start dual booting...?
 
Old 12-21-2008, 05:36 AM   #21
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Well I suggest you rewrite your menu.lst file and then install grub.
 
Old 12-21-2008, 05:46 AM   #22
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Dear Agrouf,

About rewriting "menu.lst", could you please let me know where documents which can boot my box is located?


Quote:
Originally Posted by Agrouf View Post
Well I suggest you rewrite your menu.lst file and then install grub.
 
Old 12-21-2008, 06:37 AM   #23
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Dear Agrouf,

Oh, I have some progrssion.

I made a vmware centos 5.2 on my vista box. And attached problemed hdd by raw disk. And boot it.

Strangely, this centos booted with attached drive's centos, and I can see all files and directories.

Now as my opinion, how can I move bootloader or grub to problemed drive?
 
Old 12-21-2008, 07:00 AM   #24
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Thanks!

I have recovered my box successfully.

I cannot write all procedure.

I read so many docs, and googled.

Last procedure is this.



insert installation dvd
linux rescue
chroot /mnt/sysimage
cd /boot/grub -> ls
/sbin/grub
root (hd0,0)
install (hd0,0)/grub/stage1 d (hd0) (hd0,0)/grub/stage2 p (hd0,1)/grub/menu.lst
quit reboot
 
  


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
netbackup6 in centos5.2 taiwf Linux - Software 2 08-21-2008 07:12 PM
Oracle 9i on Centos5 mago Linux - Server 1 08-18-2008 10:45 PM
wireless on CentOs5 ufmale Linux - Newbie 1 05-29-2008 11:23 AM
How to install CentOS5 vwtech Linux - Newbie 4 01-24-2008 03:21 PM
XP Clients on CentOS5 melwade Linux - Server 1 08-03-2007 12:21 PM


All times are GMT -5. The time now is 10:43 AM.

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