LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2004, 07:09 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Configuring dual boot


I have a machine with 2 hds, one has linux on it, and one has winxp (ntfs). Right now, I have the other hd in there so I can listen to the mp3's on the drive from linux (because Linux can't write to ntfs). But since I have the other OS (winxp) I might as well offer it as an option to boot from.

So, how can I set up Slackware 9.1 (I have lilo) to give me the option to boot from XP or Linux, with Linux being the default?
 
Old 03-22-2004, 07:17 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
have a look here

http://www.linuxquestions.org/questi...der=descending

good luck.
 
Old 03-22-2004, 07:21 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I did do a search here (and on google) for info on what Im trying to do. I haven't been able to solve my problem. I think my problem is too specific, and the information already out there, too vast. Can you help my narrow the info already listed on the site?
 
Old 03-22-2004, 07:25 PM   #4
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
run /sbin/liloconfig

man lilo
 
Old 03-22-2004, 07:30 PM   #5
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
I boot WinXP, Mandrake and Fedora. Windows is on /dev/hda1, Mandrake is on /dev/hda9, and Fedora is on /dev/hda8.

Like this: (my lilo.conf)

boot=/dev/hda
map=/boot/map
default="Windows"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="Mandrake"
root=/dev/hda9
initrd=/boot/initrd.img
append="devfs=mount resume=/dev/hdb1 splash=silent idebus=66"
vga=788
read-only
image=/boot/vmlinuz-2.4.22-1.2174.nptl
label="Fedora"
root=/dev/hda8
initrd=/boot/initrd-2.4.22-1.2174.nptl.img
append="devfs=mount acpi=ht resume=/dev/hdb1 idebus=66"
read-only
other=/dev/hda1
label="Windows"
table=/dev/hda

Windows is the default because I'm not the only one here that uses the computer.
In your case, it depends on what drive Windows is on and what drive Slack is on, and then on which partition your are booting Slack from.

You could probably use my lilo as an example for editing yours, adding the Windows entries as they are in mine, but change the drive assingment. In my case, Windows is on my primary master, hda, partition 1 (hda1)If your Windows drive is the primary slave it would be hdb, and likely partition 1 (hdb1). Gee, can Windows even boot from other than primary master if it was originally installed as such?

Save a copy of your lilo.conf before you make changes. If things go wrong you can boot with a linux boot disk and copy your old lilo.conf back then run as root /sbin/lilo. Then you should be back to square 1.

Above all, don't forget to run /sbin/lilo as root after any changes to lilo.conf.
Then you can re-boot.

Hope I make some sense here. Would love to hear back from you the results.

Glenn Johnson
gjonhz@comcast.net
Running Mandrake 10 and Fedora Core 1
 
Old 03-22-2004, 07:37 PM   #6
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks! Im pretty confident that I can get it done from the info you guys provided. (Maybe overconfident/nieve :-)) Ill definently know how it turns out!
 
Old 03-23-2004, 01:39 AM   #7
PaintStorm
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
This sounds close to my problem but I dont understand the file you are referring to. I have 2 hard drives, WindowsXP installed on the 1st and just misc files on the second. I want to install Linux on the 2nd hard drive and just switch between the two. So I need to clear drive 2, and then boot from cd to install Linux. How will I be able to switch between the two operating systems? Sorry if this is a dumb question, I am a noob and eager to learn. Thanks
 
Old 03-23-2004, 01:51 AM   #8
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
You install linux on the second drive, and during the installation process you will be prompted to configure and install a bootloader (a program that allows you to choose the operating system to boot when you turn on or reboot the PC, and then loads it). Depending on what distribution you choose, you'll use either the Lilo or Grub bootloader.
 
Old 03-23-2004, 04:23 AM   #9
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
PaintStorm, you can't 'switch' from one OS to another, per se. You need to reboot your computer and run choose Linux from the menu. Then if you're running Linux and need to go to Windows you need to reboot again.

 
Old 03-23-2004, 04:27 AM   #10
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
Don't forget to save/archive the misc files on your drive before you install Linux.
Kovacs is right. The install process will configure dual boot for you..
 
Old 03-23-2004, 10:32 AM   #11
PaintStorm
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Great, another quick question. The 2nd drive I was using just for games and music files. It had 12g on it. I erased everything and went to format it but it says that it's in use and forcing a format would destroy data. Under properties it still shows that it has 12g. So I am confused, Do I need to format the disk, if so will forcing it mess something up? I understand that I need to create a partition but I understand it as the 2nd drive is the partition so what do I do. I guess I am concerned that there maybe some misc windows files from games on there that will interfere with the Linux install. What should I do, thanks for the help.
 
Old 03-23-2004, 11:41 AM   #12
Marc A
Member
 
Registered: Mar 2004
Location: Bxl Europe
Distribution: Debian/Ubuntu
Posts: 84

Rep: Reputation: 15
Don't worry, your installation CD wil ask you to partition ans will format the second HD.
No file will remain and interfere.
After install, you'll have the choice at boot between linux and something else.

Good luck, Marc A
 
Old 03-23-2004, 01:32 PM   #13
PaintStorm
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
hah, im such a noob, with mandrake 10.0, there are 3 cd's, I heard I have to boot with the 2nd disk, So if I am installing for the first time start with the 2nd disk?
 
Old 03-23-2004, 04:45 PM   #14
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
Start with the first.
 
Old 03-23-2004, 09:34 PM   #15
PaintStorm
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Yeah it was the 2nd. For some reason when you put in disk 1 it just wouldnt boot from cd, just went straight to windows. Put in disk 2 and it started, then you have to switch back when prompted. Thanx for the help guys
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Red Hat 7.2/ Windows XP dual boot mobok7v Linux - General 10 11-27-2006 02:47 PM
configuring grub-dual boot debian winXP different HD's tshontikidis Linux - Newbie 1 07-14-2005 04:46 AM
Configuring XP boot.ini for Dual Boot jarnix Linux - Software 5 02-02-2005 02:37 AM
configuring lilo with winxp dual boot gotmonkey Slackware 6 10-10-2004 06:46 AM
Sound lost after configuring dual boot xri Linux - Hardware 1 12-22-2003 11:52 PM

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

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