LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-15-2006, 08:23 AM   #1
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
Installing windows after linux


A friend asked me to set up linux on his pc, he doesn't have a copy of windows yet, but he is going to install in the next weeks or so.

Does windows-xp need to be on hda1, or just hda?

and...

I know it's going to fry the mbr, so is there a quick way to rewrite it? Something like the way most installers do it? I'd hate to come around again just to re-write the grub entries.
 
Old 07-15-2006, 08:31 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OSes all need to go on a partition--eg hda1. hda just means the whole drive.
When installing windows, you will not see the hdXY partition naming.....

When installing window after Linux, you do need to reinstall the bootloader---unless:

The easy workaround is to simply put the Linux bootloader on a floppy. Then install windows and it will take over the mbr and boot on its own if the floppy is not installed. To get a menu, edit the grub or lilo config file in the linux /boot directory.

You can always set up the Linux bootloader on the mbr later.
 
Old 07-15-2006, 08:32 AM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by oskar
A friend asked me to set up linux on his pc, he doesn't have a copy of windows yet, but he is going to install in the next weeks or so.

Does windows-xp need to be on hda1, or just hda?

and...

I know it's going to fry the mbr, so is there a quick way to rewrite it? Something like the way most installers do it? I'd hate to come around again just to re-write the grub entries.
It's my understanding that XP isn't so fussy as earlier versions of windows were. Though, maybe, just maybe, it'd be worth setting up the partition structure so that windows has somewhere to go when your friend get's his windows copy ???

i.e. You are probably aware that you can only have the max of 4 primary partitions, and that you don't necessarily need a /boot partition (though I believe it's still the gentoo default i.e. /boot, /swap and /) so maybe hda1 for the windows (not sure if that can be preformatted as ntfs or not) then depending on the size of the HDD and what your friend intends doing with the PC, maybe make hda2 a windows FAT32 partition (erm, but do that with windows otherwise I think you'll find that linux will mark it as a linux FAT32 partition and XP won't want to see it), then maybe make hda3 and 4 extended, so you install any linux into that - it would give you the maximum possible number of permutations i.e. maybe your friend will think linux is the "mutz nutz" and want to try other versions at the same time, or multiboot a number of linuxes (or is that linii ? ) or whatever, so you just need to get all the stuff about the partition sizes worked out etc etc.

Basically, 'sup to you.

regards

John
 
Old 07-15-2006, 08:50 AM   #4
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by pixellany
OSes all need to go on a partition--eg hda1. hda just means the whole drive.
When installing windows, you will not see the hdXY partition naming.....
I know, but I know that windows needs to be somewhere on the first primary harddisk (hda, sda). I wasn't shure if it needs to be on the first primary partition too. I'll just reserve the place for it, can't be such a bad idea.
Quote:
When installing window after Linux, you do need to reinstall the bootloader---unless:

The easy workaround is to simply put the Linux bootloader on a floppy.
Ah, floppys! Good old times. I did this with suse 7.0 Nah, I think I'd rather re-install grub. (you forget the boot disk is in there, then you shut down again, reboot...)


Quote:
Originally Posted by bigjohn
It's my understanding that XP isn't so fussy as earlier versions of windows were. Though, maybe, just maybe, it'd be worth setting up the partition structure so that windows has somewhere to go when your friend get's his windows copy ???

i.e. You are probably aware that you can only have the max of 4 primary partitions, and that you don't necessarily need a /boot partition (though I believe it's still the gentoo default i.e. /boot, /swap and /) so maybe hda1 for the windows (not sure if that can be preformatted as ntfs or not) then depending on the size of the HDD and what your friend intends doing with the PC, maybe make hda2 a windows FAT32 partition (erm, but do that with windows otherwise I think you'll find that linux will mark it as a linux FAT32 partition and XP won't want to see it), then maybe make hda3 and 4 extended, so you install any linux into that - it would give you the maximum possible number of permutations i.e. maybe your friend will think linux is the "mutz nutz" and want to try other versions at the same time, or multiboot a number of linuxes (or is that linii ? ) or whatever, so you just need to get all the stuff about the partition sizes worked out etc etc.

Basically, 'sup to you.

regards

John
I probably wouldn't have thought of that. I wasn't going to get fancy with partitioning, but putting / and Swap into an extended partition, is probably a good idea.

Thanks all, I'll go now.
wish me luck
 
Old 07-15-2006, 01:55 PM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
You might want to wait due to windows always over-writing the mbr. I first added windows xp to my laptop then I put slackware after and lilo boots both of them just fine. Also I could be wrong but I don't think you put swap on a logical partition.
 
Old 07-15-2006, 08:53 PM   #6
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
copy your important data to another partition install winxp on the first primary partition then install linux on another partition. save yourself some headaches.
 
Old 07-15-2006, 09:25 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
No need to fret.
Windows (using a standard install) requires a primary partition on the boot disk (i.e. the disk the BIOS boots from).
Afterwards, cleaning up the MBR is simple - boot a liveCD, chroot into your Linux install, and simply run the (grub) setup command.

Pre-allocating a (primary) partition is a good idea - I do it even if I'm not planning a Windows install. That and /boot as primaries, everything else as logical - never had a problem.

Edit: Ooops - thought I was on another forum; response updated to be more general.

Last edited by syg00; 07-15-2006 at 09:34 PM.
 
Old 07-15-2006, 09:38 PM   #8
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
Quote:
Originally Posted by syg00
Afterwards, cleaning up the MBR is simple - boot a liveCD, chroot into your Linux install, and simply run the (grub) setup command.
never thought of that.
I learned something good
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing dual boot (linux and windows)without corrupting windows anirudh.iitm Linux - Newbie 7 06-30-2006 02:16 PM
Installing Windows after installing LINUX brads@kwlink.com Linux - General 4 01-08-2006 10:03 AM
Installing linux with windows xp motionman04 Linux - Newbie 5 07-19-2004 12:31 AM
Installing programs in linux? which progs? can linux do the things windows can? James-jmpm Linux - Newbie 6 07-02-2004 07:01 PM
Installing windows over linux on a fully partitioned drive for linux reddon84 Linux - Software 2 01-26-2004 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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