Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 04-23-2004, 10:57 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Cannot boot Linux though already installed with the Windows XP.

Description: When I used to boot my computer, I used to get an option to boot Linux or Windows XP. Then one day some virus infected my windows XP and thus I had to ghost the XP on the machine. Since that day I don't get an option to choose Linux or Windows XP. Now both the entries in the master boot record has Windows XP. Linux OS is presently installed and is in good condition but I need help to boot Linux.

Can somebody help me get back to track? Please let me know what I need to do in a step-by-step process. I am a new user of Linux.

Thanks in advance.
Old 04-24-2004, 12:39 AM   #2
Registered: Apr 2004
Location: Chennai, India
Distribution: Mandrake 10.0/Redhat 8.0/Ubuntu 5.04/Windows XP (SP2)
Posts: 30

Rep: Reputation: 15
Hi malik,

You have not mentioned about your distribution (Red hat, SuSE..). Anyway Let me tell you about RedHat. Almost same logic applicable to others also.

1. Boot the PC with Linux Installation CD-1:
2. Select the Rescue mode by pressing F5.
3. Enter root password and say yes for chroot prompt.
4. You will have shell prompt, now
5. If you were using GRUB boot loader, just run "grub-install"
6. or If you were using LILO boot loader, just run "lilo"
7. Reboot the machine

that is it.

with wishes
Old 04-24-2004, 03:08 PM   #3
LQ Newbie
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Red Hat 9.0

Thanks for reply.

Problem: I don't have the Red Hat 9.0 CD, as a friend of mine help me install it. My friend is presently out of out and I don'thave access to the CDs. Secondly, I was told that I can down load GRUB and install it to set the master boot record right.

Please tell me or point me to site where I can find the right versionof GRUB and the files needed to be installed on my PC.

Old 04-28-2004, 09:12 AM   #4
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 32

i've never tried it myself, but i believe that you should be able to use one of the mini distributions such as knoppix that run from cd, which will let you boot linux from where you should be able to re-create your master boot record. i've got some instructions on this in a magazine at home, so i'll look them up later and come back to you. in the meantime, where are you located?
Old 04-28-2004, 10:06 AM   #5
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you don't have the CD or a boot disk, you will have to make one.
The most useful linux rescue disk is tomsrtbt.

In the tomsrtbt.FAQ, you will find more information on creating a boot disk or bootable CD-ROM.

Once done, boot from the disk (or CD) and login (user: root - password: xxxx)

Type: fdisk -l

This will display your partition table. Concern yourself only with those called "Linux" (ignore all others including "Linux swap").
Now, you will have to mount your root partition. If you are un-sure, write down the info and post it.
Note: You can reboot at anytime by pressing Ctrl+Alt+Del

Let's say your root partition is /dev/hda3, type:
mkdir /linux
mount /dev/hda3 /linux
/linux/usr/sbin/grub-install /dev/hda
That's it. reboot.


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
Re-installed windows cannot boot linux ginda SUSE / openSUSE 6 06-13-2005 04:47 AM
installed windows after linux and cant get linux to boot stuboo Linux - Hardware 1 10-22-2004 02:30 PM
Has anybody successfully installed a windows/linux dual boot system on a Compaq PC? bugsbunny Linux - Newbie 16 04-03-2004 01:24 PM
Installed Windows and Linux, but can't configure Dual Boot albert106 Linux - Newbie 19 07-31-2003 12:10 AM
Dual-boot with Windows, installed Linux first trusted_content Linux - General 10 06-06-2003 01:38 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration