LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-02-2010, 09:59 AM   #1
fkebee
LQ Newbie
 
Registered: Dec 2004
Location: Kisii - Kenya - Africa
Posts: 1

Rep: Reputation: 0
installing windows after Ubuntu 9.10 the Karmic koala


I am running Kubuntu and want to install windows xp or 7 and run both OS can anybody help?
 
Old 08-02-2010, 12:56 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you have hard disk space just go ahead to install the MS Windows or both of them.

The MS Windows will overwrite Grub so you will have to use Kubuntu installation CD to restore Grub in the MBR.

Let us know which partitions have Kubuntu and Windows and we could advise you how to re-configure Grub.

If you have grub.cfg in /boot/grub directory then it is Grub2, otherwise Grub1 has meenu.lst in the same directory. The re-configuration is to edit this file.

Last edited by saikee; 08-02-2010 at 12:58 PM.
 
Old 08-02-2010, 03:10 PM   #3
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 184

Rep: Reputation: 22
One other point, Windows always wants the first partition, which will be /dev/sda1 in Ubuntu.

You can install Ubuntu in primary or an extended partition. After installing Ubuntu 9.10 (which uses grub2) run

sudo update-grub

to automatically add the windows partition.
 
Old 08-02-2010, 05:17 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
hal8000b,

Windows "likes" to be in the first primary partition but that doesn't mean it can't do without it.

All my 4 Windows of Win2k, Xp, Vista and Win7 are installed in logical partitions.

I have tried to my satisfaction that a Xp can be booted all the way up to sda130 which is the highest logical partition the "sfdisk" program can create.

Last edited by saikee; 08-02-2010 at 05:18 PM.
 
Old 08-02-2010, 08:50 PM   #5
pheonix7117
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by saikee View Post
If you have grub.cfg in /boot/grub directory then it is Grub2, otherwise Grub1 has meenu.lst in the same directory. The re-configuration is to edit this file.
Just a typo correction, in case it causes frustration: "Grub1 has menu.lst" not "meenu.lst" :-)
 
Old 08-02-2010, 09:18 PM   #6
saywot
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Fedora 13 + Ubuntu
Posts: 49

Rep: Reputation: 15
but for newbies who don't want to muck around with VMs or editing menu-lists etc etc (which is fine and dandy after a bit of experience with Linux) it's generally easier to install windows first THEN Ubuntu - if that's your distribution of choice
 
Old 08-03-2010, 06:45 PM   #7
gustavob
LQ Newbie
 
Registered: Apr 2010
Location: La Lonja, Pilar, Argentina
Distribution: Debian, Ubuntu, Suse
Posts: 6

Rep: Reputation: 0
With grub 1 , I do :
After install win, I can boot only win, but not ubuntu. So, I boot a linux live cd like knoppix, dsl, ubuntu, etc, open a terminal, login as root and type:
# fdisk -l
this, show me where is / . roots. ex: /dev/hda1 , /dev/hda2
then I create a place where I will mount the partition that I will reuse their grub, for ex. ubuntu 9.10. If ubuntu 9.10 is in /dev/hda2 , I type
# mkdir /media/hda2
then I mount my ubuntu 9.10 in that place
# mount -t ext3 -o rw /dev/hda2 /media/hda2
The -t option can be other type of filesystem like reiserfs ext4 etc.
then I start grub
# grub
I see something like
>
I type
> find /boot/grub/stage1
to find / again . it put something like 0,1 1,2 0,2 etc then I type "root (hdx,x)" with the result of find and with the parentesis...... If you have installed only ubuntu 9.10 and w7, you donīt have to chose between severals options of roots, only that with ubuntu 9.10.
> root (hd0,2)
then I install grub in mbr (master boot record) . It is a cero "0" .
> setup (hd0)
then I exit grub and reboot.
> quit
Maybe I can only boot ubuntu, so I edit /boot/grub/menu.lst and include win option to boot both. There is an example in menu.lst. I only have to put the right partition , always seem to be (hd0,0) but....
 
Old 08-04-2010, 02:27 AM   #8
saywot
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Fedora 13 + Ubuntu
Posts: 49

Rep: Reputation: 15
Quote:
Originally Posted by gustavob View Post
With grub 1 , I do :
After install win, I can boot only win, but not ubuntu. So, I boot a linux live cd like knoppix, dsl, ubuntu, etc, open a terminal, login as root and type:
# fdisk -l
this, show me where is / . roots. ex: /dev/hda1 , /dev/hda2
then I create a place where I will mount the partition that I will reuse their grub, for ex. ubuntu 9.10. If ubuntu 9.10 is in /dev/hda2 , I type
# mkdir /media/hda2
then I mount my ubuntu 9.10 in that place
# mount -t ext3 -o rw /dev/hda2 /media/hda2
The -t option can be other type of filesystem like reiserfs ext4 etc.
then I start grub
# grub
I see something like
>
I type
> find /boot/grub/stage1
to find / again . it put something like 0,1 1,2 0,2 etc then I type "root (hdx,x)" with the result of find and with the parentesis...... If you have installed only ubuntu 9.10 and w7, you donīt have to chose between severals options of roots, only that with ubuntu 9.10.
> root (hd0,2)
then I install grub in mbr (master boot record) . It is a cero "0" .
> setup (hd0)
then I exit grub and reboot.
> quit
Maybe I can only boot ubuntu, so I edit /boot/grub/menu.lst and include win option to boot both. There is an example in menu.lst. I only have to put the right partition , always seem to be (hd0,0) but....
and this is a lot of faffing around for someone new to Linux,when it's just as easy to get the Ubuntu installer to do it all for you when you install onto a machine that has Microsoft Windows already installed on it (if you want to run Ubuntu that is)
 
Old 08-04-2010, 03:25 AM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The OP has said Ubuntu has been installed first and a Xp or Win7 will be the next.

There seems to be two suggestions to reverse the process by installing the Windows first just because it is easier.

A user wanting to have two operating systems must at some times face with learning Linux and Grub. Is doing it now too much or too early?

Xp has a boot loader called NTLDR that can multi-boot 10 operating systems. Win7 has bootmgr that can boot unlimited number of operating systems. NO suggestion to offer Windows to boot Ubuntu here?

What about if the OP wants to have both Xp and Win7 installed? Does the order of installations really matter that much or just because a particular sequence has the least amount of user intervention?
 
Old 08-05-2010, 05:27 PM   #10
gustavob
LQ Newbie
 
Registered: Apr 2010
Location: La Lonja, Pilar, Argentina
Distribution: Debian, Ubuntu, Suse
Posts: 6

Rep: Reputation: 0
Smile

Quote:
Originally Posted by saywot View Post
and this is a lot of faffing around for someone new to Linux,when it's just as easy to get the Ubuntu installer to do it all for you when you install onto a machine that has Microsoft Windows already installed on it (if you want to run Ubuntu that is)
Saywot,
I donīt want to scared op, when I begun with linux, I thought the only way to boot both sistems was to install win first. But, once I have linux installed and want to install win then, without unistalling linux, well, reading I saw itīs not so dificult. I gave an experience, hope usefull, if not, well, donīt worry be happy.
 
  


Reply


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
upgrading from Ubuntu 9.10 Karmic Koala 32-bit to Ubuntu 9.10 Karmic Koala 64-bit aryan1 Ubuntu 1 01-21-2010 05:20 AM
Top things to do after installing Ubuntu 9.10 Karmic Koala DPic Linux - Software 6 11-13-2009 02:10 PM
LXer: Things To Fix / Tweak After Installing Ubuntu 9.10 Karmic Koala LXer Syndicated Linux News 0 10-31-2009 04:20 PM
LXer: Top things to do after installing Ubuntu 9.10 Karmic Koala LXer Syndicated Linux News 0 10-30-2009 06:00 PM
installing grub in Ubuntu Karmic Koala Beta adityavpratap Ubuntu 8 10-27-2009 08:10 AM


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