LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-30-2004, 04:33 AM   #1
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Rep: Reputation: 15
Help a noob with dualboot!


hi all! im a noob! i've just managed to get an install of gentoo finally running on my systed (after about 20 hours of emerging )

all i'd like to ask (and i realise that many people have asked similar questions, but if i ask, i get personal help) how to get lilo working properly.

i have:
on hda: windows XP
on hdb: Gentoo 2.6

i have packages for both grub and lilo, and i started with grub, but it munted seriously and came up with a somewhat fuzzy screen. covered in ascii art . lilo works fine, but only the gentoo bit.

i *think* i've installed lilo onto the mbr:
#emerge -k lilo
#nano /etc/lilo.conf

boot=/dev/hdb
map=/boot/map
install=/boot/boot.b
prompt
timeout=150
lba32
default=windows

image=/boot/kernel
label=gentoo
read-only
root=/dev/hdb3

other=/dev/hda1
label=windows

when i try to use the windows bit, it just pops up with a blank screen and the flasy cursor thingy

thanks in advance!
 
Old 01-30-2004, 05:08 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In your Lilo config file you have specified boot=/dev/hdb which means Lilo installs to the second hard drive. The drive with the MBR is most likely /dev/hda, so change the boot= line to hda, rerun /sbin/lilo and try again.


Håkan
 
Old 01-31-2004, 02:21 AM   #3
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
dang. i updated it to had, tried sbin but:

chris@Cool chris $ su
Password:
root@Cool chris # /sbin/lilo
Warning: Kernel & BIOS return differing head/sector geometries for device 0x81
Kernel: 65535 cylinders, 16 heads, 63 sectors
BIOS: 1024 cylinders, 255 heads, 63 sectors
Fatal: open /boot/kernel: No such file or directory
root@Cool chris #
 
Old 01-31-2004, 02:34 AM   #4
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
dang. tried windows from lilo but it didnt work. maybe /sbin/lilo gave up and bailed, so it wasnt installed/updated....?
 
Old 01-31-2004, 08:10 AM   #5
Ajarn
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Mandiva2005
Posts: 86

Rep: Reputation: 15
I don't know what you can do with this info, but here it is.

I have win2000 on my 1st HD.
I have all my linux on my 2nd HD
In windows, I have installed Bootmagic from PowerQuest.
((It comes with Partition magic8 ))
I have 0,0 % problems for the last 2 years.
Hope this helps someone somehow sometimes
 
Old 02-02-2004, 02:58 AM   #6
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
i've had problems with redhat 9 and grub booting windows. i think this was because in bios since my main hard disk (winxp) was set as secondary master and my other hard disk was set as secondary slave; but cd rom as primary master :/

hw-tph, can i send you anything to help you figure this out? /sbin/lilo didnt seem to work....

would it be necessary to tell bios to set the secondary boot device to ide1? cos currently its set to ide0, but i hit F3 to choose to boot to ide1 right now.

please help a noob!
 
Old 02-02-2004, 03:57 AM   #7
Ajarn
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Mandiva2005
Posts: 86

Rep: Reputation: 15
Jan, if I was you, I would set my 1st (windows) HD in the first IDE slot.
My second HD in the 2nd IDE slot, and I would make my CDs slaves.
That is pretty much the standard I think.

if you really have to,
Make your second HD the slave of the first HD, and your CD in IDE2.
I have done that too, but couldn't see the benifit of it.

Maby others have different opinion.
 
Old 02-03-2004, 02:32 AM   #8
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Jan, if I was you, I would set my 1st (windows) HD in the first IDE slot.
thats what i have done.

are there any things i can show you so to make it easier to find the problem?
 
Old 02-03-2004, 03:05 AM   #9
Ajarn
Member
 
Registered: Aug 2003
Location: Thailand
Distribution: Mandiva2005
Posts: 86

Rep: Reputation: 15
klumsybot,
sorry, I will not be available for the next 2 to 4 days.
You will have to rely on other posters for the next few days.
Ajarn
 
Old 02-03-2004, 09:18 AM   #10
Skitzo
LQ Newbie
 
Registered: Aug 2003
Location: Beyond the third Van-Allen belt
Distribution: Slackware,Gentoo
Posts: 25

Rep: Reputation: 15
In my experience, winxp's (nt based) bootstrap is unfreindly and must be on IDE0 first partition (/dev/hda1). If you boot from IDE1 and redirect back to IDE0 with lilo, the bios still reports boot from IDE1, winxp bootstrap in not smart enough to handle this or is purposly built to hang and reject loading. Try to boot into xp from emergency disk if possible, scandisk the winxp drive partition. Scandisk and/or winxp may try to repair bootstrap and/or the MBR destroying lilo. Boot linux from custom floppy or cd (it sucks I know) (or use loadlin if it works in winxp). I tried winxp for a week, then tossed my computer across the room and rebuilt it, and now refuse to repair / look at / touch customer's and freinds computer's with winxp. I have completely destroyed the MBR / bootstapping capability of drives while playing with lilo writing to MBR, be careful. You may, if can you afford to lose the drive (backup first), have lilo write to /dev/hda1 and/or /dev/hda MBR (Master Boot Record). I have to cut this post short and get to work, but i need more info on how you are trying to boot, if you can boot with alternate means and into what, how old your bios/computer is?

--
Warning: Kernel & BIOS return differing head/sector geometries for device 0x81
Kernel: 65535 cylinders, 16 heads, 63 sectors
BIOS: 1024 cylinders, 255 heads, 63 sectors
--
this is not necesarily bad, but not good either
have your bios auto detect the hd, write the original settings down before you do, if it fails, return original settings.

Last edited by Skitzo; 02-03-2004 at 09:20 AM.
 
Old 02-07-2004, 01:00 AM   #11
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
thanks skitzo!

ok: here is what i have:

hda (winxp)
hdb (gentoo)

so what i'm trying to do is to be able to tell bios to start booting from ide1/hdb. then lilo/grub (which ever will work properly) will then be able to boot windows or gentoo.

i *can* boot gentoo by choosing to boot ide1 from bios boot device menu (F3) but it is neater to have a bootloader. this isnt only my pc, its kinda shared around :/ so i need to still have xp.

ide0 = segate barracuda st(something)16A (winxp)
ide1 = segate barracuda st(something)14A (linux)

liteon na125 motherboard (i know its a bit odd) i think it has lba enabled on the drives too. they have been autoconfgured too.

thanks for your help again!
 
Old 02-07-2004, 02:03 AM   #12
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
found something here:

http://www.anandtech.com/guides/viewfaq.html?i=138
 
Old 02-07-2004, 02:42 AM   #13
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
/me wonders if it would be better having linux set as hda.
 
Old 02-07-2004, 02:41 PM   #14
Skitzo
LQ Newbie
 
Registered: Aug 2003
Location: Beyond the third Van-Allen belt
Distribution: Slackware,Gentoo
Posts: 25

Rep: Reputation: 15
It can be done.

--snip from web site you posted
map-drive = 0x80 / to = 0x81
map-drive = 0x81 / to = 0x80
snip--

Is the key. It switches the bios flag master to slave, slave to master, and fools Winbloze.

I made an error, I should have said master and slave of ide0, not ide1 and ide0. But I believe winnt/xp does not like booting from master ide1 to master ide0 either. Win98 has no trouble with this and you can edit the environment variables in dos before win98 complains about it.

One ide device can handle two drives. For some reason all the advice I have read on the net says that the master is faster than the slave but i have not experienced any difference, especially in newer motherboards. The only draw back to having 2 hard drives on one device is that they can't both talk to each other or to another device at the same time. So if you are burning a cd on a fast cd-rw while encoding the iso on the fly, having the source hard drive on ide0 slave and the destination cd-rw on ide1 slave should not be a problem. On the other hand, having your
source hard drive on ide0 master and the destination cd-rw on ide0 slave could possibly cause buffer underun while the two drives compete to communicate. To my understanding, each device, master and slave, uses almost all the wires on a 40 pin cable (80 pin cable uses some sort of inductive electrical property to be able to communicate at high mhz, but still goes into regular 40 pin connector). One of the cable's wires tells the drives whose turn it is to talk by switching on and off, off for master on for slave (don't quote me on that). This is similar to how scsi works, but is not even close to the performance level scsi runs it at. Here is one of my setups for cd burning and hard drive cloning:

/ master 60gig hard drive (/dev/hda)
ide0 -
\ slave 48x cdrom (/dev/hdb)


/ master 26x (read) 16x (write) 4x (erase and write) cd-r/rw (/dev/hdc)
ide1 -
\ slave misc hard drive (/dev/hdd)

The hard drives are not both masters because the computer mostly burns from hda (data) to hdc (cd-rw) and sometimes clones cd's from hdb (cdrom) to hdc (cd-rw) or clone partitions from hda (data) to hdd (clone). These three data tranfer paths are all from one ide device to the other and never from master to slave.The only drawback I see in this configuration is burning from hdd to hdc (slave to master), but the machine that has this config never does that. I setup this from all the advice I read on the net that the masters (hda,hdc) are faster and therefore a safer burn at high speed. Example of possible speed increase: Installing a big application suite of bloat-ware for winbloze and then installing the same suite from another cdrom drive on the same machine but from a different ide device makes installation goes 3-4 times faster.

If you are not going to transfer huge amounts of data around, especially from the Linux drive to the xp drive, and you are going to burn/encode cdroms or burn/play dvds, here is what i recommend:

/ master winxp hard drive (/dev/hda)
ide0 -
\ slave linux hard drive (/dev/hdb)


/ master cd-r/rw or dvd-r/rw (/dev/hdc)
ide1 -
\ slave unused, temp, or backup device (/dev/hdd)

lilo.conf (not tested, not finished, don't cut and paste)

boot = /dev/hdb
map=/boot/map (map to linux images, default)
install=/boot/boot.b (chain loader?, default)
LBA32 (default, but leave as reminder)
prompt
timeout = 50
delay = 300
vga = normal
verbose = 5 (gives lots of info, comment out or lower num. when successful)
disk=/dev/hda bios=0x80
disk=/dev/hdb bios=0x81
disk=/dev/hdc bios=0x82
disk=/dev/hdd bios=0x83

image = /boot/stable_kernel.img
root = /dev/hdb1
label = Stable
read-only

image = /boot/test-kern.img
root = /dev/hdb1
label = TestKernel
read-only
optional

image = /boot/original.bare.i
root = /dev/hdb1
label = bare.i

other = /dev.hda1
label = WinXP
table = /dev/hda
change
automatic
map-drive = 0x80 to = 0x81
map-drive = 0x81 to = 0x80

Here is a big guide -- http://home.san.rr.com/johninsd/pub/...ersion21_docs/ -- and the source is close by. I downloaded the latest source code and will skim through it soon, but I'm a noob in C.

I am not familiar with new Ami bios's, but it is fine. I was not aware your comp was fairly new, I am used to Pentium pro 300's and the like with fussy bios's. I have a fairly new award bios on a machine that auto detects the same values and is capable of booting win98, zip-slack, and slack9.1, in both auto and "matched" modes. There may be an option to have the bios read and match the drives' partition tables. This will probably not affect linux, but it may speed up windows. Any change to the bios can be reversed, but could prove fatal to a drive depending on the os. I don't recommend changing it unless the drive is a tad slow or you can afford the time to rebuild the os on it. Of course I tried it, but... thats what I do.

just for fun, man sfdisk, it has some interesting info, but don't use it

grub may be a better choice to use with winxp, but I haven't looked into grub much, but I read somewhere that it is more forgiving than lilo and can be altered at boot prompt.

OK, that being said, I can now die happy? -crap, not yet, must study...

Last edited by Skitzo; 02-07-2004 at 02:49 PM.
 
Old 02-07-2004, 09:19 PM   #15
kLUMSY bOT
Member
 
Registered: Jan 2004
Distribution: Gentoo 1.4
Posts: 36

Original Poster
Rep: Reputation: 15
thanks!

i've tried to use grub but the screen is covered in ascii art. hmm. i've managed to get grub loading redhat before gentoo, but it wouldnt load xp.

ill just boot into gentoo and make a reply on what /sbin/lilo said. it complained about some sort of kernel thing....

ill update my lilo.conf too.

so do i need (in the first chunk)
Code:
disk=/dev/hda bios=0x80
disk=/dev/hdb bios=0x81
and
Code:
other = /dev/hda1
label = WinXP
table = /dev/hda
change
automatic
map-drive = 0x80 to = 0x81
map-drive = 0x81 to = 0x80

Last edited by kLUMSY bOT; 02-07-2004 at 09:24 PM.
 
  


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
noob with a noob question phoonerorlater Linux - Newbie 2 09-29-2004 03:43 PM
dualboot - question flame Slackware 4 09-07-2004 10:48 AM
3 Noob Quetions From A Noob DaveyB Slackware 20 08-11-2004 08:00 PM
Firewall help (noob really really huge noob) ProtoformX Linux - Networking 1 03-29-2004 12:19 AM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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