LinuxQuestions.org
Help answer threads with 0 replies.
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 09-13-2003, 06:37 AM   #1
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
windows after linux


I had to reinstall XP on a box with linux and I lost the boot manager. how can I reactivate it. Now it boots only in xp
 
Old 09-13-2003, 06:39 AM   #2
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
ps: my manager was grub
 
Old 09-13-2003, 06:45 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
firstly, boot off your linux bootdisk - either the floppy or cd 1

once you are at the prompt type:
/sbin/grub-install

To install GRUB in the MBR, type:

code: grub-install /dev/hda
 
Old 09-13-2003, 09:58 AM   #4
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
i didn`t make a boot disk... how can I make one ? If I boot over my distro CD I would have to mount my linux part... and so on. Better if I can make a boot disk. How can I make one ?
THX
 
Old 09-13-2003, 10:41 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you did not make a Linux boot disk, you will have to boot from the CD.

Since you are using RedHat, follow the steps from this document.
http://www.redhat.com/docs/manuals/l...mode-boot.html

Then as XavierP mentioned, re-install GRUB back into the MBR.
Code:
/sbin/grub-install /dev/hda
 
Old 09-13-2003, 01:43 PM   #6
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
I did that but it gives me an error that something isn't in /var/....
 
Old 09-13-2003, 01:54 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
You'll have to give more info than that. What is the full detail of the error?
 
Old 09-13-2003, 02:46 PM   #8
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
/usr/share/grub/i386red-hat/stage1 : Not Found.

I have mounted my linux partition on /mnt/linux
 
Old 09-13-2003, 03:25 PM   #9
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
On your Linux partition, you should have the /usr/share/grub/i386-redhat directory.
This directory contains boot files and support files for different filesystems. ( stage1, stage2, e2fs_stage1_5, etc).

If these files are not present, copy them from the /boot/grub directory.
More precisely, copy stage1, stage2 and any files that end with 1_5
 
Old 09-13-2003, 04:55 PM   #10
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
I had a clue what they are for...
I have this dir but it`s situated in /mnt/linux/usr/share/grub/i386-redhat the mounded partition.
I can't copy them in /usr/share/grub/i386-redhat because on the boot disk that dir is read-only and I can't change it with chmod
 
Old 09-14-2003, 08:49 AM   #11
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
somebody ? anybody ?
 
Old 09-14-2003, 09:12 AM   #12
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
can somebody give me a cat of lilo.conf... i`ll try to install lilo.
THX
 
Old 09-14-2003, 10:29 AM   #13
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
k I've made a grub bootdisk for you, download it at
http://ryantsai.ozforces.com.au/grubdisk.img
then use dd to write it, ie

dd if=grubdisk.img of=/dev/fd0

or alternatively you can use something like winimage (www.winimage.com) for windows
then boot with it, after u get the grub prompt first do:

root (hd0,0)

if you linux(or your /boot partition if its separate) is installed in first hdd first partition, (hd0,1) for first hdd second partition, so on and so forth. It'll also tell you the partition type, so if it says ext3/reiserfs whatever you use for your linux partition then you got it right.
after thats done do a:

setup (hd0)
This will install grub back into MBR

If you use (hd0,0) it instead will install grub into bootsector of first patition of first hdd, useful if u want to use other bootmanagers in MBR.
Lastly you can either type reboot or you can try booting your linux now, use:
kernel /boot/vmlinuz-<kernel version>
initrd /boot/initrd-<kernel version>.img
then type "boot"
note you can use tab for auto filename completion, and initrd is used in redhat but not in some other distros.

Last edited by Demonbane; 09-14-2003 at 10:38 AM.
 
  


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
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 04:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 12:37 PM
Vnc only works linux to windows not windows to linux mbdayton Linux - Networking 2 04-16-2005 07:36 PM
Red Hat Linux 9 + Windows Server 2003 + Windows XP + Fedora in same domain wolfy339 Linux - Networking 5 03-02-2005 07:03 AM
Samba - Linux box can see Windows, but WIndows can't see Linux Korff Linux - Networking 1 06-02-2003 11:23 AM

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

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