Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Windows Stole My Bootloader, Why can't i boot linux
iamregin
post Oct 15 2003, 10:07 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 15-October 03
Member No.: 1,628



I have been running linux mandrake for about a week and liked it. Unfortunatly i have to have windows installed so i can do my Visual Basic homework for school. I left a big chuck of my harddrive open for windows, when i was installing it told me windows xp must be the active partition to continue installation. Well this i figured not to be a problem i'd just use a boot disk run fdisk and reset the active partition later. When i did that the computer booted up and said, no operating system found, but when i set active back to the F: (windows) Xp boots. I don't know what happend, how come my bootloader doesn't run? did windows crap out my linux partition. I tried to run the rescue portion of the madrake cd, but my computer does' work the linux install very well, it won't load to memory, unless i have the computer off for a long time. When i run rescue it says /Mnt/cdrom not found or somthing like that. SOMEONE PLEASE TELL ME WHAT HAPPEND!!!
Go to the top of the page
 
+Quote Post
iamregin
post Oct 15 2003, 10:22 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 15-October 03
Member No.: 1,628



To add to this, i think that i installed the bootloader to the linux partition is there a way to add lilo to the MBR from windows?
Go to the top of the page
 
+Quote Post
Corey
post Oct 15 2003, 10:49 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



When you install windows XP, chances are, it will overwrite your linux bootloader. I just finished installing XP on a seperate partition after having gentoo installed, and it eased grub on me.

If you have created a bootdisk for your linux distribution, you need to boot into it, and re-initialize your bootloader. If you are using lilo, this can be as simple as adding a windows entry in your /etc/lilo.conf file (there should be a commented-out example in there) and then re-running lilo with "lilo -v".

If you're using grub, then you need to add a windows entry in your /boot/grub/grub.conf (menu.lst on older versions) and then running grub and resetting it up.

I'll give small examples for each:

LILO
Open /etc/lilo.conf , and add your windows partition (usually at the bottom):

[quote]
other = /dev/hda3
  label = WindowsXP
[/quote]

save the file, and rerun lilo (/sbin/lilo -v)

GRUB
Open /boot/grub/grub.conf, and add your windows partition (at the bottom):

[quote]
title=Windows XP
rootnoverify (hd0,2)
makeactive
chainloader +1
[/quote]

Now, run grub:

[quote]
# grub
[/quote]

Tell it where your root partition is (the partition that linux is on):

[quote]
grub> root (hd0,0)
[/quote]

Now, install grub into the master boot record:

[quote]
grub> setup (hd0)
grub> quit
[/quote]

Note: Grub labels it's partitions starting from 0, so hda1 = (hd0,0) , hda2 = (hd0,1), etc.

Now, you should be able to reboot, and your bootloader will open up and you can choose windows or linux.


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 08:39 AM