LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-2003, 06:14 PM   #1
Pierce
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Red Hat 9 Pro
Posts: 18

Rep: Reputation: 0
Dual boot over 2 HDDs


Hey!

I have 2 HDDs. A 40gb and a 13gb. I had WinXP installed on my 40gb HDD and decided to install slack on my 1gb hdd. LILO replaced the windows boot loader on my 40gb, but I ended up having to remove it (I had to reinstall windows ).

So now I can only access WinXP.

I'd like to know is there some code I can add to the boot.ini file to allow me to boot to linux on my second HDD, or would I need to install linux again? Is LILO needed?

Any help is appreciated!

Pierce.
 
Old 10-26-2003, 06:35 PM   #2
g00$e
Member
 
Registered: Sep 2003
Location: Norfolk, VA
Distribution: Slackware
Posts: 119

Rep: Reputation: 15
http://www.tldp.org/HOWTO/Linux+NT-Loader.html
 
Old 10-26-2003, 06:41 PM   #3
DarknessX
Member
 
Registered: Jun 2003
Location: New Jersey, USA
Distribution: Slackware & Debian
Posts: 37

Rep: Reputation: 15
I wouldn't advise that so much as just using a boot disk to get back to linux, and as root running 'lilo'. I think that the howto there would be overly complex.

Re-running lilo will rewrite your boot table and should make linux a choice again.

Of course if you NEED to use windows' boot loader, go right ahead and follow that howto :-D
 
Old 10-26-2003, 06:51 PM   #4
DarknessX
Member
 
Registered: Jun 2003
Location: New Jersey, USA
Distribution: Slackware & Debian
Posts: 37

Rep: Reputation: 15
whoops, one thing I forgot: Use a bootdisk to get to a shell

Mount your linux drive wherever you need to, chroot, then run lilo: i.e.
Code:
mkdir /mnt/linux
mount /dev/hdXY /mnt/linux/ #it's probably hdb1, b = 2nd HDD, 1 = 1st partition.
chroot /mnt/linux
lilo
If all goes well, you should get a "added windows" "added linux" message, or something to that effect.
 
Old 10-26-2003, 07:14 PM   #5
Pierce
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Red Hat 9 Pro
Posts: 18

Original Poster
Rep: Reputation: 0
What happens when I say:

I dont have a floppy drive! (Kind of bent a pin on my motherboard and cant get the floppy IDE cable into it!)...

Thanks :'(
 
Old 10-26-2003, 07:19 PM   #6
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Quote:
Originally posted by Pierce
What happens when I say:

I dont have a floppy drive! (Kind of bent a pin on my motherboard and cant get the floppy IDE cable into it!)...

Thanks :'(
it's either a floppy OR a an IDE cable (IDE xor floppy in binary terms )

Anyway, the installation discs of slackware have always been bootable since I started (with v8.1) ... so yeah, use that one instead
 
Old 10-26-2003, 07:27 PM   #7
Pierce
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Red Hat 9 Pro
Posts: 18

Original Poster
Rep: Reputation: 0
*cries*

I'm such a linux n00b! I'd love to just give up on linux now (even though this is my first attempt at trying to see what its like)!

Am I right in saying there is now easy way to edit the boot.ini file to point to the hdb as a boot device? MUST I have LILO installed? If so, will I lose the win xp boot loader?

When I installed slackware 9, I was asked if I wanted to use LILO on my primary HDD. I said yes, but it never detected windows xp which was already on it, so I ened up losing windows and had to reinstall it which is how I lost LILO.... man I confused!
 
Old 10-26-2003, 07:52 PM   #8
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Calm down, it's not that bad. You don't have to reinstall an operating system when you lost the master boot record (unless you crashed the partition table but that's another story).

You have to decide which bootloader you want to use. Either LILO or the Windows Boot Loader. How you enable the Windows Boot Loader to load Linux is well described in the link posted above.

However I suggest using LILO simply because it's easier to maintain and you will probably change it more often once you start baking your own kernels - something you will hardly do with Windows .

So I hope you haven't started reinstalling Slackware yet.

Take your Slackware installation Disk and boot the PC from it. When it asks you for boot parameters DO NOT hit enter like you did at the beginning of the installation but write "mount root=/dev/hdb2" or whereever you have installed your Linux root partition.

Then your Slackware will be booted just like normal only with a kernel from the CD which shouldn't make any difference for you right now.

So you get your login and you log in as root.

If you use KDE then start it and go into the control center -> System Administration -> Bootmanager (LILO).

There is even an autodetection that will be able to detect your windows and Linux automagically and install it for you in a way that works.

If you like to edit the /etc/lilo.conf manually then here are the lines that work for my windows 2000:

other=/dev/hde3
label="Windows"

just change the partition to your need and it should be fine. Don't forget to run "lilo" afterwards .

reboot and you're done
-----
If you want your Windows Boot Loader back then you can do that with the installation disk of WinXP (unless it's some weird form of recovery version, I guess) and boot from that and select the repair console. There are two commands that will repair the MBR for you to get the boot loader back. Type help to see the list of possible commands - they should be obvious - I just don't know them by heart.
 
Old 10-26-2003, 08:06 PM   #9
wyat
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
You could try going into your motherboard bios and tell it to boot the 13 gig hard drive. That is how I change between winxp and slackware. I don't know if this will work if lilo is not installed on the linux partition. Worth a try.
 
Old 10-26-2003, 08:11 PM   #10
DarknessX
Member
 
Registered: Jun 2003
Location: New Jersey, USA
Distribution: Slackware & Debian
Posts: 37

Rep: Reputation: 15
He has lilo on the comp -- he had it working until he reinstalled XP

He "should" only have to run lilo again to make it work
 
Old 10-27-2003, 02:26 PM   #11
Pierce
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Red Hat 9 Pro
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks misel will try that. I do remember another prob I had though.

Command line linux worked fine for me before, however when I typed xstart to start, linux went to start except my monitor turned off! I know I have to config linux but cant remember what exactly to type to do it. xfree 86 or something?

Thanks again,

Pierce.
 
Old 10-27-2003, 04:22 PM   #12
DarknessX
Member
 
Registered: Jun 2003
Location: New Jersey, USA
Distribution: Slackware & Debian
Posts: 37

Rep: Reputation: 15
try 'xf86config' [as root]

The reason your monitor is going dark is most likely because you have the resolution set too high. Make sure you set it according to the specs on your vidcard/moniter before setting up X. Also, note that the command is 'startx', not 'xstart'
 
Old 10-27-2003, 04:44 PM   #13
Pierce
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Red Hat 9 Pro
Posts: 18

Original Poster
Rep: Reputation: 0
yeah, xf86config is what I was looking for.

Anyway, back to me trying to access linux on my second HDD. I did as Misel said and booted off my slackware cd and typed in:

bare.i mount root=/dev/hdb1

The installation cd continued as usual. I wasn't logged into linux on my HDD, I was just as normal on the CD like when you're setting up linux. So I haven't been able to test xf86config. Any ideas why?

Also, is it possible to install LILO anotherway? Through a CD? Or even a 3rd party boot device for linux and windows? I actually think using LILO is a good idea, I just dont want to lose everything on my windows HDD now, after spending the last 2 days getting it back the way I want it.

DarknessX, my screen didn't go black, it powered off. I take it linux didnt recognise my graphics card, hence why I have to run the config...

Thanks again,

Pierce
 
Old 10-28-2003, 09:56 AM   #14
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Quote:
Originally posted by Pierce
yeah, xf86config is what I was looking for.

Anyway, back to me trying to access linux on my second HDD. I did as Misel said and booted off my slackware cd and typed in:

bare.i mount root=/dev/hdb1

The installation cd continued as usual. I wasn't logged into linux on my HDD, I was just as normal on the CD like when you're setting up linux. So I haven't been able to test xf86config. Any ideas why?

Also, is it possible to install LILO anotherway? Through a CD? Or even a 3rd party boot device for linux and windows? I actually think using LILO is a good idea, I just dont want to lose everything on my windows HDD now, after spending the last 2 days getting it back the way I want it.

DarknessX, my screen didn't go black, it powered off. I take it linux didnt recognise my graphics card, hence why I have to run the config...

Thanks again,

Pierce
that is very weird.

Maybe you can do that with Knoppix but I'm not sure how to do that. :S
 
Old 10-29-2003, 12:33 PM   #15
Pierce
LQ Newbie
 
Registered: Oct 2003
Location: Ireland
Distribution: Red Hat 9 Pro
Posts: 18

Original Poster
Rep: Reputation: 0
I think I'm going to give up on slackware. For some reason the installer & LILO dont pick up my windows partition so I'd be in a loop and it's really annoying.

Unless, can someone tell me will this work:

Install Slack 9.1
Replace the MBR with LILO
Open lilo.conf and manually add the lines to boot windows.

Will this work? I did this before, except I went to repair windows and it restarted the machiene and couldn't get into the repair sequence. I then added the extra lines to boot windows, windows booted but died after the loading screen. I'm hoping this is because I did a repair which basically failed...

Otherwise, I may go with Knoppix, I have a bootable Linux CD with that and it's really slick! Slackwares install and such is just too basic and open for errors for my liking... ;'(
 
  


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
xp dual boot (2 HDDs) ntgaston98 Linux - General 17 11-18-2005 10:48 PM
Dual booting with seperate HDDs moistTowelette Linux - Software 1 04-27-2005 12:07 AM
Dual-boot, 2 HDDs -- potential problems to watch for? Genesee Linux - Software 5 07-17-2004 08:16 PM
dual boot on dual hdds R3N3G4D3 Linux - General 4 09-22-2003 02:36 AM
Dual Boot off Two HDDs Shak Linux - General 21 06-28-2002 07:02 PM

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

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