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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-15-2004, 08:50 AM   #1
arup255
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Rep: Reputation: 0
Linux Disappears after installing WinXP


I had both Linux and Win XP installed on my system but since my windows crashed I had to install it again. Now I am unable to see the boot loader itself. Win XP boots automatically without giving any option. What do I do now.

Please help me. I am a newbie as far as Linux is concerned. Is there any way I can avoid this problem in future if I have to install windows again.

Please help me I have a lot of data on my Linux so I can't even format it.
 
Old 12-15-2004, 08:59 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You need to reinstall your boot-loader. How you do this depends on which distribution of Linux you have. Most include a rescue disk that you can use, as part of the install disks.

If you don't have one, then don't worry because you can download a rescue distro quite easily and burn it to CD or save it to floppy. Try www.distrowatch.com

You need to boot onto the rescue disk, mount the root filesystem of your Linux install, e.g. to /mnt/ and then chroot to it:
Code:
chroot /mnt
From here, you can remount your other filesystems, like /boot, and then reinstall your bootloader. See the manpages for grub and lilo for instructions.
 
Old 12-15-2004, 08:59 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Windows always overwrites the MBR with its own bootloader. M$ doesn't like to encourage people to have multipel OSes, I guess.

If you have a bootable Linux cd, fire it up and re-install your linux bootloader from there.

If not, get one - DamnSmallLinux is only 50mb. . .
 
Old 12-15-2004, 01:14 PM   #4
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
Another recommendation is the GAG Bootloader. It is a small ISO image (3.xMB i think?) and you create a bootable CD with it and that's how you install the bootloader. This enables the GAG bootloader to be installed to boot ANY OS. It is VERY VERY easy to set up, and it includes icons to go along with the names to identify what OSes you are running(Linux, Windows, FreeBSD, OpenBSD, Solaris, HURD, etc..) I recommend it to anyone. It's a great replacement boot loader,and it's also great for emergency purposes such as this.
 
Old 12-16-2004, 12:41 AM   #5
floppywhopper
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Mageia , Centos
Posts: 643
Blog Entries: 2

Rep: Reputation: 136Reputation: 136
hey arup255
what linux distro do you use
and then someone can walk you through the process
When you ask Qs like this just a little more info is needed so someone can give you the right advice
info like : distro, HDD size, Processor etc

live long and prosper
floppy
 
Old 12-16-2004, 10:05 AM   #6
arup255
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hey floppywhopper,

I use RedHat Linux 8.0 along with WinXP. Win XP is installed on the primary HDD (160 GB) while Linux on the secondary HDD (40 GB). I have P4 1.7 Ghz and 256 MB RAM. nfortunately my Floppy Drive died a few years back. Pl Help I cant boot into Linux (no Loader)
 
Old 12-16-2004, 10:35 AM   #7
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The Red Hat 8 install CDs probably have a rescue mode that you can boot into.

If not, even without a floppy disk, you could use still a CD-ROM and burner to make a rescue disk to boot from. You may have to modify your BIOS to boot from CD before booting from the hard disk, though. And some very old BIOSes won't boot from CDs at all.

Another option is to download LOADLIN.EXE (it's on the install disks as well I think), then restart Windows in DOS mode (hold down F8 after the memory test for a menu). http://freebooks.by.ru/view/RedHatLi...d/rhl6u026.htm You will still need your vmlinuz file for RedHat 8.0 though; you should be able to find one on the install disks or you can probably get one from the web. You'll also need to know which partition is your root, or you could use trial and error.

Having booted your Linux system you can easily reinstall your bootloader; I think Red Hat uses lilo so you just need
Code:
/sbin/lilo
 
Old 12-16-2004, 04:16 PM   #8
gunjan thakkar
LQ Newbie
 
Registered: Dec 2004
Location: India
Posts: 4

Rep: Reputation: 0
hi
if u have linux startup disk or linux cd
u can boot it from it
then go to the linux single mode
then u will get sh shell
where go to cd /etc
and then give command lilo -v
after that it should work
if linux single not work then go to linux rescue
it will work only from cd
while u will goto linux resuce mode u will asked 2-3 option
in 1option select contiune.
give chroot /mnt/sysimage command at end
then cd /etc
and do lilo -v
and restart the system it should work
because i had the same problem what happen if linux alreday installed and if u install windows
it will overwriet the bootloader that is why u r facing the problem
try with this option it should work

if work give me reply
bye
cheers
 
Old 12-16-2004, 05:19 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Futhermore,

Boot using the 1st install CD and select rescue mode.

Since grub is the default bootloader for RH then instead of lilo
after you chroot run

grub-install

I do not know of anyway to prevent windows from overwriting the bootloader with a reinstall. But, it isn't difficult to repair once you know how.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux via VMWare on WinXP AglaSyS Linux - Software 8 02-25-2005 10:16 AM
Linux Disappears after installing WinXP arup255 Linux - Software 2 12-15-2004 12:03 PM
installing win98 with winxp and linux gram_vaz Linux - General 4 06-17-2004 09:25 PM
Installing 2 Linux distros with WinXP? windeath Fedora - Installation 6 05-28-2004 07:01 PM
re-installing winXP wit linux usman Linux - General 2 09-26-2003 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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