LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-26-2002, 11:27 PM   #1
esael
Member
 
Registered: Jul 2002
Posts: 109

Rep: Reputation: 15
Whick Kernel ?


Hi,

I've Win2k in first partition and Slack in 2nd. I couldn't make a linux boot disk (wonder why). I installed Slack through CD-Rom. I've recompiled the Kernel.

When I want to boot Linux.. I put the CD-rom in and there will be a boot: prompt.

boot: usb.i root=/dev/hda4 noinitrd ro

Question is .. which kernel will the above command boot? The kernel in the CD-Rom or from my recompiled kernel? If the former, how to make sure I can boot the later?

Thanks.

Esael
 
Old 09-27-2002, 07:21 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I guess it'll boot the default kernel from cdrom. Do you use any bootmanager or you boot from cdrom all the time?
 
Old 09-27-2002, 07:23 AM   #3
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
Working hard on a OS loader for dual boot. Mentioned the problems in another posts.

Any good solutions for win2k Pro/ Slackware dual boot?

Need to rush this by tonight and it is 8:25 pm now

Eeeeeeiiiiiikkss

Esael
 
Old 09-27-2002, 07:24 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well I'll back your guess up. I was gonna say that, but was afraid I'd be wrong, and someone who knew the right answer would miss it because I had already replied.

So here's my thoughts:

I think that bare.i is a kernel image from your cdrom, whereas whatever you named your kernel image when you placed it in /boot after the compile would be the name to specify to boot with. So something like:
/boot/bzImage-custom
might be what you would type there to boot up your custom. Of course replacing with whatever you called it.

Cool
 
Old 09-27-2002, 07:29 AM   #5
esael
Member
 
Registered: Jul 2002
Posts: 109

Original Poster
Rep: Reputation: 15
That's something I've been trying but failed.

at boot:

boot: /boot/vmlinuz root=/dev/hda4 noinitrd ro

and various combinations.

Help!

Esael
 
Old 09-27-2002, 07:32 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Why not just install LILO into MBR? Is this not an option right now for you?
 
Old 09-27-2002, 05:33 PM   #7
wartstew
Member
 
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Rep: Reputation: 30
Quote:
Originally posted by esael
Any good solutions for win2k Pro/ Slackware dual boot?
I've done it with no problems, here's how:

1) Let Win2K have the MBR because it's likely to just take it at some point anyway!

2) Install the Lilo loader on your Linux partition (as long as it is on a bootable drive, ie: first drive). Configure Lilo to optionally boot the Win2k partition.

3) Set the active (bootable) partition to be the Linux partition.


The computer will boot, the Win2k MBR will be read, control will be sent to the active partition (Linux/Lilo), the lilo boot menu will come up. You select which OS you want to boot. Lilo then either goes to the Linux kernel or the Win2k partition where the Win2k boot loader is.

You can bypass the whole Linux experience if you need to by simply changing the active parition back to the Win2k one.

You can boot into Linux in an emergency from your CDROM by simply setting which kernel you want to boot, and your "root=" variable. (Oh, and yes, when you boot from the CDROM, it boots the kernels that are on the CDROM only. It isn't capable of knowing where the hard drive based ones are)
 
Old 09-27-2002, 05:47 PM   #8
wartstew
Member
 
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Rep: Reputation: 30
Quote:
Originally posted by esael
That's something I've been trying but failed.

boot: /boot/vmlinuz root=/dev/hda4 noinitrd ro
^^^^^^^^

You can't do this! Lilo doesn't know about file systems, only disk tracks, heads, sectors, etc. (The "root=" part is actually just passed to the kernel, which does know about such things). This is why you run "lilo" after building your config file, it figures out which sectors of the disk it needs to go to and installs the very simple bootstrap that only knows how to get there. At the "boot:" prompt you have to select a bootable image "label" as was configured and installed in the /etc/lilo.conf file. You can get a list of the only legal selections by pushing the "tab" key at the "boot:" prompt.

Don't despair, all this stuff is really worth learning. The knowledge will help with booting problems with other OS's too.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Whick is safer: ext3 or reiserfs shadkong Linux - General 24 09-15-2005 06:09 PM
whick window software can read and write the file in linux partition ztdep Linux - Software 9 07-19-2005 10:27 PM
Whick MANDRIVA IS BEST MaxtoRs Mandriva 4 04-20-2005 02:47 PM
Whick Kernel should I use: 2.4.26 or 2.6.7? BiafraRepublic Slackware 6 11-01-2004 03:33 PM

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

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