Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-19-2007, 06:23 AM   #1
LQ Newbie
Registered: Jan 2007
Distribution: Kubuntu
Posts: 8

Rep: Reputation: 0
kubuntu won't boot....

i installed kubuntu feisty yesterday...i made 4 partitions on my hd, swap, home and / and one for windows...i was working fine in kubuntu but after installing windows now i don't get the boot screen where to select the os i want to runs windows automatically...any help??
Old 05-19-2007, 09:47 AM   #2
Registered: Jul 2006
Location: Australia
Distribution: Mint 14/16 & Raspbian
Posts: 73

Rep: Reputation: 23
Windows has stolen your master boot record (MBR) from you and over written grub (the boot selection screen).

What you have to do is restore grub to the MBR.
root (hd0,x)
setup (hd0)
where x = the partition where Kubuntu installed /boot/grub.

note: partitions and disks are numbered from 0. So sda1 = hd0 in grub.

Chances are that you will have to then edit the selection screen list once you are booted back into Kubuntu. In /boot/grub you will find menu.lst you will have to amend Windows back in there. Because you'll need root privileges I'd recommend opening a terminal and using pico/vi/emacs. To open a terminal press Alt+F2 and type 'konsole'

So to edit i will
sudo pico /boot/grub/menu.lst
Ctrl+O to save and exit.

There will be an example windows boot option in there, so you can copy that and tack it to the bottom of the menu.lst file and edit it to match you computer. Save and try. Should look like this (modifyed for your windows install):
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
chainloader	+1

Good Luck

P.S. Some good reading/tutorials can be found:
GNU Grub Manual
saikee's 'Just booting tips'
and of course LQ's own wiki.

Last edited by lein; 05-19-2007 at 09:49 AM.
Old 05-20-2007, 12:03 PM   #3
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,690
Blog Entries: 9

Rep: Reputation: 45
erm, have you tried just booting the Kubuntu disc and then at the first prompt typing "rescue" (without the quotes of course)? because lots of distros then offer you the choice of "re-installing the linux bootloader", which you select and just make sure it's being re-installed to the MBR as lein already suggested ?




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
Kubuntu won't boot!!!!! Onewheelinweirdo Ubuntu 4 05-18-2007 11:00 PM
Kubuntu won't boot!!!!! Onewheelinweirdo Linux - Laptop and Netbook 2 05-15-2007 06:06 PM
How do I boot up as root in Kubuntu 6.06 jacatone Linux - Newbie 6 04-24-2007 06:16 AM
Kubuntu 7.04 Boot Partition How to? SCClockDr Linux - Newbie 3 04-14-2007 05:38 PM
Boot Problems - Kubuntu No772153 Linux - Newbie 1 01-22-2006 05:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 PM.

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