LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-04-2004, 10:22 AM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
lilo.conf Win/Linux


hi

im having trouble setting up lilo to boot to windows.

here is how my hdd's are setup:

hda - Slackware Linux
hdb - parititioned into windows stuff

here is what fdisk -l says:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 9605 77152131 83 Linux
/dev/hda2 9606 9729 996030 5 Extended
/dev/hda5 9606 9729 995998+ 82 Linux swap

Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 10199 81923436 7 HPFS/NTFS
/dev/hdb2 10200 24321 113434965 f W95 Ext'd (LBA)
/dev/hdb5 10200 24321 113434933+ 7 HPFS/NTFS

as you can see in both of the hdd's it doesnt output the 3rd and 4th partitions o_O

well windows is installed on one of the hdb's i just cant figure out which one lol

thanks for the help
 
Old 08-04-2004, 01:09 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,943

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Quote:
as you can see in both of the hdd's it doesnt output the 3rd and 4th partitions
The 3rd and 4th partition do not exist therefore no output.
1-4 are primary partitions
>4 are logical partitions
A logical partition is contained within an extended partition. In your case it is hda2 and hdb2. When drives were first developed there could be only 4 partitions. In order to overcome this limitation the extended / logical was created.

You have 2 NTFS partitions and I would say the OS is hdb1. You will need to set the boot flag for this partition and add mapping to the lilo.conf file.

other = /dev/hdb1
label ="WindowsXP"
table = /dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

Last edited by michaelk; 08-04-2004 at 01:12 PM.
 
Old 08-04-2004, 01:10 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
you didn't post the summary of you hda , but for hdb there is no hdb3 or -4, look
at the cilinder-count, it's all used. i think win is on hdb1 or -3 .? maybe try 'lilo'??

egag
 
Old 08-04-2004, 07:50 PM   #4
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
when i change it to either /dev/hdb3 or /dev/hdb4
and then i run /sbin/lilo in a terminal window
it outputs this:

bash-2.05b# lilo
Added Linux *
Device 0x0340: Inconsistent partition table, 4th entry
CHS address in PT: 0:0:0 --> LBA (-1)
LBA address in PT: 0 --> CHS (0:0:1)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)

so far i have tried hdb1,hdb2,hdb3,hdb4,and hdb5
from hdb1, hdb3, hdb4 when i restart and choose XP from lilo's menu i get:
NTDLR file missing

from hdb2, hdb5 it just sits there

i dunno whats wrong but i partitioned hdb in windows using Partitionmagic

the first part of the drive is supposed to be just ntfs with no os, the second part is the part that should be windows,

but after the fdisk -l output im just confused
 
Old 08-04-2004, 09:59 PM   #5
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
hrm..
i just looked at my windows drive

and i cannot find a boot.ini file in drive

so i think i might need to mount windows and make a boot.ini

so how can i mount and write to an ntfs drive?
 
Old 08-04-2004, 11:05 PM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
simple: you cant
make a linux boot disk so you can access your linux partition after this, then
pop in your winxp disk, and boot to the rescue console
do a fixmbr
that should allow you to boot into xp again
afterward, reboot into linux using your boot disk, and reinstall lilo

Last edited by scuzzman; 08-04-2004 at 11:06 PM.
 
  


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.conf and linux as default boot whitshade Slackware 7 04-26-2005 09:47 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 04:15 AM
LILO.conf won't load Linux JulianS Slackware 5 03-06-2004 05:45 PM
LILO Setup help ... DOS-Linux-Win MaleWithBrains Debian 4 02-06-2004 08:29 AM
help me conf lilo for dual linux boot bosewicht Linux - Newbie 17 09-20-2003 11:08 AM


All times are GMT -5. The time now is 12:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration