LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-30-2003, 03:44 PM   #1
Midknight
LQ Newbie
 
Registered: Jan 2003
Location: New York
Distribution: Mandrake 8.0
Posts: 9

Rep: Reputation: 0
Ack! Dual Boot Problems


Hello all, I have searched these forumns for a solution but none of the relevant threads seemed to really apply to me.

I am trying to set up a PC that has Win ME on one hard drive and Linux Mandrake 8.0 on a separate hard drive. I used to run a dual boot in partitions to avoid headaches. Now I need to dual boot with two HD's.

I'll get to the point, I can boot to lilo when I make the Linux drive bootable in Bios, I can boot linux just fine. What I can't do is boot windows no matter where I put Lilo or what I tell the bios to boot. After I select Windows from the boot menu, it just hangs with no HD activity.

The only way I can safely choose between the two OS's is to use the linux boot floppy when I want to boot linux and run the Windows drive by default from the bios setting.

Please save my soul!!!! I miss my old dual boot!!!

Here's my lilo. conf and the fstab.

boot=/dev/hdg
map=/boot/map
install=/boot/boot.b
vga=normal
default=linux
keytable=/boot/us.klt
lba32
prompt
timeout=100
disk=/dev/hde bios=0x80
message=/boot/message
menu-scheme=wb:bw:wb:bw
other=/dev/fd0
label=floppy
unsafe
image=/boot/vmlinuz
label=linux
root=/dev/hdg1
initrd=/boot/initrd.img
append=" hda=ide-scsi quiet"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hdg1
initrd=/boot/initrd.img
append=" hda=ide-scsi"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hdg1
initrd=/boot/initrd.img
append=" hda=ide-scsi failsafe"
read-only
other=/dev/hde1
label=windows
table=/dev/hde

************************************************
fstab
************************************************
/dev/hdg1 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdg6 /home ext2 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount fs=iso9660,dev=/dev/cdrom 0 0
/mnt/cdrom2 /mnt/cdrom2 supermount fs=iso9660,dev=/dev/cdrom2 0 0
/mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/fd0 0 0
/dev/hde1 /mnt/windows vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0
none /proc proc defaults 0 0
/dev/hdg5 swap swap defaults 0 0

Last edited by Midknight; 01-30-2003 at 03:46 PM.
 
Old 01-30-2003, 04:17 PM   #2
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
As you noted, you can boot to Linux using Lilo when "I make the Linux drive bootable in Bios".

Two things are necessary: the BIOS must see a bootable device and there must be boot code of some sort in the MBR of a bootable device in the list that the BIOS knows about. Your Lilo configuration only works under the specific condition when your hdg hard drive (master drive on your 4th IDE channel, if I counted right) is bootable. The fact that nothing happens when the master drive on your 3rd IDE channel (again using the entries in your Lilo.conf as a clue) is set as the first bootable device indicates that there is nothing, or nothing useful, in the MBR of that drive.

I would recommend that you try to set Lilo's boot code to the MBR of your hde drive using the rescue option from your Mandrake install CD (if that version has a rescue option), of course indicating which drive has what OS, and a useful label for each OS, then make that drive the first bootable device in your BIOS.

You seem to have a very strange IDE device setup on your machine, do you have a RAID array of some kind, or just extra IDe channels?

Last edited by jglen490; 01-30-2003 at 04:18 PM.
 
Old 01-30-2003, 05:22 PM   #3
Midknight
LQ Newbie
 
Registered: Jan 2003
Location: New York
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
IDE

I have RAID but I do not use a RAID array. I have a CD burner and a DVD drive. My particular motherboard has two IDE channels and another two Raid capable IDE's.
 
Old 01-30-2003, 08:27 PM   #4
Midknight
LQ Newbie
 
Registered: Jan 2003
Location: New York
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
unsolved problem:

Yes, as you have said it needs a bootable drive. I've made made this available to the best of knowedge available. It seems, however to not fix the problem. The widows drive depsite where lilo is placed boots ok, it's booting windows that's my problem. F U Bill G!!!!!

lol
 
Old 01-30-2003, 09:36 PM   #5
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Have you tried Grub? The primary drive not being first one on the first IDE channel can cause problems with LILO. Many times when one of the Linux boot loaders is having problems, the other one will work fine.

Of course, the easiest solution is to use NTLDR--the windows boot loader. It has to be configured manually, but there are all kinds of websites and articles on how to do that. It knows how to start Windows and easily triggers a Linux boot loader to start Linux. This is your surest approach.
 
Old 01-30-2003, 10:54 PM   #6
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Never used ME but "fdisk\mbr" on a 98 floppy or "fixmbr" in the repair console for XP. Will write to the windows disk so it'll boot.
 
Old 01-31-2003, 02:13 AM   #7
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by Midknight
unsolved problem:

The widows drive depsite where lilo is placed boots ok, it's booting windows that's my problem. F U Bill G!!!!!

lol
You are contradicting yourself. But from your previous post, I assume that you're having trouble booting windows.

Windows ASSUMES that it is on the first hard drive in your system( or it wont boot), which is not the case here. So when lilo loads windows, it needs to fool the bios by swapping the appropriate drive descriptors. Since you are using rather unusual IDE channels and( the BIOS numbers are dynamically assigned) you have only two IDE devices in your system hde should be 0x80 and hdg 0x81. But since you have tweaked the bios to boot off of hdg, the bios would treat it as 0x80, I think. Try addingthis under the windows lilo option, so it would end up like..

other=/dev/hde1
label=windows
table=/dev/hde
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80

then run /sbin/lilo -v

If that doesnt work, you may want to move both devices over to the first/second ide channel and make your life a lil less complex. Of course you'll have to modify lilo.conf and fstab then.

HTH
 
Old 01-31-2003, 12:12 PM   #8
Midknight
LQ Newbie
 
Registered: Jan 2003
Location: New York
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
Eeeek, I typed b4 thinking. Sorry. Yes, booting windows with the boot loader is the prob. Sorry about that. I'll try the info you guys gave. Thanx for taking the time to help :-)
 
Old 01-31-2003, 01:48 PM   #9
Midknight
LQ Newbie
 
Registered: Jan 2003
Location: New York
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
No luck with editing the the lilo.conf or switching to Grub. I guess I have some reading to do. Thx for the time fellas :-)
 
Old 01-31-2003, 09:12 PM   #10
Midknight
LQ Newbie
 
Registered: Jan 2003
Location: New York
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
If anyone in the future sees this. This is how I fixed it.

I read in some lilo HOW TO's and what not, that lilo does not handle stuff on IDE's beyond 1 & 2 due to some BIOS limitation....
The "LI" thing was a dead give away that this applied to me. I had to connect my HD's to IDE 1 with the linux HD slaved to the Win drive. The CD/DVD Drives were connected to IDE 2.

If there was another way than it was beyond me. GL if you're in the same boat I was.

"An important gotcha for people using EIDE systems: due to a BIOS limitation, your boot sectors for any OS have to live on one of the first two physical disks. Otherwise LILO will hang after writing "LI", no matter where you run it from.

If you have to configure LILO manually, this will involve editing the file /etc/lilo.conf. Below we present an example of a LILO configuration file, where the Linux root partition is on /dev/hda2, and MS-DOS is installed on /dev/hdb1 (on the second hard drive)."

See the whole LILO custom How TO here: http://www.ibiblio.org/pub/Linux/doc...TO.html#AEN606
 
Old 02-01-2003, 01:14 PM   #11
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Although I wasnt aware of that limitation, thats how it has been working with me and most people I know. Thanks for the update.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ack! over two minute boot time! evilmegaman Slackware 5 10-04-2005 03:41 AM
Problems With Dual Boot / Dual Drive Setup Norab Linux - Hardware 1 08-07-2005 09:15 PM
Serious /tmp problems(ack!) I'm an idiot... Flecko Slackware 13 05-29-2004 02:47 PM
dual boot problems, now no boot loader after fixmbr mipia Debian 2 04-04-2004 09:43 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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