LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-26-2012, 06:43 AM   #1
Slackovado
Member
 
Registered: Mar 2005
Location: BC, Canada
Distribution: Slackware 14.2 x64
Posts: 308

Rep: Reputation: 70
Dual boot Slackware and Windows XP


I'm going crazy.
Been using Slackware for over a decade, always dual booting with XP.
Recently I've added a SSD drive and moved my main partitions, XP and Slack root to it.
My drive arrangement
sda, sdb,sdc are three hard drives with one partition on each and are configured into /dev/md0 as raid5 and it's my /home
Fourth drive is my new ssd drive with /dev/sdd1 for XP, /dev/sdd2 is / (root) and /dev/sdd3 is swap.
my lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
#append=" vt.default_utf8=1, root=/dev/md0"
#append= "root=/dev/md0"
append= "root=/dev/sdd2"
#raid-extra-boot = "/dev/sdb1,/dev/sdc1"
boot = /dev/sdd
compact
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 50
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
vga=normal
# VESA framebuffer console @ 1024x768x256
# vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-smp-2.6.37.6-smp
  initrd = /boot/initrd.gz
  root = /dev/sdd2
  label = Linux
  read-only
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sdd1
  label = Windows
  table = /dev/sdd
# Windows bootable partition config ends
image = /boot/vmlinuz
    root= /dev/sdd2
    label = Safemode
    read-only
My problem is that I can get only one OS working at a time.
Every time I run lilo it zaps XP booting and XP no longer boot.
Every time I fix XP, I no longer get lilo and Slackware booting.
It looks like each OS overwrites the MBR.
I was under the impression that XP would make the first partition /dev/sdd1 bootable and Slack would install lilo into the MBR of the drive.
Are those one and the same?

Last edited by Slackovado; 10-26-2012 at 11:38 AM. Reason: Spelling corrections
 
Old 10-26-2012, 01:51 PM   #2
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
Since root partition is no longer on Raid, try to remove append= "root=/dev/sdd2"
Also using UUID might be helpful.

Last edited by Nikosis; 10-26-2012 at 02:18 PM.
 
Old 10-26-2012, 07:29 PM   #3
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
You are correct that when you have Windows fix itself it overwrites the MBR.

Anyway, a while ago I was struggling to get XP dual-booting, but eventually got it to work. What I ended up with in lilo.conf (that worked) was this:

Code:
other=/dev/sda1
        label="WindowsXP"
	boot-as=0x80
        table=/dev/sda
So, I'd suggest adding the boot-as=0x80 parameter, rerun lilo, and see if that helps. I don't understand exactly what it does, but I think it's something to do with how the drive appears to the Windows boot sector. Or something...

Dave

Last edited by xflow7; 10-26-2012 at 07:31 PM.
 
Old 10-27-2012, 09:01 PM   #4
Slackovado
Member
 
Registered: Mar 2005
Location: BC, Canada
Distribution: Slackware 14.2 x64
Posts: 308

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by xflow7 View Post
You are correct that when you have Windows fix itself it overwrites the MBR.

Anyway, a while ago I was struggling to get XP dual-booting, but eventually got it to work. What I ended up with in lilo.conf (that worked) was this:

Code:
other=/dev/sda1
        label="WindowsXP"
	boot-as=0x80
        table=/dev/sda
So, I'd suggest adding the boot-as=0x80 parameter, rerun lilo, and see if that helps. I don't understand exactly what it does, but I think it's something to do with how the drive appears to the Windows boot sector. Or something...

Dave
Thank you. That did the trick.
I guess it's due to the boot drive not being the first drive and the pos XP can only boot from first drive.
Lilo should suggest that though and offer that option when run.
 
  


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
[SOLVED] Dual Boot:: Slackware- Windows 7 michelinux234 Slackware 7 11-09-2012 08:08 AM
Windows 7 / Slackware Dual boot shotwellj Slackware 8 09-07-2010 12:06 AM
[SOLVED] Slackware won't boot in dual boot with windows 7... aryn07 Slackware 9 01-22-2010 08:56 AM
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:06 AM.

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