LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-01-2004, 11:17 PM   #1
[WebCarnage]
Member
 
Registered: Jun 2003
Location: USA
Distribution: Slackware 9.1 | netBSD 1.6.2
Posts: 35

Rep: Reputation: 15
Dual Booting LILO issues...


Hey guys, quick question here:

I have two harddrives - one with Slackware Linux and the other with Windows 2000 Professional on it.

I installed Windows2k first on one harddrive, and then added another harddrive to the computer, installing linux on it. While I was installing linux, I went ahead and installed LILO to the Master Boot Record.

I editted my /etc/lilo.conf and installed it as to have the option for booting my Windows2k aswell as Linux. Unfortunately whenever I try to bootup my Windows harddrive, I get the blue screen of death telling me "Inaccessible Boot Device."

I know of ways to use the Windows boot loader to load up either Linux or Windows, but I really wouldn't want that. I prefer to keep LILO.

So what I'm asking is: is there a way to keep using LILO and have both options working so that both operating systems load without error?


Thanks in advance.
 
Old 03-02-2004, 02:05 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
What are the drives designated as (hda, hdb), and what partitions are each of the OSes on (hda1 should be where Windows is, as Windows won't boot unless it is the in the first primary partition on the first hard drive, but where is Linux)? Is your BIOS perhaps set to boot from the second drive first (which wouldn't make Windows happy, if it's on the first drive)?

Could you post the contents of /etc/lilo.conf?
 
Old 03-03-2004, 03:12 PM   #3
[WebCarnage]
Member
 
Registered: Jun 2003
Location: USA
Distribution: Slackware 9.1 | netBSD 1.6.2
Posts: 35

Original Poster
Rep: Reputation: 15
lilo.conf

Code:
root@vulpix:/root# cfdisk /dev/hda

Name     Flags     Part Type          FS Type          Label
----------------------------------------------------------------
 hda1      Boot      Primary              NTFS 
 hda5                Logical              NTFS         [^A]
 hda6                Logical              NTFS
                     Pri/Log           Free Space
And Linux is hdb[1, 5, 6, 7]. And I really doubt the BIOS has anything to do with it. I've never seen an option for booting the second harddrive before anyways.

Another thing: I can boot into Windows normally via LILO if, and only if as of right now, the Windows2k boot/installation CD is in the drive bay. Then it will load up, otherwise it won't. I'm trying to get away from always popping the CD in and out of the drive bay just in order to boot, however.

/etc/lilo.conf is as follows:
Code:
root@vulpix:/etc# cat lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hdb5
  label = Linux
  read-only
# Linux bootable partition config ends

# Windows bootable partition config begins
  other = /dev/hda1
  label = Windows2k
# Windows bootable partition config ends
 
Old 03-03-2004, 08:47 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
You might be missing a bit from your Windows section....Here is what mine looks like


other = /dev/hdc2
label = WindowsXP
table = /dev/hdc
 
Old 03-03-2004, 09:10 PM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Yep, mine too...

# DOS bootable partition config begins
other = /dev/hda1
label = Win2K
table = /dev/hda
 
Old 03-05-2004, 03:04 PM   #6
george314
Member
 
Registered: Feb 2004
Location: US
Distribution: Slackware 13, Ubuntu 9.04, Windows XP Pro
Posts: 61

Rep: Reputation: 15
Partition for Win 2000 + Slackware old BIOS

Dear all

I purchased a 120 GB hard drive, but my computer supports only up to an 80 GB drive. A gentlemen at the dell forum reassured me that I could split the hard drive into two partitions, a 75 Gb Windows 2000 and a 45 Gb Slackware 9.1 (it's my moms comp, therefore a large Windows partition).
My intended procedure is the following:

1 Remove the old hard drive, install the new one physically.
2 Fdisk the drive and create the
hda1 75 Gb NTFS partition and a
hda2 1.536 Gb Linux SWAP
hda3 43.464 Gb Linux data and programs

3 Install Win 2000 on the 75 GB NTFS
4 Install Slack 9.1 on 43.464
5 Configure Lilo

Now, my questions are the following.

1 Since my BIOS supports only up until 80 Gb, can it detect three hda partitions?
2 Do I need to create hdb instead, to get the comp to see the partitions? If so, how do I create hdb?
3 Where can I easily install Lilo for this to work? Is MBR an option?
4 Can I boot Linux if it's on the third primary partition?

Any help will be appreciated, as you can see I am unsure how to do a couple of things and want to avoid flashing the BIOS. Thanks.

George
 
Old 03-08-2004, 05:30 PM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
Since my BIOS supports only up until 80 Gb, can it detect three hda partitions?
Yes and no. It could-- except that the BIOS won't be able to report the correct size of the drive in order for you to make the partitions in the first place.

You can't divide a foot-long hoagie sandwich into 4 three-inch pieces if the BIOS is convinced that the hoagie is nine inches long.

I never recommend drive overlay programs, but this is what they are for. With your hard drive, you should have gotten a diskette with some programs to help format the drive-- one of these will enable your BIOS to see the full capacity of the drive. However to do this, it does some weird formatting trick that many OSes do not like.

You'd actually be better off getting a controller card to attach the drive to, or a BIOS update, or a new mobo. But if that's not possible or workable, a drive overlay is designed to solve this very problem. If you did not receive a diskette or CD with the drive, go to the manufacturer's website and see if it's available for download. If not, then go to the Maxtor site and download their utility, which works on most drives (but is not warranteed for any other manufacturer's drive, naturally).

Quote:
2 Do I need to create hdb instead, to get the comp to see the partitions? If so, how do I create hdb?
hdb represents another drive (the second drive). Physically, another piece of hardware, so you cannot "create" it via partitioning, but should you attach another drive, that would be hdb (if it was the second drive on the primary IDE channel, anyway). In any case, this would not solve the fact that the BIOS is convinced of something that is not true.

Quote:
3 Where can I easily install Lilo for this to work? Is MBR an option?
MBR is always an option, and in fact, the best option, unless you want to boot from floppy when you want to use Linux. But LiLO is also not going to make the BIOS able to see the additional 40GB of space that it is incapable of recognizing.

Quote:
4 Can I boot Linux if it's on the third primary partition?
Yes. You can boot Linux from any partition, primary or extended (logical). It's much more forgiving than Windows in that way .
 
  


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
lilo vs grub, dual-booting binkgle Ubuntu 6 05-16-2005 01:39 AM
Booting issues, Tried Lilo but no help FuzzyLogic269 Slackware - Installation 4 03-29-2004 04:40 PM
Dual Booting - XP/LILO loader lawadm1 Linux - General 1 02-29-2004 05:15 AM
dual booting seting up lilo avoidmoney Linux - Newbie 5 02-15-2004 03:52 PM
Lilo dual booting Slackwares Linux - Software 3 10-11-2003 03:42 AM


All times are GMT -5. The time now is 09:11 AM.

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