Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-01-2003, 06:32 PM   #1
Registered: Jan 2003
Posts: 87

Rep: Reputation: 15
Dual booting Slackware 9.1 + WinXP

I previously was going to install Slackware 9, but now 9.1. And on a separate hard drive now, instead of on the same drive.

Earlier I had a C:, that's it. But now I'm going to use a different hard drive. If I put the slackware hard drive as the hard drive to boot from, will it be called hda, and the windows one hdb? And vice versa?

1) When I boot to slackware, the argument 'root=hda#', do I choose hda1 (boot) or hda1 (root)? (First time booting)

2) These were my previouse instructions for dual boot with same hard drive, will it still work on separate hard drives:

boot: bare.i root=hda2 noinitrd ro
mkfs -t msdos /dev/fd0
dd if = /dev/hda2 of = /bootsect.lnx bs = 512 count = 1
mcopy /bootsect.lnx a:

Then go to Windows, and put in Startup And Recovery: "C:\BOOTSECT.LNX="Slackware""

Will this work if I set the slackware drive as the first drive?
Old 10-01-2003, 06:59 PM   #2
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
I think you're making way more complicated than it really is. Install your hard drive, boot from your Slack cd, use cfdisk to create the Slack partitions in reiserfs (or whatever you want) and install. Be sure to install LILO properly, and you will be all set. Youll get a menu at boot asking which OS you want to boot up.
Old 10-02-2003, 04:47 AM   #3
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
What Scruff said. You're using the "ntloader" for a boot device instead of lilo. Your master HDD will be hda and the slave will be hdb but other than that it's all the same.
Old 10-02-2003, 10:33 AM   #4
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
/dev/hda is the Primary Master ide device (your first hard drive)
/dev/hdb is Primary Slave
/dev/hdc is Secondary Master
/dev/hdd is Secondary Salve
They should stay the same unless you manually move the drives around. /dev/hda1 is the first primary partition on the first hard drive. /dev/hda2-4 are either primary or extended partitons. /dev/hda5 or greater are logical partitions contained in an extended one.

You don't need to switch drives around. Simply partition and install Linux to your second hard drive, and skip lilo configuration. Then use your cd to boot temporarily.

boot: bare.i root=hda2 noinitrd ro
root=hda2 should no longer work if you are planning to use your second hard drive. If your second hard drive is /dev/hdb, it should be /dev/hdbx, with 'x' being the partition Slack was installed to.

mkfs -t msdos /dev/fd0
dd if = /dev/hda2 of = /bootsect.lnx bs = 512 count = 1
mcopy /bootsect.lnx a:
These were the commands for copying LILO to a file, so WinXP could use it as an option in it's boot menu. First, you must install LILO. Make it's configuration file, /etc/lilo.conf, with the help of the 'lilo.conf' man page. There are some tools for making it automatically. Before using an automatically-generated config, check if it was made properly. For example, if you want to use XP's bootloader, you don't want to have a 'boot=/dev/hda' or 'boot=/dev/hda1' in your lilo.conf. This would overwrite the XP bootloader and put lilo there instead. You might want something like 'boot=/dev/hdb' there. This will install LILO to your second hard disk. After LILO is installed, you copy it to a file using the 'dd' command. Change the 'if=/dev/hda2' part to 'if=/dev/hdb'. This copies lilo from the boot sector of your second hard disk to a file, which, after being put on the Windows drive 'C:', you can use it to dual-boot with XP's bootloader.


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
Dual-booting MEPIS and WinXP, I want Grub to default to WinXP jjf Linux - Newbie 8 01-19-2006 03:27 AM
Dual-Booting FC4 and WinXP 3t3rnal Linux - Newbie 8 08-05-2005 08:31 PM
Dual booting WinXp and Knoppix TarouSatomi Linux - Software 2 02-14-2005 02:56 AM
Dual Booting WinXP and Suse 9.1 gazzerh Linux - General 4 07-12-2004 09:14 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration