LinuxQuestions.org
Visit Jeremy's Blog.
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 05-29-2004, 10:40 AM   #1
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Rep: Reputation: 21
reinstalling grub or reconfiguring it to be put back on the mbr


in order of importance currently the main problem i need help with is to get back grub on the mbr. i have rh9 (shrike) 2.4.20-8 and windows me and grub as the bootloader. maybe due to a windows partition possibly being written to thru linux (by mounting and opening files) windows refused to start and i ended up with only a bsod which had something like IOS(05) in the last line. so i had to do complete reinstall of windows in a new directory. but now when booting from hard disk, only win me loads and the grub does not come up. i made an rh bootdisk and that helps booting into linux, but how long can a floppy exist and over that there are no more pcs around from where i can make a bootdisk. I do have the rh installer cds but i wud like to know if there's a way to get grub back in action.

how do i make sure that when fat32 partitions are loaded in linux they are not written to.

finally, i have scoured the forums and in many posts discussing i have seen where fstab file is discussed some have very few parameters in a line while some include a lot more details (i'm referring only to mounting of fat32 partitions) i mean how much is necessary?
Thanking in anticipation.
 
Old 05-29-2004, 11:17 AM   #2
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
hello!

windows has destroyed your grub. to reinstall grub without a fresh install of linux you have to do this:

boot with your RH cd
type linux rescue
type chroot /mnt/sysimage
type /sbin/grub-install /dev/hda if your partitions changed you have to edit /boot/grub/grub.conf
reboot
i hope this helped you to reinstall grub!

cheers, boby
 
Old 05-30-2004, 04:35 AM   #3
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Original Poster
Rep: Reputation: 21
how do i edit the grub.conf file from rescue mode. are there any commands or utilities. you have also specified edit the grub.conf if my partitions have changed what does that mean? my win partitions are hdcn (where n is the partition number) and linux is on hddn. and nothing else has changed.
 
Old 05-30-2004, 04:36 AM   #4
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Original Poster
Rep: Reputation: 21
sorry i clicked the submit button in a hurry.

Thanks for all those precise technical steps that u gave.

Cheers
 
Old 05-30-2004, 05:17 AM   #5
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
hi!

to edit you're grub.conf you can use joe /boot/grub/grub.conf or vi /boot/grub/grub.conf, but if nothing changed it's ok...you don't have to do it.

cheers, boby
 
Old 06-05-2004, 02:15 PM   #6
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Original Poster
Rep: Reputation: 21
Mission success! The only difference being that the line /sbin/grub-install /dev/hda had to be changed to /sbin/grub-install /dev/hdc. Why so don't know for sure. but the thing works and thanks a lot for that.
 
Old 06-05-2004, 04:54 PM   #7
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
maybe 'cause you're booting from hdc
 
Old 06-06-2004, 10:49 AM   #8
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Original Poster
Rep: Reputation: 21
All said and done I want to thank all those who have viewed this thread and those who replied and made my life simple. Someday I would want to learn why those steps were necessary. For the time being it's great that the thing works.

Is it necessary to close the topic so that other viewers don't use the post reply button to start a new question or something like that?

HEHE
 
  


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
Get back Grub loader after reinstalling XP thdm Suse/Novell 5 11-18-2005 09:49 PM
How do you get back into Ubuntu if you don't put Grub on the MBR? Marrea Ubuntu 7 07-21-2005 06:27 AM
reinstalling grub on the mbr shanenin Linux - Software 1 12-01-2004 12:00 PM
Need help reconfiguring GRUB jbolt Linux - Newbie 7 08-05-2004 01:03 AM
reinstall GRUB to MBR w/o reinstalling Linux?? timsch75 Linux - Software 3 06-24-2004 06:36 PM


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