LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-05-2012, 09:32 AM   #1
WhiteyMcQ-Tip
Member
 
Registered: Feb 2012
Distribution: Slackware
Posts: 30

Rep: Reputation: Disabled
Installing Windows XP after installing Slackware 13.37 | How to work with the MBR


Hello everybody,

I'm having trouble installing XP due to the fact lilo is wrote to the MBR already, I've partitioned my hard drive with fdisk:

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000088a2

Device Boot Start End Blocks Id System
/dev/sdb1 2048 1048578047 524288000 83 Linux
/dev/sdb2 1048578048 1384122367 167772160 83 Linux
/dev/sdb3 * 1384122368 1698695167 157286400 7 HPFS/NTF/exFAT

also sdb3 contains the NTFS filesystem (via mkntfs)

The problem is, as many of you know, Windows wants to write to the MBR first. I don't need to hear it's
easier to re-install, I need a solution. Any and all help will be appreciated.

Last edited by WhiteyMcQ-Tip; 03-05-2012 at 09:33 AM.
 
Old 03-05-2012, 09:34 AM   #2
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Pittsburgh, PA
Distribution: Slackware
Posts: 162

Rep: Reputation: 45
So, let windoze install itself to the mbr, after xp installs, run a linux rescue disk and reinstall lilo to the mbr.

Why do you want xp anyway?
 
Old 03-05-2012, 09:38 AM   #3
WhiteyMcQ-Tip
Member
 
Registered: Feb 2012
Distribution: Slackware
Posts: 30

Original Poster
Rep: Reputation: Disabled
First off "Windoze" will not allow this, Secondly I need it for a new job working with the .NET framework, VB, and C#.
Otherwise I wouldn't be installing it. Monodevelop is crashing on start-up, apparently the bug is common.
 
Old 03-05-2012, 09:45 AM   #4
tmmukunn
Member
 
Registered: Nov 2007
Distribution: Slackware
Posts: 34

Rep: Reputation: 5
If you have a slackware CD or setup a USB boot for linux via flash drive, you can use it to boot your root partition. Once you are back in Linux, just re-run lilo after you adjusted lilo.conf to boot a windows OS as well.
 
Old 03-05-2012, 09:47 AM   #5
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Pittsburgh, PA
Distribution: Slackware
Posts: 162

Rep: Reputation: 45
Windows will not allow... what? even XP will overwrite the mbr, it does not ask, it will do it during install but it does want it's own partition.

As for running .net to do VB, just use virtual box or kvm. No real need for a full windows install unless you need 3d graphics, and even then virtualbox does some of it.
 
Old 03-05-2012, 09:50 AM   #6
WhiteyMcQ-Tip
Member
 
Registered: Feb 2012
Distribution: Slackware
Posts: 30

Original Poster
Rep: Reputation: Disabled
Thanks for the replies. I understand what your both saying. The problem is I cannot even install Windows on the NTFS parition with my current configuration.
If I could get it installed, then I could edit my boot configuration, quite a few different ways.
 
Old 03-05-2012, 09:54 AM   #7
WhiteyMcQ-Tip
Member
 
Registered: Feb 2012
Distribution: Slackware
Posts: 30

Original Poster
Rep: Reputation: Disabled
WhiteWolf1776,

I've never ran into this problem before, XP WILL NOT OVERWRITE MBR, I've deleted the partitions I've created multiple times,
and wrote new ones using the XP install disc, and still it argues about the MBR. I have tried everything Windows Setup will
allow.
 
Old 03-05-2012, 10:01 AM   #8
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Pittsburgh, PA
Distribution: Slackware
Posts: 162

Rep: Reputation: 45
I'm thinking windows wants to write / install it's primary boot on /dev/sda... not b... what's your sda disk doing?
 
Old 03-05-2012, 10:03 AM   #9
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,297

Rep: Reputation: 180Reputation: 180
Quote:
still it argues about the MBR
what is the reason xp is giving for not wanting to write to the MBR.
 
Old 03-05-2012, 10:12 AM   #10
tmmukunn
Member
 
Registered: Nov 2007
Distribution: Slackware
Posts: 34

Rep: Reputation: 5
one of the problems I had with installing windows is that it usually needed to be close to first partitions to be installed on your system. My configuration for the hard drive is usually a small partition for /boot, then the partition needed for windows, then everything else linux.

In your case, you have windows as the last partition. Could that be the problem?

Anybody else know if windows needs to be within the first 2GB or perhaps its more about cylinders on the disk
 
Old 03-05-2012, 10:16 AM   #11
tmmukunn
Member
 
Registered: Nov 2007
Distribution: Slackware
Posts: 34

Rep: Reputation: 5
Quote:
Originally Posted by WhiteyMcQ-Tip View Post
WhiteWolf1776,

I've never ran into this problem before, XP WILL NOT OVERWRITE MBR,
You are lucky, it always overwrote the MBR after XP was installed for me . Usually I installed Linux first, then XP, then had to use the linux boot disk to restore the MBR with lilo. I installed linux first only to get the partitions setup the way I wanted and I'm not familiar enough if windows would let me setup partitions because it didn't recognize linux anyways.
 
Old 03-05-2012, 01:12 PM   #12
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,091

Rep: Reputation: 147Reputation: 147
Install XP first. Use it to partition the disk, leaving empty space for your Linux installation. Once XP is installed, THEN boot from your Linux CD/DVD (whathaveyou) and do your Linux installation. When you run lilo, setup your windows partition and then your Linux boot partition. You can let lilo write the information to the MBR.
Worked everytime I've tried it.

Last edited by cwizardone; 03-05-2012 at 01:19 PM. Reason: Typo.
 
Old 03-05-2012, 01:53 PM   #13
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: Slackware64 14.1 Multi-Lib
Posts: 121

Rep: Reputation: 22
How about installing windows XP in a virtual machine (e.g. VirtualBox)? That way you won't have to worry about lilo or the MBR. Just a thought...
 
Old 03-06-2012, 01:52 AM   #14
thegato
Member
 
Registered: Nov 2006
Posts: 42

Rep: Reputation: 4
Scratch my advice, I forgot you needed an installation to use the recovery console. Sorry.

That really is weird. I've never had xp complain about the MBR even on a disk where it was unwritable.

Last edited by thegato; 03-06-2012 at 01:55 AM.
 
Old 03-06-2012, 08:26 AM   #15
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,091

Rep: Reputation: 147Reputation: 147
If I've installed XP once, I've installed it a 100 times, and it has always trashed any other OS it finds on the HD, that is, it overwrites the MBR as it wants (thinks it needs?) to be the only OS on the hard drive.
As I've said before, install XP first, then Linux.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OpenSuSE 10.3 without killing Windows MBR on primary drive ciaran_skye Suse/Novell 2 05-07-2008 10:24 AM
Installing Slackware w/o affecting MBR dpilot83 Linux - General 3 01-01-2007 11:56 AM
What is the best way to preserve GRUB on the MBR when installing windows? KTheorem Linux - Software 4 08-26-2006 09:45 AM
Open bsd messed up my MBR, problem with installing Slackware lilo klemen Slackware 2 04-06-2005 05:37 AM
Installing Slackware 10 over SuSE 9.1, need to change bootloader in the MBR EOHooligan Linux - General 3 01-09-2005 06:12 AM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration