Solved

OK I got the patch how do I use it?

Posted on 1997-06-20
3
260 Views
Last Modified: 2013-12-15
linux-1.1.90+aha249x.patch - is the filename, how do i use it to patch a kernel on a boot disk (you guessed it! I haven't yet managed to get Linux to install)
Full instructions please!! Help!
0
Comment
Question by:Ikon
[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
3 Comments
 
LVL 2

Accepted Solution

by:
jprohart earned 50 total points
ID: 1628321
if it is a kernel patch, you must patch the kernel sources (usually in /usr/src/linux) and recompile your kernel.

to patch , change directory to /usr/src, and do 'cat your_patch | patch -p0 -s'. If it is a gzipped file, replace cat with zcat.
then cd into linux and do 'make config; make dep ; make clean; make zImage'. The compiled kernel will be in '/usr/src/linux/arch/i386/boot'. Copy it in /boot and edit /etc/lilo, then run lilo. You can also copy your kernel on a boot disk with 'dd if=/usr/src/linux/arch/i386/boot/zImage of=/dev/fd0' to try your new kernel from floppy (safe for testing).
bye.
0
 
LVL 3

Author Comment

by:Ikon
ID: 1628322
jprohart, the problem is that i dont have any directories to speak of as the boot kernel won't recognise my SCSI controller thus, my drives & once more thus, any partitions.
What i actually need to do is patch the boot disk!!!(I know!)
If you could help me to do that I would be most happy.
thanks for the previous answer though, if i had a running system it would have been most helpful.
0
 
LVL 2

Expert Comment

by:jprohart
ID: 1628323
you can use a pre-compiled kernel from a slackware distribution. I found them on ftp://ftp.ibp.fr/pub/linux/distributions/slackware/bootdsks.144/
Get the file named aha2x4x.s, and rawrite it on a floppy disk (look at the file README.TXT). Then boot with the disk you created, and answer 'linux root=/dev/sdxxx ro' where sdxxx is the root device (where you installed linux) at the boot: prompt.
bye.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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