Solved

How do I make a zImage or bzImage?

Posted on 2000-02-27
5
373 Views
Last Modified: 2012-05-04
I'm running RedHat 6.1 on a pentium system i built.  I'm also running Win95 b on another hard drive.  When I try to use LILO, i get a bunch of 1 and 0 all over, but no LILO.  I already found out that LILO doesn't like win95b.  so i went and got Loadlin.  ONly problem there, is i need a copy of my kernel on the dos drive so i can boot it.  I'm new at Linux, and I need some detailed instructions on how to copy the kernel over to a dos drive.  

thanks a lot 4 any help you can give me.
0
Comment
Question by:blackc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
samri earned 25 total points
ID: 2562618
blacks,
     The initial kernel is located in the RedHat CD.  I believe it is in the    
     CD-DRIVE:\dosutils\autoboot and the filename is VMLINUZ

     Just copy the file and LOADLIN.EXE to some location in you DOS Partition.  And you can load linux from there.  The syntax is:

   LOADLIN <full-path-to-vmlinuz>\VMLINUZ root=/dev/hd<whatever you linux partition is located> ro

   If your VMLINUZ is in c:\LINUX and you root partition for you Linux is in the 2nd partition of your first HD, then the command will be,

   LOADLIN c:\LINUX\VMLINUZ root=/dev/hda2 ro

   If you ever recompile the kernel you need to copy the newly compiled kernel image to you C drive.

   To do that just copy the file vmlinuz in the directory /boot to your C drive.  But you need to mount it first.  If your Win95 is in the first partition, then you need to create a mount point in you Linux and mount you Win95 partition.


   mount /dev/hda1 /<mount-point> -t vfat

   then do a regular cp /boot/vmlinuz /<mount-point/Linux/vmlinuz

   That should gets you Loadlin with the most recently compiled kernel image

Good luck.

samri

0
 

Author Comment

by:blackc
ID: 2562749
hey, thanx a lot samri, you are getting the points already, but can you also explain how to mount my win95 partition?  Specificly, how do i create a mount point?  is the mount point /mnt/hda1 ?  I will accept the other answer soon, but I am just not sure if i will still be able to ask you questions after i do.  You're a huge help, thanx a lot.


chris
0
 
LVL 3

Expert Comment

by:jyu_88
ID: 2562848
any empty directory will be served as mounting point. standard is somewhere under /mnt. For example, you can 'mkdir /mnt/C' to use /mnt/C as your mounting point for your C: drive under win95.
To be more accurate, you can use non-empty directory as well, just that you cannot see the old directory contents no more as long as you have the new device mounted to the same mounting point, the old non-empty dir.

If you know your win95 is the 1st partition, i.e., /dev/hda1, you can do
mount -t vfata /dev/hda1 /mnt/hda1
0
 

Author Comment

by:blackc
ID: 2563509
very helpfull, very good job, and fast too!
0
 
LVL 15

Expert Comment

by:samri
ID: 2566987
blackc,
  you're welcome.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question