LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2004, 12:32 AM   #1
Dark Elf
LQ Newbie
 
Registered: Oct 2002
Distribution: Fedora Core 6
Posts: 18

Rep: Reputation: 0
Upgraded windows & killed bootloader


Hey everyone,

I was dual-booting red hat 9 and win98 when i decided to upgrade to xp pro. I did so, and lost grub. My linux boot disk is corrupt, so i cant use it. I tried booting from the red hat install cd, but it refuses to update the boot loader because "no kernal changes have been made." The partitions still exist because i can see that windows didnt swallow up the entire disk. it stayed in its original partition. I d/l a freeware bootloader that would config in windows. it recognized the linux partitions, but couldnt manage to boot them.

I really want to get back to the penguin. Any help is greatly appreciated.
 
Old 05-27-2004, 12:49 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
These should help

https://www.redhat.com/docs/manuals/...mode-boot.html

Chapter 2 of the RH9 reference covers grub
https://www.redhat.com/docs/manuals/...ual/ref-guide/
 
Old 05-27-2004, 12:50 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
do you have a copy of knoppix ?
why not boot windows, use the DOS tools on the linux install disk to make a new boot floppy, boot that, and re-install grub.

windowsXP sucks hard.
when i installed it, my system was as follows

Primary Master = blank ntfs ready for windows install
Primary Slave = fully working linux install

the windowsXP insisted it needed to make a dos partiton on my linux drive to install XP,
after un-plugging linux hard disk, xp was happy to install.
 
Old 05-27-2004, 09:28 PM   #4
Dark Elf
LQ Newbie
 
Registered: Oct 2002
Distribution: Fedora Core 6
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the advice.

The dos tools on the red hat disk only have images for installation, not recovery.
 
Old 05-27-2004, 09:31 PM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
When the cd boots you have to type
linux rescue
at the prompt
 
Old 05-27-2004, 09:34 PM   #6
Dark Elf
LQ Newbie
 
Registered: Oct 2002
Distribution: Fedora Core 6
Posts: 18

Original Poster
Rep: Reputation: 0
that was very fast!

i tried that tho. i'm too much of a n00b to help myself from there.
 
Old 05-28-2004, 11:13 AM   #7
Rudwardt
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: Debian
Posts: 22

Rep: Reputation: 15
I had the same problem, though with debian and lilo.
I booted with the install-cd, and switched to console. There you can mount your old linux partition (if the installer hasn't done so far) and use chroot /mnt/hda1 - or where ever your old linux is mounted.
Now you have access to all your installed tools, kernel and bootloader config files.
So I could just run lilo to install my old bootloader again, using my custom kernel and bootloader configuration as found on my linux partition.
__
Rud
 
Old 05-28-2004, 11:48 AM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
- Boot from your RedHat CD.
- Type: linux rescue
- Then you will get three choices, choose: Continue ( If Linux fails to mount a partition, it will notify you. )
- At the command line, type: chroot /mnt/sysimage
- Then type: /usr/sbin/grub-install /dev/hda


If you can't manage to get Rescue Mode working, you can try using Tom's RootBoot, but this is no easier.
Download it from:
http://www.toms.net/rb/download.html
Instructions on how to make the floppy disk (you will have to be in DOS, before win98 boots, press F8 and select command line).
http://www.geocities.com/thestarman3/Linux/tomsrtbt.htm

Once done, boot from the floppy, login as root (password by default is xxxx).
Do the following:
Code:
cd /
mkdir /linux
fdisk -l
mount /dev/hdaX /linux
cd /linux/usr/sbin
grub-install /dev/hda
Since I don't know your partition setup, you will have to change the X with the correct number associated with the root partition.
Take a closer look at the output from fdisk, this will give you more info on your partition setup.
 
Old 05-28-2004, 12:29 PM   #9
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
you might also get ahold of a live cd like knoppix and boot from that. it should auto-mount your partitions, but even if it doesn't you can follow the steps mathieu gave.
 
Old 05-28-2004, 01:45 PM   #10
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
Tom's root boot is a better solution, as it's only a tiny download. Just do what Mathieu said.
 
Old 05-29-2004, 12:19 AM   #11
Dark Elf
LQ Newbie
 
Registered: Oct 2002
Distribution: Fedora Core 6
Posts: 18

Original Poster
Rep: Reputation: 0
Exclamation new problem

Well, after much formatting and reinstallation, i thought i had it all worked out. I had XP contained and installed first, and space open for Fedora Core to install in. Linux works perfectly. My boot loader is grub. If i select choose to boot XP, i get

Code:
rootnoverify (hd0,0)
chainloader +1
nothing further. windows is the first partition on the disk.

please, help me.

Last edited by Dark Elf; 06-07-2004 at 07:15 PM.
 
  


Reply



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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
Windows killed my partitions DeadlyMuffin Slackware 3 08-25-2004 07:14 PM
uninstall mandrkae 9.2 & bootloader & reformat partitions jkibbe Linux - Newbie 3 08-24-2004 08:36 PM
Windows Killed Tux threethirty Linux - Software 3 05-16-2004 12:48 AM
Installing Arch--bootloader killed my Grub busbarn Linux - Software 4 03-13-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:47 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
Open Source Consulting | Domain Registration