LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-03-2006, 11:54 PM   #1
BrianEWilliams
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
Add New Hard Drive With Windows XP


Just got Slackware 10.2 up and running on a spare hard drive I physically swapped into my system for the Windows hard drive. Now I'd like a dual boot system with my existing Windows XP hard drive added in.

Right now, with both hard drives on the same IDE controller, the one set to master is the one whose OS boots up. I think I know how I'd have set this up if I were smart enough to think of this from the beginning, but I wasn't, and now I'm stuck.

How do I combine two single boot hard drives into a dual boot/dual hard drive system after having Slackware already fully installed? Not sure if this matters, but I am running a Dell Optiplex P3 450 mHz from about 1998. Doesn't have great bios options, or maybe I could fake it from there.

Seems like editing the lilo file should do the trick, but I feel lucky that I even got this thing running, and I'd hate to mess it up, so hopefully someone can help. Thanks.
 
Old 01-04-2006, 01:05 AM   #2
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
Hi

I'd suggest letting windows be the master (it's always happier if so).

Thereafter you have to boot into linux using your slack CD and an option like this on the boot prompt.

Code:
boot: bare.i root=/dev/hdb1 noinitrd
Where you replace bare.i with the kernel you used (propably bare.i). /dev/hdb1 is the first partition on the second drive (slave) change the "1" to your correct root partition.

After you've booted into your slack install you can try using liloconfig or edit lilo.conf by hand. If you need help with this post your /etc/lilo.conf

Kind regards
 
Old 01-04-2006, 03:49 PM   #3
BrianEWilliams
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Worked like a charm. Thanks. I have the XP boot on hda1 and Linux boot on hdb1.

I do get the following message when booting off the CD per your instructions:

*** ERROR: Root partition has already been mounted read-write. Cannot check! ***

Then there is some stuff about how to fix the problem using 'rdev' or booting from a boot disk with the 'ro' flag, plus adding a 'read-only' flag to the lilo.conf file.

I also realized my lilo.conf file has XP on hdb1 and Linux on hda1, but when I switched it around to the correct settings, I got an error message when I lilo-ed it.

One funny thing, when I typed startx, I got a quick ghost image of the XP shutting down image.

Here is my lilo.conf file without all the comments:


Code:
boot = /dev/hda 
message = /boot/boot_message.txt 
prompt 
timeout = 1200 
change-rules 
reset 
vga = 791 
image = /boot/vmlinuz 
root = /dev/hda1 
label = Linux 
read-only 
other=/dev/hdb1 
label = Windows-XP
BTW, I found this guide for setting up a dual boot, but I think I'll take a breather for a couple of days before I tackle it:

http://www.highlandsun.com/hyc/linuxboot.html

Last edited by BrianEWilliams; 01-04-2006 at 07:47 PM.
 
  


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
How to Add a Hard Drive? notooth Linux - Newbie 12 10-26-2005 04:16 PM
how to add a 2nd hard drive lsimon4180 Linux - Hardware 12 03-24-2005 01:51 PM
Add hard drive Wardy Linux - Newbie 3 01-19-2005 05:34 PM
How to add a hard drive vicvac Linux - Hardware 9 03-18-2004 02:17 PM
add hard drive mnauta Linux - Hardware 1 01-09-2004 04:02 PM

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

All times are GMT -5. The time now is 01:41 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