LinuxQuestions.org
Help answer threads with 0 replies.
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 04-02-2005, 03:58 PM   #1
megadeth
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 x64
Posts: 136

Rep: Reputation: 15
Dual Boot Issues


I'm trying to do a dual boot between Windows XP Home Edition and Slackware 10.1. Everytime I write Lilo to the MBR as stated in a thread on this form, I can boot Linux, but not Windows. Can someone post a link for a dual boot Windows/Slackware cause I am tired of having to reinstall?
 
Old 04-02-2005, 04:02 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
can you post your " /etc/lilo.conf " -file. ?

egag
 
Old 04-02-2005, 05:25 PM   #3
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
post disk and partitioning info too. At least the contents of /etc/fstab; also: the un-fstab'ed disks and partitions.

When I still did windows, I had hda*=>linux and hdb1=>windows

my lilo.conf contained this (plus more, of course):
Code:
other=/dev/hdb1
	label="Windows XP"
	table=/dev/hdb
	map-drive=0x80
	to=0x81
	map-drive=0x81
	to=0x80
the problem is that <strike>microsoft is soooo lame</strike> windows needs to be tricked into believing that it's on the first disk, which the above code does.

hth --Jonas Kölker
 
Old 04-02-2005, 07:11 PM   #4
megadeth
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 x64
Posts: 136

Original Poster
Rep: Reputation: 15
I'm not even going to bother with this. I like Slackware. I don't want to go back to SuSE cause it had no built in necessary software like GTK and GTK2 and compilers and stuff. SuSE did correctly boot Windows, but there is a bug in 9.2 where you can't even get the monitor to register the resolution due to high refresh rates. I gave up on SuSE and Fedora! Now, I don't use Linux that often for me to even install LILO. GRUB worked great, but I think a standard floppy boot disk would be fine fro me to boot Linux! Thanks.
 
Old 04-02-2005, 07:28 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,075

Rep: Reputation: 210Reputation: 210Reputation: 210
There is one other way to boot linux, without altering your MBR. Install LILO on the superblock of your Linux partition, and aquire the 512 bytes of the superblock , like so..

Code:
dd if=/dev/hda of=/tmp/bootsect.lnx bs=1 count=512
I am assuming of course since hdb is windows, then hda must be where linux is, and this command is just an example, on the last part, of=/tmp/bootsect.lnx bs=1 count=512 , you can have the output somewhere else, just make sure you can make a copy of it, to a diskette, or somewhere where windows can see it, such as a FAT32 partition

Next, under windows, copy it to the root directory of your C:\ drive , and then edit boot.ini and add the following

Code:
C:\bootsect.lnx="Slackware Linux"
you should also add timeout=30 (30secs) , or how many seconds you want, if that is not present in boot.ini.

Once you reboot you should have a prompt, with the choices of windows or linux. Now, keep in mind that you are using the NTLDR to call upon LILO with the bootsect.lnx file you have just created, this is how I boot, and it works just fine, since I can't install LILO to the MBR either.
 
Old 04-03-2005, 07:31 PM   #6
megadeth
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 x64
Posts: 136

Original Poster
Rep: Reputation: 15
I'm going to try and change my boot.ini like Jeebizz said so that I can run the NTLDR to point to LILO and run Slackware.
 
Old 04-03-2005, 08:55 PM   #7
megadeth
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 x64
Posts: 136

Original Poster
Rep: Reputation: 15
Yes, but I've run into trouble. My hard drives are as so. I only have one hard drive which is broken into three patitions. hda1 is my Windows XP Home NTFS partition. hda2 is my Linux swap partition. hda3 is where my Slackware Linux is.

Do I then just give this command to get the bootsect.lnx?

dd if=/dev/hda3 of=/tmp/bootsect.lnx bs=1 count=512
 
Old 04-03-2005, 10:00 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,355

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Yep - personally, I'd just write it straight to a floppy.
Each to their own.
 
Old 04-04-2005, 03:46 PM   #9
megadeth
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 x64
Posts: 136

Original Poster
Rep: Reputation: 15
You guys are the best; i got it working!
 
Old 04-04-2005, 05:53 PM   #10
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
The only downside to using the Windows bootmanager is that if your Windows goes kaput, you'll have to set it up all over again, and you may or may not have the appropriate disks to boot into Linux again.

I only say this, because my own Windows installation has an annoying habit of dying at the most inopportune times.

It's actually pretty easy to get LILO working pointing to another OS. Then if you need to reinstall your Windows (or restore from a compressed image like I do), just unpack and you won't need to update your lilo.conf or boot menu. In my case, the Windows section of lilo.conf looks like this:

Code:
# Windows bootable partition config begins
other = /dev/hde1
  label = Windows
  table = /dev/hde
# Windows bootable partition config ends
LILO is installed to /dev/hde2, which is the primary boot partition on the drive. The Windows partition is *not* bootable. 9 times out of 10, the reason you can't get Lilo to dualboot Windows is because you've got the wrong partition flagged as bootable.
 
  


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
Dual Boot XP and RH9 issues Aken Red Hat 5 01-13-2005 08:34 PM
Mandrake dual boot XP issues asi0917 Linux - Networking 5 09-01-2004 04:22 PM
dual boot issues ferretmanus Linux - Newbie 5 12-10-2003 08:09 PM
Windows NT dual boot issues Pepster Linux - Newbie 4 06-02-2002 09:59 AM
RH7.2 dual boot issues GATTACA Linux - General 6 03-03-2002 04:41 AM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration