LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-22-2003, 12:36 PM   #76
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Rep: Reputation: 30

Hello I've beem working through the kernel upgrade howto at the start of this thread and have a problem at one particular point with mkinitrd, wonder if anyone can help?

http://www.linuxquestions.org/questi...826#post663826
 
Old 01-09-2004, 07:56 PM   #77
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
I thought that I would bump this. It appears with the advent of all the 2.4.24 stuff people need to see this again and again

Maybe it could become a sticky

Peace,
Whitehat
 
Old 01-09-2004, 08:48 PM   #78
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
Why is it compiling:

/arch/i386/kernel/cpu/amd.o
/arch/i386/kernel/cpu/cyrix.o
/arch/i386/kernel/cpu/transmeta.o
/arch/i386/kernel/cpu/centaur.o
/arch/i386/kernel/cpu/rise.o

When I have none of these CPUs?
 
Old 01-09-2004, 08:59 PM   #79
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
its one of the first options in make config (or whichever you picked), well if nothing changed it is the third menu ... its called processor types and features
did you change anything, or did you just leave defaults?
 
Old 01-09-2004, 09:00 PM   #80
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 46
Quote:
Originally posted by vincebs
Why is it compiling:

/arch/i386/kernel/cpu/amd.o
/arch/i386/kernel/cpu/cyrix.o
/arch/i386/kernel/cpu/transmeta.o
/arch/i386/kernel/cpu/centaur.o
/arch/i386/kernel/cpu/rise.o

When I have none of these CPUs?
Did you explicitly tell it not to? If not, then that's why.

Did you do a menu config? or what?

Did you add/remove needed/unneeded stuff?

::edit::
Wow...........twice today I did this. Nice work Drozz....you got to it before I finished typing

Peace,
Whitehat

Last edited by Whitehat; 01-09-2004 at 09:01 PM.
 
Old 01-09-2004, 09:03 PM   #81
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
....and ususally i am the one that gets out-posted ...
i find i will type a response to someone and then i press submit, and there is like 4 ahead of me
 
Old 01-09-2004, 11:05 PM   #82
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
This has been made an almighty sticky as DrOzz rocks and this is quite a nice guide for the newbies. Now hopefully all questions in regards to "how do I compile my kernel" will cease from this day on..

Thanks Whitehat for bringing this thread to my attention.

Cheers.
 
Old 01-11-2004, 05:11 PM   #83
SILVERPENGUIN
Member
 
Registered: Nov 2003
Location: USA
Distribution: Using Suse 10.2,
Posts: 117

Rep: Reputation: 15
Re: Newbie Guide To Compiling A Kernel!

Quote:


..And create the new one:
/sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x
(Note: )
The last set of x.x.x is the eqivalent to your new kernel version and it looks to /lib/modules for that version.

-----------------------------------
Use The Steps That Pertain To You
If You Use Grub Then Edit grub.conf
If You Use Lilo Then Edit lilo.conf
-----------------------------------

<-> And Finally Edit Your /etc/grub.conf file <->

title New Kernel
kernel /vmlinuz-x.x.x ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-x.x.x.img
(Note: )
look at the previous parameters in the grub.conf file and note what "root=" and use what is existing.

Exit and Save grub.conf
type "/sbin/grub-install"

AND REBOOT!!!
Ok...I'm back....New install completed.....Now, I need to know how I got past the :

/sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x I put in :

linux:/usr/src/linux # /sbin/mkinitrd /boot/initrd-2.6.1.img 2.6.1 and get out:

/boot/initrd-2.6.1.img/var/tmp is not a directory

I forget what I was doing wrong there. I think I fixed it once...Not sure now! Can't find that string we were on at the time.

Last edited by SILVERPENGUIN; 01-11-2004 at 05:15 PM.
 
Old 01-11-2004, 05:31 PM   #84
SILVERPENGUIN
Member
 
Registered: Nov 2003
Location: USA
Distribution: Using Suse 10.2,
Posts: 117

Rep: Reputation: 15
is this what is should have in etc/grub.conf file?


root (hd1,1) install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000
(hd1,1)/boot/grub/menu.lst quit

title New Kernel
kernel /vmlinuz-2.6.1 ro root=(hd1,1)=/ hdd=ide-scsi
initrd /initrd-2.6.1.img


??????????????????
 
Old 01-14-2004, 12:59 AM   #85
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
Quote:
Originally posted by Whitehat
Did you explicitly tell it not to? If not, then that's why.

Did you do a menu config? or what?

Did you add/remove needed/unneeded stuff?

::edit::
Wow...........twice today I did this. Nice work Drozz....you got to it before I finished typing

Peace,
Whitehat
In the .config file, it says <Processor-name> is not set for all the processors I didn't select. Yet it still compiles.
 
Old 01-16-2004, 07:44 AM   #86
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Hellllllllllllllllllllllp please

I upgraded my Mandrake 9.2 system to kernel 2.6.1 but I cant mount the CDrome, the floppy and windows partition any more. I did exactly similar to what I used to do for the old kernel but I got the following:

[root@localhost mnt]# mount -t auto /dev/hdb7 /mnt/h:
mount: special device /dev/hdb7 does not exist

How can I solve it?
 
Old 01-16-2004, 11:14 AM   #87
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
show us the output of the following...
fdisk -l
 
Old 01-16-2004, 11:47 AM   #88
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
DrOzz

I asume you meant me so here is what you requested:

[dalal@localhost dalal]$ fdisk -I
bash: fdisk: command not found

Is there another way to do fdisk -I?

I can see all devices in the control center. It shows the CDrom, floppy and the hard drive. But can not mount them.

By the way I got this solution

http://www.redhat.com/archives/fedor.../msg03218.html

but unfortunately I couldn't find the grub.conf in Mandrake. In Red hat this file is in the boot directory. Does this solve my problem and if so, where is the grub.conf file is located in Mandrake?

Last edited by linx win; 01-16-2004 at 12:05 PM.
 
Old 01-16-2004, 01:04 PM   #89
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 60
k i didn't bother looking at that link, cause i want you to resolve the fdisk issue first ...
now the first problem you have is you are issueing the fdisk command as a non-root user, so first you have to su - to root and type your password, then issue the command ...
second, if you still get command not found, then that means /sbin is not in your PATH and you'll have to specify the whole command which would then be :
/sbin/fdisk -l, again as root ...
and last, grub.conf and lilo.conf are located in the /etc folder ..
 
Old 01-16-2004, 01:30 PM   #90
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
DrOzz

It did work. Here is the data:

Disk /dev/hdd: 20.5 GB, 20520493056 bytes
16 heads, 63 sectors/track, 39761 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 27952 14087776 83 Linux
/dev/hdd2 27953 39761 5951736 5 Extended
/dev/hdd5 27953 29668 864832+ 82 Linux swap
/dev/hdd6 29669 39761 5086840+ 83 Linux

I could not locate the grub.conf file in the whole PC using the find file tool. Is it hidden file?
 
  


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
I'm interested in compiling a 2.6.x kernel, is this is a decent guide? Erik_the_Red Linux - Newbie 7 08-14-2005 06:03 AM
Kernel compiling guide for newbies... DaOne Slackware 127 04-17-2005 04:20 AM
Acid Guide to compiling Kernel 2.6.10 on Slack 10.1 acidjuice Slackware 54 03-11-2005 05:16 PM
Quick newbie guide to rebuild kernel in FC3 borgware Fedora 0 12-29-2004 01:38 PM
: Kernel compiling guide for newbies Question Anibal Slackware 6 08-01-2003 07:06 AM

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

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